please help im useless with code

 

https://www.mql5.com/en/code/download/8463/MA_cross_Method_PriceMode.mq4

hello people ive been attempting to add a stop loss and take profit function to the above ea but cant quite get it to work please please please can someone help...

im sure once i see the result things will become clear i can get it to compile but it doesnt actually work in the back test???????????? ive attached my attempt so far 

thanks

regards

rob 

Files: