Tester stopped because OnInit returns non-zero code 1 - page 3

 
Mohammad Tajvidi #:

Thank you

I just noticed that your code is for mt4( I have very limited knowledge when it comes to it) and I don't have the custom indicator 
 
Mohammad Tajvidi #:
        double positionTakeProfit = PositionGetDouble(POSITION_TP);

        double zigzagHigh = iCustom(_Symbol, PERIOD_H4, "ZigZag", zigzagDepth, zigzagDeviation, zigzagBackstep, 0, 1);

A mixture of MT4 and MT5.

Stop using ChatGPT.
          Help needed to debug and fix an AI EA - Trading Systems - MQL5 programming forum (2023)

 
What should I do to edit this code?
 
Mohammad Tajvidi #:
You can start by identifying the errors in the IDE and fixing them