Stop-Loss based on take-profit value
1 replies
Lea hosn
1 year ago #280860
hello ,
i want the stop-loss to be 3 times less than the take-profit , but the take profit is not a number eg.15 , its a value of indicator , so it differs from time to time , how i can make it relative to the take profit ,
stoploss = take profit / 3
tomas262
1 year ago #280889
Hi,
you simply need to calculate price distance from your indicator BEFORE the order is sent.
Indi +/- entry (close/open) price
Then use “ConvertPriceToPips(priceDiff)” and save into a distancePips variable. Then use a variable = round ( distancePips / 3) to get pips for SL
Viewing 1 replies (of 1 total)