加载设置自定义增加具体金额值的策略选项
唐老师,我在测试使用自定义选项时,如图,即当设置2的公式运行时,当亏损金额达到帐户金额的百分之多少时转到设置3公式,这个亏损的百分比金额跟总帐户的金额有很大系,假如我的总帐户入金是2000,那设置20%则是400,就是说当亏损达400后就会运行策略3公式,如果帐户入金是5000,那设置20%则是1000,就是说当亏损达1000后才会运行策略3公式,这样亏损值则会大很多,亏损金额值风险变大。如果当初入金2000,当做半年一年后帐户净值慢慢增长到了5000,我们也不希望亏损金额值变成1000后才运行策略3,想让公式始终亏损400后就运行策略3,现无法实现这个想法,故希望老师帮增加一个选项,帐户即时净值亏损达多少时就转换另一个设置公式,这个亏损值是具体的数值,如200,或500或1000可自定义设置。辛苦老师了!
现在不是有浮亏多少自动切换配置文件吗?
唐老师 发表于 2026-4-25 21:54
现在不是有浮亏多少自动切换配置文件吗?
是的,有浮亏比例可以设置,可否增加一个可以设置具体浮亏金额值的选项供使用,这样会更好控制浮亏金额。
请帮考虑做上去呗,谢谢了!
哦,明白了。
<div class="quote"><blockquote><font size="2"><a href="https://www.eabang.com/bbs/forum.php?mod=redirect&goto=findpost&pid=76681&ptid=8279" target="_blank"><font color="#999999">mailqq 发表于 2026-4-25 23:19</font></a></font><br />
是的,有浮亏比例可以设置,可否增加一个可以设置具体浮亏金额值的选项供使用,这样会更好控制浮亏金额。 ...</blockquote></div><div class="ce-block ce-block--focused" data-id="JMYBvSy7LB" >
<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> <div class="ce-block ce-block--focused" data-id="6VWWLo4njd" >
<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> 是的,实时净值亏损多少金额值 时进行切换配置文件。 6.6.2版本增加了浮亏切换配置文件功能。
https://www.eabang.com/bbs/thread-8338-1-1.html 唐老师,我这6.6版本的设置调用自定义参数时,设置好了,然后过一会儿自动就恢复初始值灰色界面了,啥原因?6.6.2版本加载原来参数后,加仓设置参数多,空无法打开,在专家那里提示大于设置加仓手数。首单多空是程序默认的-2,我在哪里没设置正确吗?谢谢!
页:
[1]