点差统计EA
不管是进行ea交易,还是手工交易,强烈建议在实盘之前对交易品种做点差统计。
上图是Ea自动统计的每5分钟为间隔的平均点差和平台报价次数,从中可以看出在一些时间段的点差差异非常大(蓝色圈)。
如果你用历史数据回测按正常时段的点差测试,可能效果不错,但是你忽略了这种点差大的时段,这就会导致你的策略在历史数据回测(模拟盘)和实盘产生不同的效果。
这个ea就是对不同时段的点差进行统计,以方便我们交易者规避这种点差过大的时段,或者至少对你当下的交易品种的点差心中有数,或者干脆以最大点差进行历史数据回测。
该EA加载后只有一个周期选择的参数。
选择好周期并运行Ea,ea会按你设置的周期,每根K线开始时,把上根K线的点差输出到Ea面板里。
如上图,我设置的是5分钟周期,ea会每5分钟输出一次点差统计。
其中的如13:25=20+625的意思是,13点25分(平台时间)的这根K线,平均点差是20,K线跳动(平台报价次数)是625次。
也可以在任意一条记录点右键、查看,然后如上图,选择查看的时间,就可以导出某一天的点差统计。
EA下载(MT4):
EA下载(MT5):
这个需要跑多久的数据才有参考价值 iflii 发表于 2025-4-21 01:36
这个需要跑多久的数据才有参考价值
至少一周
这个点差统计EA可以出一个MT5版么 <div class="quote"><blockquote><font size="2"><a href="https://www.eabang.com/bbs/forum.php?mod=redirect&goto=findpost&pid=77294&ptid=4189" target="_blank"><font color="#999999">yixiu 发表于 2026-6-1 15:45</font></a></font><br />
这个点差统计EA可以出一个MT5版么</blockquote></div><div class="ce-block ce-block--focused" data-id="sc_pFMD2vE" >
<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]