反向对冲模块需求
反向对冲全自动对冲里面1。对冲设置里,只有只对冲仓位重的方向,没有只对冲仓位轻的方向。
2。全自动对冲完之后,能不能加个自动补仓的功能,
持仓1手多,0.8空。25%对冲,往多走,1手对冲0.8手的25%。对冲完,剩下0.6手空,设置了锁仓25%的话,就是0.6空,锁0.15多
这时候,
能不能加个功能,剩下0.6空的时候,可以自己设置仓位多的方向的补仓目标,
手动填目标,比如目标1.2手,0.6空就加仓空到1.2
手动填倍数,比如填剩下单子3倍。0.6空就加仓到1.8手空
补仓可以是对冲完之后锁仓前,也可以是锁仓后。这个无所谓。
第2个需求真的有用。每次对冲完,还要手动算要加仓的,然后手动加仓。做不到离人托管。开的品种对,窗口多,识别码多。能累死。:dizzy:
研究一下,亲。
唐老师 发表于 2025-12-6 21:08
研究一下,亲。
唐老师,博主的提议很好,解决的问题是反向对冲后多或空按某比例补仓,从而形成多空仓位拉扯的相对合理的净持仓
<div class="ce-block ce-block--focused" data-id="ZTjJESf74r" >
<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]