Trailing stop loss settings
-
Hello,
I wanted to create an order with take profit at around 30 pips and stop loss of 20 pips. When the orders moves above 20 pips in profit, I want my stop loss to move to +20 pips. I couldn't get the proper settings in the trailing stop log option. It would be grateful if anyone can help me with this.
Thank you -
In my opinion, use Trailing stop (each trade)
-
@gousic-j This is the configuration you need:

-
Thank you so much @l-andorrà
-
@gousic-j You're welcome.
-
@l-andorrà Hello ,
Am trying to create an EA with 3 ATR stop loss and 5 ATR take profit , but when an order moves 1 ATR in profit I need the stop loss to move +1 ATR . I couldn't get the right algorithm . Should the trailing stop and stop loss settings be the same or how should the block be customized ?Thanks in advance Investor.
-
@od The problem in this case is that ATR value changes from candle to candle. So what ATR value do you need exactly? The one is changing every candle or the one at the open price?
-
@l-andorrà The one at the open price
-
@od Then you need to create a variable to store the value of the ATR when the trade was open. Then you can use that value on the 'Trailing stop' block.
-
@l-andorrà How does one create a variable to store the ATR value at open price in the trailing stop each trade and what would be the setting for trailing stop with current ATR value?
-
@od This is how to store the ATR value from the stop loss open trade:

And here how to configure the trailing stop:
