mailqq 发表于 5 天前

对冲风控的反向对冲锁仓开关不复位

唐老师,在测试时发现对冲风控板块反向对冲锁仓开关启动了锁仓后关闭锁仓开关,但在净值全平订单后,重新开始新一轮开仓订单了,锁仓开关不复位,仍然显示锁仓后关闭锁仓开关状态,这样会造 成亏损一定金额后不会锁仓了,请帮检查下是不是有BUG .

附图我的理解是当亏损500后进行锁仓,并启动锁仓后关闭锁仓开关,净值盈利后全平,重新下单后,EA应该还会复位到亏损500进行锁仓状态,就是每次净值平仓或累计盈利全平后都能够复位到亏损500进行锁仓状态。但是还在发现不是按这个意思执行。

admin2 发表于 5 天前

<div class="ce-block ce-block--focused" data-id="wtOm0VwRLb" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">亏损大于500会打开锁仓开关,当锁仓订单下了之后会关闭锁仓开关。</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="jSHpq3qGFp" >
        <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="fjrEe9t3Ge" >
        <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>

mailqq 发表于 5 天前

<div class="quote"><blockquote><font size="2"><a href="https://www.eabang.com/bbs/forum.php?mod=redirect&amp;goto=findpost&amp;pid=77555&amp;ptid=8387" target="_blank"><font color="#999999">唐老师 发表于 2026-6-21 16:04</font></a></font><br />
亏损大于500会打开锁仓开关,当锁仓订单下了之后会关闭锁仓开关。;上面应该是这两个功能的解释。;你说净值 ...</blockquote></div><div class="ce-block ce-block--focused" data-id="V20kzAQBDT" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">那全平后相当于重新加载EA啊,当然要用初始的参数啊,请帮考虑需求,谢谢</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>

mailqq 发表于 5 天前

<div class="quote"><blockquote><font size="2"><a href="https://www.eabang.com/bbs/forum.php?mod=redirect&amp;goto=findpost&amp;pid=77555&amp;ptid=8387" target="_blank"><font color="#999999">唐老师 发表于 2026-6-21 16:04</font></a></font><br />
亏损大于500会打开锁仓开关,当锁仓订单下了之后会关闭锁仓开关。;上面应该是这两个功能的解释。;你说净值 ...</blockquote></div><div class="ce-block ce-block--focused" data-id="kIJlfGo0LY" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">我的意思是净值全平后恢复EA原来的参数设置状态,现在是全平后,不会再进行锁仓了,理论应该要返回原来的EA参数状态吧,因为EA要锁仓的目的是时刻准备为亏损锁仓作好准备啊,那净值全平或累计盈利全平后的后面则无法用这个功能了。</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="EJyK5o_fcE" >
        <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>

sample100 发表于 前天 11:15

我前面也发了一篇同样的问题,也是净值增加全平所有订单后,反向对冲里的锁仓设置仍然滞后开了锁仓单:'(

唐老师 发表于 前天 15:00

<div class="quote"><blockquote><font size="2"><a href="https://www.eabang.com/bbs/forum.php?mod=redirect&amp;goto=findpost&amp;pid=77604&amp;ptid=8387" target="_blank"><font color="#999999">sample100 发表于 2026-6-24 11:15</font></a></font><br />
我前面也发了一篇同样的问题,也是净值增加全平所有订单后,反向对冲里的锁仓设置仍然滞后开了锁仓单 ...</blockquote></div><div class="ce-block ce-block--focused" data-id="NZNQipAOPb" >
        <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>
页: [1]
查看完整版本: 对冲风控的反向对冲锁仓开关不复位