Forums › ProRealTime English forum › ProOrder support › Different stop losses for longs and shorts › Reply To: Different stop losses for longs and shorts
01/04/2018 at 3:35 PM
#57252
You can just set variables say TP and SL within your IF THEN BUY SELL like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
IF your conditions THEN BUY 1 Contract AT MARKET TP = 10 SL = 5 ENDIF IF your conditions THEN SELLSHORT 1 Contract AT MARKET TP = 20 SL = 10 ENDIF SET TARGET pPROFIT TP SET STOP pLOSS SL |