Sells not activating while buys are
-
I have this logic https://fxdreema.com/shared/qQlQftJA where I use fractals + alligator. It's working with buys but sells are not placed.
When I remove both fractal conditions, alligator are both buying and selling. There could be some bugs on sell orders if there is fractals. Or am I missing something?
- candle > fractal down (buys)
- candle < fractal up (sells)
-
I also tried to place fractals on my other working EA and I get same issue (no sell orders)
- candle > fractal down (buys)
- candle < fractal up (sells)
-
I experienced the same thing in the past and I found the reason is in (Fractals) and their repainting nature. You see, the original fractals should only print when confirmed and not like in MT4 repainting.
I substituted fractals with the highest high and lowest low in the past period of X candles.
Have a look
https://fxdreema.com/shared/0ojq7lnJAlso when I changed the Candle ID to 1, I got more trades in the tester compared to when Candle ID is 0.

I myself had a very similar EA like yours and it took me a while to figure out the problem. However, what I do not understand is why we have to set the Candle ID to 1 if we need to see more trades in the tester.
Anyway, try in live mode and change the Candle ID to 0 and see how it goes live.Another point, I changed the tree numbering as you will find out. The way you numbered the blocks is common practice here and I do not understand the reason for it.
-
@tmd1 You ned to duplicate block 1 so that there is one for buys only and another one for sells only.
-
@l-andorrà I tried this suggestions but I get same results. I removed the fractals, and I see sells.
-
Interesting. Did not know that.
Do you mean that Block 1 in any EA either as a Pass Block or No Positions/Trades Block, we should have two tree structures starting from top to bottom? -
@mohamed80 thanks for your suggestion, the problem with this as per my testing is the trades are already late. I like the combination of this strategy as it has more accurate and fast execution.
I'm just wondering why only sell is affected?
-
Have you tested it live on more than one pair?
Now, you of course know the fractal repaints in MT4. So maybe when the condition you set for a crossover of the Alligator, the fractal has not appeared. By the same token, when the fractal does appear, the crossover did not happen.
The other way around it is: Change the crossover to Above/Below. And set a condition that the Price when Below/Above the alligator is not far more than X Distance in pips.
This way you won't miss the chance if the crossover of Price with Alligator happened and the fractal has appeared.
In practice, you may be having a crossover and then after 30 seconds, the fractal appears. The EA will not execute the trade as per the conditions you have set.Try it as I am suggesting and replace Crossover with Above/Below and a maximum distance in Pips. You can have the distance as low as 5 pips and give the chance for the two conditions to be met as early as possible.
-
Another thing to consider and add it to my above post.
The EA may not look for the nearest fractal up or down but will look for the specified period. In your head, the fractal has not appeared yet but there is a fractal 10 bars ago. The EA will not look at the fractals 10 bars ago but will look for the most recent one.
What is the most recent one? It is every 5 candles we need the third candle to have a higher high or lower low. This is confirmed two candles late.My explanation will be wrong if the EA does look back in history (more than 5 bars) ago to look for the most recent fractal. I don't think that it is the case though.
-
@mohamed80 That depends on each strategy. In his case, it was recommended. But that is not always the case.
-
if you want to use fractals, use candle 3.
dont substitute market properties of candle high and candle low of period. That's not a replacement by any means.