aoc 发表于 2026-7-5 16:54:34

唐老师,为什么我的EA模拟盘和实盘开单完全不一样?是不是程序有BUG?

<div class="ce-block ce-block--focused" data-id="gyiSdpp_1x" >
        <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="jGaQcFcTLT" >
        <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="MqZQP3Og_l" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">同样的行情,同样的EA,同样的参数,怎么会差这么多?是不是EA在实盘环境下有什么问题,还是说平台在搞鬼?麻烦老师帮我看看,现在都不敢挂实盘了,怕出大问题。</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="7ptczqDUn_" >
    <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_7ptczqDUn_" class="image-tool__image-picture _zoom" src="https://www.eabang.com/bbs/data/attachment/forum/202607/05/165308ozvfvfzrvl1k6km6.png" title="" alt="" data-aid="8294"/>
            </div>
            <div class="cdx-input image-tool__caption" data-placeholder=""></div>
      </div>
    </div>
</div><div class="ce-block ce-block--focused" data-id="NoI5EcOICL" >
    <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_NoI5EcOICL" class="image-tool__image-picture _zoom" src="https://www.eabang.com/bbs/data/attachment/forum/202607/05/165328c1knh0f3ndv11haj.png" title="" alt="" data-aid="8295"/>
            </div>
            <div class="cdx-input image-tool__caption" data-placeholder=""></div>
      </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">
.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">
.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>

唐老师 发表于 2026-7-5 17:06:08

<div class="ce-block ce-block--focused" data-id="cT5RGFBQB1" >
        <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="S6A5zefFPx" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">首先,我可以非常肯定地告诉你,咱们EA邦的EA代码逻辑是完全固定且透明的。我们所有的EA和指标决不作弊,里面没有任何专门用来骗模拟盘好看的“未来函数”。只要行情价格到了设定的条件,EA给出的指令就肯定是一样的。</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="veBxssr6yb" >
        <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="eN9cX5m0Lq" >
    <div class="ce-block__content">
           
      
      <ul class="cdx-list-unordered"><li class="cdx-list__item"><b>品种后缀与账户类型不同:</b> 你仔细看图表左上角的品种名称。即使在同一个平台,不同账户类型(微型、标准)的报价源、点差、甚至最小下单量要求都是不一样的。这就相当于让EA在两条不同的路上跑,结果肯定不同。</li><li class="cdx-list__item"><b>真实市场的流动性与滑点:</b> 模拟盘本质上是“单机游戏”,资金和流动性都是虚拟的,拥有无限流动性。只要你的指令发出去,不管当时行情波动多快,系统都会瞬间无损地给你成交。但实盘是真金白银的金融市场,你的单子抛进去必须要有对手盘。行情剧烈波动时,实盘经常会产生滑点,有时候模拟盘顺利加进去了网格单,实盘却因为流动性不足导致价格错位没开上,一步错后面就截然不同了。</li><li class="cdx-list__item"><b>服务器延迟与订单拒绝(Requote):</b> 很多券商的实盘服务器负载远高于模拟服务器。在快速行情的跳空缺口中,EA发出实盘开仓指令后,平台可能因为价格已经改变而直接拒绝成交(重新报价)。图二中少了很多单子,大概率是EA发送了指令,但被平台服务器拒收了。</li><li class="cdx-list__item"><b>点差的瞬间扩大:</b> 模拟盘的点差通常比较稳定,但实盘在早盘清淡或者发布重大数据时,点差会瞬间拉得很大。可能实盘瞬间拉大的点差导致没有触发开仓条件,而模拟盘的平滑报价却触发了。</li></ul>
      
      
    </div>
</div><div class="ce-block ce-block--focused" data-id="piA9cAIfCl" >
        <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="4GWBuqlzNa" >
        <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="9HqU3eFYWc" >
        <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="_3jIOCyRlX" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">《<a href="https://www.eabang.com/bbs/thread-3589-1-1.html" target="_blank" rel="nofollow">把多年的马丁玩法分享给你</a>》</div>
        </div>
</div><div class="ce-block ce-block--focused" data-id="BfdtnJ9041" >
        <div class="ce-block__content">
                <div class="ce-paragraph cdx-block ce-paragraph--left">《<a href="https://www.eabang.com/bbs/forum-154-1.html" target="_blank" rel="nofollow">跟单EA下载</a>》</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">
.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]
查看完整版本: 唐老师,为什么我的EA模拟盘和实盘开单完全不一样?是不是程序有BUG?