Condition to write for backtesting

#1
Hi,

I have difft. condition for BUY,SELL,COVER,SHORT.

I want to put Stop Loss for Buying and Shorting conditions. When I Buy, SL is say 5 points, likewise some amount while Shorting. What code I have to add in my program or how to do, help please.
 

Similar threads