Советники: ZZ Fibo Trader

 

ZZ Fibo Trader:

ZZ Fibo Trader является простой иллюстрацией использования индикатора Simple ZZ Fibo, который строит линии Фибоначчи на длинных импульсных волнах зигзага. В дополнение алгоритм иллюстрирует работу параболической системы перемещения стоп-лосса.

EA waits for price to breakethrough one of the fibo. level. In case of reverse breakthrough EA trades in a direction of reverse breakthrough.

Автор: Oleg Shenker

 

Выдает такие ошибки

'position' - struct member undefined    ZZ_Fibo_Trader.mq5      191     22
'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' - struct member undefined    ZZ_Fibo_Trader.mq5      191     22
'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");

       }              


 


Причина обращения: