Hi Guys,
Sorry if this has been covered, i have been trawling the forums for a bit now & cannot find the answer. i want to run a risk reward of 1:3 but am unsure how to get correct percentage from the stop.
essentially i ant to buy at market set stop at high or low of last [n] bars then make take profit 3 x the distance from market order to stop loss. can anyone help?
snippet below
h1 = high[20]
l1 = low[20]
if longonmarket then
set target profit ??
set stop loss l1
endif
if shortonmarket then
set target profit ??
set stop loss h1
endif
Something like this?
tp = (positionprice - L1)*3 + positionprice
LOSS requires a difference expressed in price, not a price, thus it should be:
tp = (positionprice - L1)*3 //Long
tp = (H1 - positionprice)*3 //Short
Thanks guys this is a massive help. sorry if this seems elementary stuff im still trying to get my head around things. its hard to teach an old dog new tricks 🙂
so to confirm my SL is also wrong & using LOSS it should be:
SL = (positionprice - L1) //Long
SL = (H1 - positionprice) //Short
Yes, that’s correct.
You can first calculate SL, then TP as a multiple of SL:
SL = (positionprice - L1) //Long
SL = (H1 - positionprice) //Short
TP = SL * 3 //Long & Short