Stochastic system - Error - page 2

 

I added your part of code but it doesn't work (it is grey in the list of EA on metatrader)..What is my error? After I add this code, how can I write the code to stop 1 lot after 10 pips of gain and leave 1 lot run? What is my error in the precedent code?

Files:
EA1.mq4  13 kb
Reason: