Hi with the code below I forgot to mention that I’d like the second trade that initiated when the Price reaches 90% of the original take profit level to have the same take profit level as the original trade. Thanks.
//within reach of the take profit
IF Close-TRADEPRICE(1)>(TKPROFIT-7) AND CountOfPosition < 3 AND LONGONMARKET THEN
BUY 1 PERPOINT AT MARKET
ENDIF
IF TRADEPRICE(1)-Close>(TKPROFIT-7) AND CountOfPosition < 3 AND SHORTONMARKET THEN
SELLSHORT 1 PERPOINT AT MARKET
ENDIF