Problem EA working on backtesting but not on live account

Vladimir Karputov  
Macdrap :

It's far from being well made I know I'm just a beginner. Thoguht it could help to show the script. ( By the way I am the same person who opened the topic)


***

To insert the code, use the algorithm:

Correct algorithm:

New comment -> type text ->  Code -> insert the MQL5 code into the window that appears ->  Add your comment

Reason: