Hi! I am looking for a code that take the previus candle range/length and set the stop at the entry – range of the previous candle, and profit/target at entry + range of the previous candle* 2
It depends little which is the previous candle depending on how you enter the market. Do you enter with a market order or with a stop/limit order?
Anyway it should look like that:
SL= tradeprice-range[1]
TP= tradeprice+range[1]*2
set target pprofit tp/pipsize
set stop loss sl/pipsize