Help with my EA !!!

 

Hi guys i`m new in the forum. I have a problem with my EA, i just created it using the MACD.sample file  in the meta editor, but replaced the signals with my own. After debugging it metaeditor shows me 0 errors. So i decided to go through the strategy tester in mt4 and when i run the EA then it shows no deals were made. Can you help me with this?

Files:
 

Hi. I have corrected your EA.

If you read any market data or indicator, you must do it in OnTick function. You must also multiply all pips value by point.

Files:
stan_3.01.mq4  6 kb
 
Thank you very much :))
 
Stan4o1:
Thank you very much :))
you're welcome :)