下午好,在我看来,这是一款非常棒的 EA。至少在视觉上和测试上都很不错。我现在正在测试它。问题。我的理解是否正确,即开仓时的交叉线在蜡烛收盘时才被您考虑?还是在蜡烛周期内的任何交叉都会被考虑?
下午好!请立即在 MetaTreider 5 上下载 EA。
由于某些原因,猫头鹰没有工作((()。
这是一款写得很好的 EA,秩序井然、
如果有人渴望获得编写精良的代码,那就拥有它吧、
非常感谢作者、
我还在想,为什么其他人不对这个 EA 发表评论呢?
基金在新版 mql5 中出现了一些错误,谁能解决这个问题?
- ')' - 预期表达式
- close' -数组访问 无效
void OnTick() { bool pos=PositionSelect(Symbol()); if(!pos || (pos && (use_Averaging || Position_overturn))) { datetime Now_time[1]; int coptTime=CopyTime(Symbol(),NULL,0,1,Now_time); if(Now_time[0]>_time && coptTime!=-1) { int type=-1; double propn=0,prev_lot=0; if((use_Averaging || Position_overturn) && pos) { prev_lot=PositionGetDouble(POSITION_VOLUME); type=(int)PositionGetInteger(POSITION_TYPE); if(type==0 && prev_open!=0) propn = prev_open-SymbolInfoDouble(Symbol(),SYMBOL_ASK); if(type==1 && prev_open!=0) propn = SymbolInfoDouble(Symbol(),SYMBOL_BID)-prev_open; } ArrayInitialize(high_extr,0); ArrayInitialize(low_extr,0); int cop1 = CopyBuffer(handle_MALR,3,1,2,high_extr); int cop2 = CopyBuffer(handle_MALR,4,1,2,low_extr); if(cop1==2 || cop2==2 || high_extr[0]>0 || high_extr[1]>0 || low_extr[0]>0 || low_extr[1]>0) { double close[2]; int copy_close = CopyClose(Symbol(),NULL,1,2,close); if(copy_close==2) { if(high_extr[0]<=close[0] && high_extr[1]>=close[1]) { if(Position_overturn) { if(type==0) { if(close()) { if(!open(1,prev_lot,3)) return; } _time=Now_time[0]; return; } if(!use_Averaging && pos) { _time=Now_time[0]; return; } } if(use_Averaging) { if(type!=-1) { if(type==1 && propn>=loss_forAveraging*point && propn!=0) if(!open(1,prev_avlot,2)) return; } else if(!open(1,0,1)) return; _time=Now_time[0]; return; } else { if(!open(1,0,1)) return; } } if(low_extr[0]>=close[0] && low_extr[1]<=close[1]) { if(Position_overturn) { if(type==1) { if(close()) { if(!open(0,prev_lot,3)) return; } _time=Now_time[0]; return; } if(!use_Averaging && pos) { _time=Now_time[0]; return; } } if(use_Averaging) { if(type!=-1) { if(type==0 && propn>=loss_forAveraging*point && propn!=0) if(!open(0,prev_avlot,2)) return; } else if(!open(0,0,1)) return; _time=Now_time[0]; return; } else { if(!open(0,0,1)) return; } } _time=Now_time[0]; } } } else return; }
63839348 数组访问 无效
将 close() 改为 Close()。将第一个字母改为大写。
虽然它有另一个错误,即不支持的填充类型错误。
EA_MALR:
该 EA 在 MALR 指标基础上绘制。提供尾随止损, 手数增加, 平均与反转功能。
作者: Alexander Puzikov