会产生以下错误
'POSITION_TICKET' - undeclared identifier ZZ_Fibo_Trader.mq5 191 52
'PositionGetInteger' - no one of the overloads can be applied to the function call ZZ_Fibo_Trader.mq5 191 33
3 error(s), 0 warning(s) 4 1
会产生以下错误
'POSITION_TICKET' - undeclared identifier ZZ_Fibo_Trader.mq5 191 52
'PositionGetInteger' - no one of the overloads can be applied to the function call ZZ_Fibo_Trader.mq5 191 33
3 error(s), 0 warning(s) 4 1
190 if(ZZLevel000[1] > ZZLevel100[1]) TradeDirection = 1;
191 else TradeDirection = -1;
您是否删除了代码中的某些行?
从错误内容来看,定义交易请求结构的 语法被破坏了。
要么是在定义该结构的行中(对我来说是第 57 行),要么是在调用交易函数的行中(171 - 174)。
MqlTradeRequest Request = {0};
...
Request.action = TRADE_ACTION_SLTP;
Request.symbol = Symbol();
Request.sl = StopLossLevel; //move SL as parabolic StopLossLevel;
Request.position = PositionGetInteger(POSITION_TICKET);
if(OrderCheck(Request, Check) && Check.retcode == 0)
{
if(!OrderSend(Request, Results) || Results.retcode != 10009) Print("Fail to modify SL");
}
else
{
if(Check.retcode == 10019) Print("There is not enough money to complete the request");
if(Check.retcode == 10025) Print("No changes in request");
if(Check.retcode == 10014) Print("Invalid volume in the request");
}
HI.... 我正试图使用 "ZZ Fibo Trader EA + Siple ZZ Fibo indicator"(ZZ Fibo EA + SipleZZ Fibo指标)进行Backtest(回溯测试),
但我做不了,因为系统显示:
已导入模块 "Simple ZZ Fibo.ex5 "的过时版本
你能重新编译并再次上传吗?
非常感谢,并致以最崇高的敬意
ps. 抱歉我的英语不好。
- 投票: 12
- 2017.01.18
- Oleg Shenker
- www.mql5.com
- www.mql5.com
我遇到了这个错误,请给我一个建议

ZZ Fibo Trader:
ZZ Fibo Trader 简单地展示了 Simple ZZ Fibo 的使用, 它在之字转向的波动中绘制斐波那契线。另外,算法还展示了通过抛物线系统进行移动止损的操作。
作者: Oleg Shenker