Problem EA working on backtesting but not on live account

 
Hi sorry to be probably a newbee but I've got a problem with this new ea that I've made normally all my other ea worked perfectly fine but this one work on backtesting but not on my normal account. I've activate live trading, the little smiley is on the chart.... Would someone have any clue please?? I feel like I'm lost.... Thank you. 
 

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)


***

 
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