SL by High/low candle bug
-
Hi, someone knows why the EA sometimes doesn't put the SL on exactly the Highest/lowest candle price?

Here is the project:
https://fxdreema.com/shared/JGwacAGib
I don't get it because the logic (I Guess) that is the correct...
I know, would be better with an offset pips, but I'd like to know why it doesn't put on the exactly indication. Thank you:)
-
Ive found the easiest way to fix that with the SL is to do Market Properties > Highest or Lowest > Candle 1, for entry and SL, ive done it on the link see if that works
-
@gtoat777 i got that it worked well (how i put), your example si another way to got it. But result that SL is modified before candle be closed, that is the reason that is wrong put
-
I don't know why it modifies taking the candle of another Timeframe... Id I trade in 15 minutes, the trailing is following 5 min candle. So weird
-
@gtoat777 and what If I'd like to add offset pips?
-
@uriel-0 You specified the EA to exactly that. Do you want the SL to be positioned a few pips above/below those high/lows maybe?
-
@l-andorrà yes, I tried and it is not calculated and even the trailing is not respected (true/false), is always in, modifiying the SL
-
@uriel-0 You are adding a Constant to both buys and sells. You need to subtract for buys and add for sells. Try this way instead:

-
@l-andorrà said in SL by High/low candle bug:
@uriel-0 You are adding a Constant to both buys and sells. You need to subtract for buys and add for sells. Try this way instead:

if you are using variables and constants in the adjustment blocks, i.e. typed in...you cant have spaces. they must be named with underscores or preferably no space at all.
-
@tipsywisdom I got the way , I'll share it
-
The problem now is that the SL is put on a candle before of on the current order
-
I solved, putting 0 candle in formulas
