唐老师 发表于 5 天前

聊聊马丁的终极痛点:我有一个“新单救老单”的策略构想,想听听大家的意见!

<div class="ce-block ce-block--focused" data-id="G2YoMen8H0" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">这几天的黄金行情,不知道大家做得怎么样?看着M1图表上那种毫无回调的极致单边,相信跑传统马丁EA的朋友,如果是逆势抗单的,这几天肯定非常煎熬。有些朋友可能吃到了大止损,甚至伤了元气。</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="81s-COKTgK" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">做程序化交易这些年,我们EA邦一直希望能给大家提供可以日常使用的、稳健的交易工具。马丁策略盈亏同源的特点大家都很清楚——平时震荡市赚钱像印钞,但遇到黑天鹅或者极端单边,一把就能把几个月的利润抹平。这种扛单时看着浮亏不断扩大、晚上睡不着觉的体验,绝对不是我们做交易追求的生活状态。</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="dXtd-DYqmF" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left"><b>我们要的是稳定,是细水长流。</b></div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="kpJpq8imaa" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">既然我们无法预测极端单边什么时候来,单纯的加进场过滤也防不胜防,那么我最近在思考:<b>能不能从底层逻辑上,直接切断马丁“无限扛单”的死穴?</b></div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="XMw3zJ16M5" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">这里我跟大家分享一个我最近正在构思的新EA逻辑(逻辑可能也不新,我这人比较笨),想听听大家的意见。如果大家觉得这个思路靠谱、有实战价值,我就把它开发出来给大家用。</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="5hrlzxjljJ" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left"><b>💡 核心思路:局部网格截断 + 利润打损(新单救老单)</b></div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="71AISEkgxl" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">简单来说,就是把“死扛到底”变成“留下烂摊子,用新赚的钱慢慢收拾”。</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="NcgY6Suxrk" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left"><b>具体的运行方式是这样的:</b></div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="VCZcp2eoy9" >
    <div class="ce-block__content">
           
      <ol class="cdx-list-ordered" style="list-style-type:none; margin-left: -15px;"><li class="cdx-list__item">1. <b>正常运行</b>:比如我们设定每天特定时间(比如1:30)开始交易,正常按照网格间距加仓。如果行情有回调,多空正常止盈,皆大欢喜。</li><li class="cdx-list__item">2. <b>触发截断(止血)</b>:假设行情突发极端单边下跌,我们的多单被套了,并且加仓达到了我们设定的硬性上限(比如最多只加5层)。<b>这个时候,多单彻底停止加仓!绝不继续往无底洞里扔钱。</b></li><li class="cdx-list__item">3. <b>波次剥离(遗弃)</b>:这被套的5单多单,会被系统标记为“死单(旧波次)”,扔在一边不管了。系统不再计算它们的加仓距离。</li><li class="cdx-list__item">4. <b>重新出发(赚钱)</b>:只要条件允许,EA会在当前的价位重新开启新一轮的交易(新的波次),或者只做另一个方向的订单,从初始手数开始,继续去抓震荡行情的利润。</li><li class="cdx-list__item">5. <b>利润打损(救人)</b>:EA后台会默默盯盘,把<b>新波次赚到的钱</b>(或者反向空单赚到的钱)积攒起来。一旦这些利润足够弥补那5张“死单”里亏损最大/最远的那一单,就<b>立刻将它们对冲平掉,</b><span style="color: rgb(68, 68, 68); font-family: &quot;DingTalk JinBuTi&quot;; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: pre-wrap; background-color: rgb(255, 255, 255); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">或者正常平仓,在平仓时按当时的盈利对冲之前的订单手数。</span></li></ol>
      
      
      
    </div>
</div><div class="ce-block ce-block--focused" data-id="cdb-tCyuzN" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left"><b>🏹 打个通俗的比方:</b>
就像打仗,我们有一小股部队(那5张单子)被敌人重重包围了。传统的马丁是继续派人进去送死,直到全军覆没(爆仓)。
而我们的新思路是:<b>停止无谓的增援。把主力部队调到其他好打的战场去打胜仗、搞战利品。等战利品攒够了,再回来把被围的兄弟一个个花钱赎出来。</b></div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="PIReYfWsN-" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left"><b>⚖️ 这个策略的优缺点:</b></div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="FIAEudRrbG" >
    <div class="ce-block__content">
           
      
      <ul class="cdx-list-unordered"><li class="cdx-list__item"><b>优点</b>:极限防爆仓。把爆仓的风险转化为了“时间成本”和“资金利用率”,极大地降低了单边行情带来的心理恐惧。你永远知道你的最大持仓量是多少。</li><li class="cdx-list__item"><b>缺点</b>:在解套期间,账户会带着一定的浮亏运行,且账户净值可能会有一段时间的停滞期(因为赚的利润都拿去填旧坑了)。</li></ul>
      
      
    </div>
