Выдает такие ошибки
'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");
}
- Бесплатные приложения для трейдинга
- 8 000+ сигналов для копирования
- Экономические новости для анализа финансовых рынков
Вы принимаете политику сайта и условия использования
ZZ Fibo Trader:
ZZ Fibo Trader является простой иллюстрацией использования индикатора Simple ZZ Fibo, который строит линии Фибоначчи на длинных импульсных волнах зигзага. В дополнение алгоритм иллюстрирует работу параболической системы перемещения стоп-лосса.
Автор: Oleg Shenker