【Hedging对冲EA】反向对冲的锁仓功能会在总体止盈后仍然开单进行锁仓
<div class="ce-block ce-block--focused" data-id="3Z8Xk9PnQM" ><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="Lkh41fxsK8" >
<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="JQeIGOcmty" >
<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]