移动止盈为什么没有全部平仓
<div class="ce-block ce-block--focused" data-id="LsPlLneNFF" ><div class="ce-block__content">
<div class="ce-paragraph cdx-block ce-paragraph--left">我的策略单子很多,移动止盈平仓时候,回调很小就触发平仓,我发现止盈线不是每个单子都有,他就是后边大的单子出来自动止盈线了,最早的单子还没出来呢,行情波动一下回调后边的单子就止盈出场了,但是前边没出来的单子他就不平仓了,因为后边的单子平了以后,前边没出来止盈线的,到达不了总体止盈的条件了,MT4的,这个有解决的方法吗?</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" data-id="Hq-mSd-yNj" >
<div class="ce-block__content" style="">
<h3 class="ce-header ce-header--left">移动止盈为什么没有全部平仓?(附原理解析与解决方案)</h3>
</div>
</div><div class="ce-block ce-block--focused" data-id="HJucq00-Om" >
<div class="ce-block__content">
<div class="ce-paragraph cdx-block ce-paragraph--left">你好!你在实盘或测试中遇到的这个问题,是在运行加仓策略(如马丁、网格等)时非常典型的一个现象,这种情况经常出现在顺势加仓中。要彻底解决这个问题,我们需要先弄清楚MT4底层订单执行的逻辑,然后再根据你的交易风险偏好,选择最适合的平仓方式。</div>
</div>
</div><div class="ce-block ce-block--focused" data-id="B3PNwzRZ13" >
<div class="ce-block__content">
<div class="ce-paragraph cdx-block ce-paragraph--left">并不是所有策略都会出现这种情况,具体要根据你的策略来选择移动止盈方式。</div>
</div>
</div><div class="ce-block" data-id="jScGtxjut3" >
<div class="ce-block__content" style="">
<h4 class="ce-header ce-header--left">一、 为什么会出现“部分平仓、部分不平仓”?</h4>
</div>
</div><div class="ce-block ce-block--focused" data-id="rir3gdk_wc" >
<div class="ce-block__content">
<div class="ce-paragraph cdx-block ce-paragraph--left">这其实和“移动止盈的启动条件”<b>以及</b>“MT4止损价的设置机制”有关。</div>
</div>
</div><div class="ce-block ce-block--focused" data-id="dimES6h4Ss" >
<div class="ce-block__content">
<div class="cdx-block image-tool image-tool--filled ">
<div class="image-tool__image">
<div class="image-tool__image-preloader" style=""></div>
<img id="aimg_dimES6h4Ss" class="image-tool__image-picture _zoom" src="https://www.eabang.com/bbs/data/attachment/forum/202606/14/140130yr2ks2rw2c92e2s8.png" title="" alt="" data-aid="8238"/>
</div>
<div class="cdx-input image-tool__caption" data-placeholder=""></div>
</div>
</div>
</div><div class="ce-block ce-block--focused" data-id="rQUM72VTaN" >
<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> 普通的移动止盈(无论是点数移动还是金额移动),都需要满足<b>启动条件</b>才会开始工作。在加仓策略中,各个订单的开仓价格各不相同。</li><li class="cdx-list__item">2. <b>只有满足条件的订单才会有止损线:</b> 当行情回调时,通常是盈利的单子(往往仓位也较大)率先实现盈利,并达到了你设置的“启动条件”。此时,EA会自动为<b>这部分满足条件的订单</b>修改MT4的止损价(也就是你看到的止盈线)。</li><li class="cdx-list__item">3. <b>未满足条件的订单被“遗留”:</b> 之前开的那些单子(或者盈利还没达到启动阈值的单子),因为没有满足启动条件,EA就不会给它们设置止损线。</li><li class="cdx-list__item">4. <b>触发平仓导致条件破坏:</b> 当行情稍微一波动,价格打到了那些已经设置了止损价的订单的线上,这批单子就被MT4系统平仓出局了。这批盈利的单子平掉之后,剩下的那些没出来的单子,自然就达不到“总体止盈”的条件了,因此就被留在了场内。
</li></ol>
</div>
</div><div class="ce-block ce-block--focused" data-id="BIbIt5aaN4" >
<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="jiosrr4nue" >
<div class="ce-block__content">
<div class="ce-paragraph cdx-block ce-paragraph--left">其实如果你的移动止盈,不设置启动条件,也就是亏损也移动,比如把启动条件设置成负数,那其实不存在有些订单不设置止损价的问题。</div>
</div>
</div><div class="ce-block" data-id="sjnMcMOQli" >
<div class="ce-block__content" style="">
<h4 class="ce-header ce-header--left">二、 想要全部平仓?请使用“画线移动止盈”</h4>
</div>
</div><div class="ce-block ce-block--focused" data-id="yEqnefVEJ3" >
<div class="ce-block__content">
<div class="cdx-block image-tool image-tool--filled ">
<div class="image-tool__image">
<div class="image-tool__image-preloader" style=""></div>
<img id="aimg_yEqnefVEJ3" class="image-tool__image-picture _zoom" src="https://www.eabang.com/bbs/data/attachment/forum/202606/14/140609yybjadh0y7ndn7jq.png" title="" alt="" data-aid="8239"/>
</div>
<div class="cdx-input image-tool__caption" data-placeholder=""></div>
</div>
</div>
</div><div class="ce-block ce-block--focused" data-id="ijVJTlsqfg" >
<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="LrMX1SoBS-" >
<div class="ce-block__content">
<ul class="cdx-list-unordered"><li class="cdx-list__item"><b>不修改订单止损价:</b> 它完全抛弃了MT4自带的修改单笔订单止损价的做法,因此不受单笔订单是否盈利的限制。</li><li class="cdx-list__item"><b>虚拟防线,触线全平:</b> 它的原理是在图表上根据你的设置画出一条“虚拟移动止盈线”。这条线会随着行情的有利方向不断移动。</li><li class="cdx-list__item"><b>主动市价全平:</b> 一旦当前价格回撤触碰到了这条虚拟的画线,EA会立刻向服务器发送<b>市价全部平仓</b>的指令。不管你手里有5个单子还是50个单子,EA都会在这一瞬间把它们全部清空,绝不留尾巴。</li></ul>
</div>
</div><div class="ce-block" data-id="xev1jvAIjN" >
<div class="ce-block__content" style="">
<h4 class="ce-header ce-header--left">三、 交易的本质是取舍:没有两全其美的办法</h4>
</div>
</div><div class="ce-block ce-block--focused" data-id="xuwTTn8XC5" >
<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="R-HcqMDbLm" >
<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> 它的好处是干净利落,一次性清盘,有效规避了被套牢的风险,让账户迅速恢复空仓安全状态;但坏处是,因为是“一刀切”,有些单子可能还没达到它本身的盈利启动条件就被一起平掉了,导致这一波行情你<b>赚得少了</b>。</li></ul>
</div>
</div><div class="ce-block ce-block--focused" data-id="bOINjK_flo" >
<div class="ce-block__content">
<div class="ce-paragraph cdx-block ce-paragraph--left"><b>EA邦建议:</b>
我们一直倡导大家把稳定放在第一位。牺牲掉尾巴上的一点潜在利润,换取资金的快速回笼和账户的安全运行,往往是更明智的选择。建议大家在了解策略运作方式的前提下,经过大量的历史回测和模拟盘测试,找到那个让你心里最踏实、最能实现稳定盈利的平仓平衡点。</div>
</div>
</div><style type="text/css">
.ce-block {
margin-top: 20px;
margin-bottom: 20px;
}
.ce-block__content,.ce-toolbar__content {
/* max-width:calc(100% - 50px) */
margin-left: auto;
margin-right: auto;
}
/**
* Plugin styles
*/
.ce-header {
position: relative;
padding: 1px 0px 1px 15px;
margin: 0;
line-height: 1.25em;
outline: none;
margin-bottom: 10px;
}
.ce-header p,
.ce-header div {
padding: 0 !important;
margin: 0 !important;
}
.ce-header::before {
content: "";
background-color: #3e8fe3;
width: 6px;
height: 100%;
position: absolute;
left: 0;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
}
/**
* Styles for Plugin icon in Toolbar
*/
.ce-header__icon {
}
.ce-header::before {
position: absolute;
content: attr(data-placeholder);
color: #707684;
font-weight: normal;
display: none;
cursor: text;
}
.ce-header:empty::before {
display: block;
}
.ce-header:empty:focus::before {
display: none;
}
/* FontSize */
h1.ce-header {
font-size: 2.0em;
}
h2.ce-header {
font-size: 1.7em;
}
h3.ce-header {
font-size: 1.4em;
}
h4.ce-header {
font-size: 1.15em;
}
h5.ce-header {
font-size: 0.95em;
}
h6.ce-header {
font-size: 0.8em;
}
/* Alignment*/
.ce-header--right {
text-align: right;
}
.ce-header--center {
text-align: center;
}
.ce-header--left {
text-align: left;
}
.ce-header--justify {
text-align: justify;
}
</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;
}
.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;
}
.image-tool {
--bg-color: #cdd1e0;
--front-color: #388ae5;
--border-color: #e8e8eb;
}
.image-tool__image {
border-radius: 3px;
overflow: hidden;
margin-bottom: 10px;
}
.image-tool__image-picture {
max-width: 100%;
vertical-align: bottom;
display: block;
margin-left: auto;
margin-right: auto;
}
.image-tool__image-preloader {
width: 50px;
height: 50px;
border-radius: 50%;
background-size: cover;
margin: auto;
position: relative;
background-color: #cdd1e0;
background-position: center center;
}
.image-tool__image-preloader::after {
content: "";
position: absolute;
z-index: 3;
width: 60px;
height: 60px;
border-radius: 50%;
border: 2px solid #cdd1e0;
border-top-color: #388ae5;
left: 50%;
top: 50%;
margin-top: -30px;
margin-left: -30px;
animation: image-preloader-spin 2s infinite linear;
box-sizing: border-box;
}
.image-tool__caption::before {
position: absolute !important;
content: attr(data-placeholder);
color: #707684;
font-weight: normal;
display: none;
}
.image-tool__caption:empty::before {
display: block;
}
.image-tool__caption:empty:focus::before {
display: none;
}
.image-tool--empty .image-tool__image {
display: none;
}
.image-tool--empty .image-tool__caption, .image-tool--loading .image-tool__caption {
display: none;
}
.image-tool .cdx-button {
display: flex;
align-items: center;
justify-content: center;
}
.image-tool .cdx-button svg {
height: auto;
margin: 0 6px 0 0;
}
.image-tool--filled .cdx-button {
display: none;
}
.image-tool--filled .image-tool__image-preloader {
display: none;
}
.image-tool--loading .image-tool__image {
min-height: 200px;
display: flex;
border: 1px solid #e8e8eb;
background-color: #fff;
}
.image-tool--loading .image-tool__image-picture {
display: none;
}
.image-tool--loading .cdx-button {
display: none;
}
/**
* Tunes
* ----------------
*/
.image-tool--withBorder .image-tool__image {
border: 1px solid #e8e8eb;
}
.image-tool--withBackground .image-tool__image {
padding: 15px;
background: #cdd1e0;
}
.image-tool--withBackground .image-tool__image-picture {
max-width: 60%;
margin: 0 auto;
}
.image-tool--stretched .image-tool__image-picture {
width: 100%;
}
.image-tool__caption {
text-align: center;
font-size: 14px;
color: #a3a3a3;
}
@keyframes image-preloader-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</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>
页:
[1]