Trail Stoploss behind previous candle low/high
-
Hello Fxdreema,
I am trying to accomplish the following situation, which is only partly working for the moment.
For a buy order:
If (candle 1 low - a pip value) is above current Stoploss than move Stoploss to (candle 1 low - a pip value)My problem at the moment is: the check where the current Stoploss is, as it is moving the stoploss to each previous candle low for new stoploss. So the check is not being done correctly.
I have use a Formula block to store the value: (candle 1 low - a pip value). I also used a Condition to check if the Stoploss (in loop) is at correct level, but here I might have gone wrong.
Do you know how I should do this?

-
I will simplify my question as it may have been a bit confusing I realize afterwards. I tried many things but it still won't work.
Can you tell me what blocks to use for this in order for it to work correctly?
For a buy trade:
- (Low of candle 1) - 2 pips > the position of current Stoploss level.
- If rule 1 is in place than new Stoploss = (Low of candle 1) - 2 pips .
This is what I have at the moment:
https://fxdreema.com/shared/djnbd6kvcCan you please help me.
Thanks!
-
You tried the Trailing stop block? There are many options in it.
I would use the "Adjust" field, you can write things like +2pips in it. No need for "Formula" blocks and variables for such thing.
If this EA should work with manually created trades, better set this to 0: http://prntscr.com/dgm3pd