</div><div class="ce-block ce-block--focused" data-id="PwKQ5bV-dd" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">这其实是一个用时间换空间,用概率对冲极端风险的成熟玩法。从代码开发的角度来说,需要用到动态魔术码等稍复杂的技术来区分各个波次的订单,有一定工作量,因为之前写的底层代码都不能用了,都要重写。</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="uJLBw4DdpF" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">所以发这个帖子,就是想跟兄弟们交流一下:
<b>大家认可这种“断臂求生、用时间换安全”的交易理念吗?这种宁可牺牲一部分利润,也要把风险彻底锁死的EA,大家会有使用的需求吗?</b></div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="81tW_Oka7G" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">如果大家的反馈比较正面,我就抓紧时间把它写出来,作为我们EA邦的新工具分享给大家测试使用。</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="DXNLNe82lA" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">欢迎大家在下面留言,说说你的真实想法!或者你们在实盘中有没有更好的防单边思路,也一起探讨探讨。</div>
        </div>
</div><style type="text/css">
.ce-block {
    margin-bottom: 20px;
}
.ce-block__content,.ce-toolbar__content {
        /* max-width:calc(100% - 50px) */
        margin-left: auto;
    margin-right: auto;
}
.ce-paragraph {
    line-height: 1.6em;
    outline: none;
    text-indent: 2em;
    font-size: 16px;
}
.ce-paragraph--right {
    text-align: right;
}
.ce-paragraph--center {
    text-align: center;
}
.ce-paragraph--left {
    text-align: left;
}

.ce-paragraph--justify {
    text-align: justify;
}

.ce-paragraph-text-indent {
    text-align: justify;
}
.ce-paragraph:empty::before{
content: attr(data-placeholder);
color: #707684;
font-weight: normal;
opacity: 0;
}

/** Show placeholder at the first paragraph if Editor is empty */
.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {
opacity: 1;
}

.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,
.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {
opacity: 0;
}

.ce-paragraph p:first-of-type{
    margin-top: 0;
}

.ce-paragraph p:last-of-type{
    margin-bottom: 0;
}


.svg-icon {
    width: 1em;
    height: 1em;
}

.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
    fill: #4691f6;
}

.svg-icon circle {
    stroke: #4691f6;
    stroke-width: 1;
}
</style><style type="text/css">
.ce-block {
    margin-bottom: 20px;
}
.ce-block__content,.ce-toolbar__content {
        /* max-width:calc(100% - 50px) */
        margin-left: auto;
    margin-right: auto;
}
.cdx-list {
        margin:0;
        outline:none;
        display:block;
        counter-reset:item;
        padding:6px;
}
.cdx-list__item {
        line-height:1.45em;
        display:block;
        padding-top:8px;
        margin-left: 2em;
}
.cdx-list__item-children {
        display:block;
}
.cdx-list__item {
        outline:none
}
.cdx-list__item-content {
        word-break:break-word;
        white-space:pre-wrap;
        grid-area:content;
        padding-left:8px
}
.cdx-list__item:before {
        counter-increment:item;
        white-space:nowrap
}
.cdx-list-li-container {
display: flex;
}
.cdx-list-ordered .cdx-list__item:before {
        /* content:counters(item,".",numeric) "." */
}
.cdx-list-ordered {
        list-style-type: none;
        margin-left: -15px;
        counter-reset:item;
        font-size: 16px;
}
.cdx-list-unordered {
        font-size: 16px;
}
.cdx-list-unordered .cdx-list__item:before {
        content:"•"
}
.cdx-list-checklist .cdx-list__item:before {
        content:""
}
.cdx-list__settings .cdx-settings-button {
        width:50%
}
.cdx-list__checkbox {
        padding-top:calc((1.45em - 1.2em) / 2);
        grid-area:checkbox;
        width:1.2em;
        height:1.2em;
        display:flex;
        cursor:pointer;
        font-size: 16px;
}
.cdx-list__checkbox svg {
        opacity:0;
        height:1.2em;
        width:1.2em;
        left:-1px;
        top:-1px;
        position:absolute
}
@media (hover:hover) {
        .cdx-list__checkbox:not(.cdx-list__checkbox--no-hover):hover .cdx-list__checkbox-check svg {
        opacity:1
}
}.cdx-list__checkbox--checked-1 {
        line-height:1.45em
}
@media (hover:hover) {
        .cdx-list__checkbox--checked-1:not(.cdx-list__checkbox--checked-1--no-hover):hover .cdx-checklist__checkbox-check {
        background:#0059AB;
        border-color:#0059AB
}
}.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check {
        background:#369FFF;
        border-color:#369FFF
}
.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check svg {
        opacity:1
}
.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check svg path {
        stroke:#fff
}
.cdx-list__checkbox--checked-1 .cdx-list__checkbox-check:before {
        opacity:0;
        visibility:visible;
        transform:scale(2.5)
}
.cdx-list__checkbox-check {
        cursor:pointer;
        display:inline-block;
        position:relative;
        margin:0 auto;
        width:1.2em;
        height:1.2em;
        box-sizing:border-box;
        border-radius:5px;
        border:1px solid #C9C9C9;
        background:#fff
}
.cdx-list__checkbox-check:before {
        content:"";
        position:absolute;
        top:0;
        right:0;
        bottom:0;
        left:0;
        border-radius:100%;
        background-color:#369FFF;
        visibility:hidden;
        pointer-events:none;
        transform:scale(1);
        transition:transform .4s ease-out,opacity .4s
}
.cdx-list__checkbox-check--disabled {
        pointer-events:none
}
.cdx-list-start-with-field {
        background:#F8F8F8;
        border:1px solid rgba(226,226,229,.2);
        border-radius:6px;
        padding:2px;
        display:grid;
        grid-template-columns:auto auto 1fr;
        grid-template-rows:auto
}
.cdx-list-start-with-field--invalid {
        background:#FFECED;
        border:1px solid #E13F3F
}
.cdx-list-start-with-field--invalid .cdx-list-start-with-field__input {
        color:#e13f3f
}
.cdx-list-start-with-field__input {
        font-size:16px;
        outline:none;
        font-weight:500;
        font-family:inherit;
        border:0;
        background:transparent;
        margin:0;
        padding:0;
        line-height:22px;
        min-width:calc(100% - 10px)
}
.cdx-list-start-with-field__input::placeholder {
        color:#797979;
        font-weight:500
}

