READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

Stop-Loss based on take-profit value

1 replies

Lea hosn

Subscriber, bbp_participant, sq-ultimate, 3 replies.

Visit profile

3 years 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

0

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

3 years 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

 

0

Viewing 1 replies (of 1 total)