Stop Loss Code needed to add to EA

 

Hi All,


I am attempting to backtest an EA, however in order to do so efficiently I need to add a stop loss sunction.

Can anyone please provide me with some code to add to my EA? I do have money management EA's, but I cannot run them simultaneously iwith my EA during backtesting.


Many Thanks,


Rich.


P.S. The EA code is at EA needs stop loss

Reason: