Hello
when you have a code with a variable target , ie based on a move to bollinger down , the potential target is obviously is not precisely know until the trade is entered is there a way you can make LOSS =TARGET at that point ?
Many thanks for your assistance.
Topic moved to ProOrder support, being related to strategies.
In case of both AT MARKET or PENDING orders, when your conditions are met you certainly know TP, so you can set it and set SL the same distance:
IF YourLongConditions THEN
BUY 1 CONTRACT AT MARKET
Tp = BollingerUP[20] - close //TP = (upper BB band - current price)
Sl = Tp //SL = TP (or TP * 0.5, or TP * 2 or whatever expression you want to use)
ENDIF
SET TARGET PROFIT Tp
SET STOP LOSS Sl