</style><style type="text/css">
.inline-code {
background: rgba(250, 239, 240, 0.78);
color: #b44437;
padding: 3px 4px;
border-radius: 5px;
margin: 0 1px;
font-family: inherit;
font-size: 0.86em;
font-weight: 500;
letter-spacing: 0.3px;
}
</style>

wjwj999 发表于 5 天前

思路逻辑是说得通的,但是被套的单子在继续下跌后还是要继续亏损,这个什么时候停止加仓和开始按震荡思路做要怎么判断呢

jrpeng 发表于 4 天前

把每一组单子 当成一个单子来处理

唐老师 发表于 4 天前

<div class="quote"><blockquote><font size="2"><a href="https://www.eabang.com/bbs/forum.php?mod=redirect&amp;goto=findpost&amp;pid=76873&amp;ptid=8308" target="_blank"><font color="#999999">jrpeng 发表于 2026-5-7 08:34</font></a></font><br />
把每一组单子 当成一个单子来处理</blockquote></div><div class="ce-block ce-block--focused" data-id="qFdj34CjCw" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">是这意思。</div>
        </div>
</div><style type="text/css">
.ce-block {
    margin-bottom: 20px;
}
.ce-block__content,.ce-toolbar__content {
        /* max-width:calc(100% - 50px) */
        margin-left: auto;
    margin-right: auto;
}
.ce-paragraph {
    line-height: 1.6em;
    outline: none;
    text-indent: 2em;
    font-size: 16px;
}
.ce-paragraph--right {
    text-align: right;
}
.ce-paragraph--center {
    text-align: center;
}
.ce-paragraph--left {
    text-align: left;
}

.ce-paragraph--justify {
    text-align: justify;
}

.ce-paragraph-text-indent {
    text-align: justify;
}
.ce-paragraph:empty::before{
content: attr(data-placeholder);
color: #707684;
font-weight: normal;
opacity: 0;
}

/** Show placeholder at the first paragraph if Editor is empty */
.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {
opacity: 1;
}

.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,
.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {
opacity: 0;
}

.ce-paragraph p:first-of-type{
    margin-top: 0;
}

.ce-paragraph p:last-of-type{
    margin-bottom: 0;
}


.svg-icon {
    width: 1em;
    height: 1em;
}

.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
    fill: #4691f6;
}

.svg-icon circle {
    stroke: #4691f6;
    stroke-width: 1;
}
</style><style type="text/css">
.inline-code {
background: rgba(250, 239, 240, 0.78);
color: #b44437;
padding: 3px 4px;
border-radius: 5px;
margin: 0 1px;
font-family: inherit;
font-size: 0.86em;
font-weight: 500;
letter-spacing: 0.3px;
}
</style>

唐老师 发表于 4 天前

<div class="quote"><blockquote><font size="2"><a href="https://www.eabang.com/bbs/forum.php?mod=redirect&amp;goto=findpost&amp;pid=76867&amp;ptid=8308" target="_blank"><font color="#999999">wjwj999 发表于 2026-5-6 23:04</font></a></font><br />
思路逻辑是说得通的,但是被套的单子在继续下跌后还是要继续亏损,这个什么时候停止加仓和开始按震荡思路做 ...</blockquote></div><div class="ce-block ce-block--focused" data-id="xXIIZnYJF7" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">用层数限制。</div>
        </div>
</div><style type="text/css">
.ce-block {
    margin-bottom: 20px;
}
.ce-block__content,.ce-toolbar__content {
        /* max-width:calc(100% - 50px) */
        margin-left: auto;
    margin-right: auto;
}
.ce-paragraph {
    line-height: 1.6em;
    outline: none;
    text-indent: 2em;
    font-size: 16px;
}
.ce-paragraph--right {
    text-align: right;
}
.ce-paragraph--center {
    text-align: center;
}
.ce-paragraph--left {
    text-align: left;
}

.ce-paragraph--justify {
    text-align: justify;
}

.ce-paragraph-text-indent {
    text-align: justify;
}
.ce-paragraph:empty::before{
content: attr(data-placeholder);
color: #707684;
font-weight: normal;
opacity: 0;
}

/** Show placeholder at the first paragraph if Editor is empty */
.codex-editor--empty .ce-block:first-child .ce-paragraph:empty::before {
opacity: 1;
}

.codex-editor--toolbox-opened .ce-block:first-child .ce-paragraph:empty::before,
.codex-editor--empty .ce-block:first-child .ce-paragraph:empty:focus::before {
opacity: 0;
}

.ce-paragraph p:first-of-type{
    margin-top: 0;
}

.ce-paragraph p:last-of-type{
    margin-bottom: 0;
}


.svg-icon {
    width: 1em;
    height: 1em;
}

.svg-icon path,
.svg-icon polygon,
.svg-icon rect {
    fill: #4691f6;
}

.svg-icon circle {
    stroke: #4691f6;
    stroke-width: 1;
}
</style><style type="text/css">
.inline-code {
background: rgba(250, 239, 240, 0.78);
color: #b44437;
padding: 3px 4px;
border-radius: 5px;
margin: 0 1px;
font-family: inherit;
font-size: 0.86em;
font-weight: 500;
letter-spacing: 0.3px;
}
</style>

bobo5589202 发表于 4 天前

老师,我的想法考虑一下。如果是空单被套,后面就只下多单,如果多层多单的总盈利大于一个空单的亏损,就可以把这些单子平了,逐步降低空单的持仓。我认为关键在于趋势判断的准确性,如果通过均线或其他指标能更准确的预判趋势,那么顺势做单就能很少被套。

TmHunter 发表于 4 天前

策略核心逻辑
不盲目加仓扛单,新开波段赚利差,用新增盈利分批解套,是典型稳健风控思路。
大幅降低爆仓概率,把爆仓风险转化为时间成本。
缺点是订单出场变慢,资金利用率下降。

缺点与隐性短板
解套周期不确定:长期偏弱震荡或单边行情下,盈利积累慢,账户长期背负浮亏、资金被占用。
净值易横盘:盈利优先填补旧单亏损,短期难以复利,只适合稳健长线,不适合追求短期暴利。
开发难度高:需多波次隔离、动态魔术码、盈利归集对冲,原有马丁框架无法复用,底层需重写。

我觉得可以尝试,但是大单边的情况,会积累大浮亏。小仓位估计比原来更难以解套,可能需要适当提高仓位,可以不同向去对冲。

TmHunter 发表于 4 天前

4. 重新出发(赚钱):只要条件允许,EA会在当前的价位重新开启新一轮的交易(新的波次)

可能更重要的是判断条件允许

xiaoxiaoliu 发表于 4 天前

反正有时候,我被套的时候确实是这样解套出来的,剩下的不管,用新交易的单子的盈利慢慢积累去砍掉亏损较大的单子,或者一部分单子,只要有耐心确实还是可以的,只不过这样要好久,我人工盯盘的时候好累

唐老师 发表于 3 天前

嗯,是的,这种方法是值得尝试的。
页: [1] 2
查看完整版本: 聊聊马丁的终极痛点:我有一个“新单救老单”的策略构想,想听听大家的意见!