The MT5 EA uses a filter that performs certain actions once per bar (current timeframe). It works on all timeframes except on the Daily timeframe.
If I copy and paste the EA and build it in MT4, it works fine on all timeframes including Daily.
Posts made by Eric 0
-
MT5 EA not working on Daily timeframeposted in Bug Reports
-
RE: Delay funtcion neededposted in Questions & Answers
I just tried the "Skip Ticks" block. It messes up a few things because the EA analyses the previous 3 candlesticks before executing a trade. But thanks for the tip, I'm sure I will find a way to figure it out.
-
Delay funtcion neededposted in Questions & Answers
Hi guys.
When a trade closes, there needs to be a delay before another trade can be opened. For example, on an hourly chart, I don't want the 2nd trade to open in the same candle in which the first trade closed. I need one or two hours delay before the EA can check for the conditions and open another trade.
The EA needs to open a trade when a new candle opens. So, when a trade closes in the middle of a candlestick, and the conditions are met for a new trade, the new trade will be opened in the middle of the candle, which is incorrect. So, in order to avoid this, I need to program some sort of a delay.Can anyone give me some advice, please? I tried the 'delay' function but it creates a critical error when the EA runs.
-
RE: Bollinger band EA not firing all signalsposted in Bug Reports
Thanks, Richard and Andy. Problem solved! Appreciate your help.
-
RE: Bollinger band EA not firing all signalsposted in Bug Reports
Okay, I also thought of asking him. I'm new on the forum, how can I contact him?
And I really appreciate your efforts and help. Thanks a lot. -
RE: Bollinger band EA not firing all signalsposted in Bug Reports
I understand that the price could sometimes 'miss' the upper/lower band because itself and the bands move all the time. But the fact of the matter is, that when the price is actually above the upper band or below the lower band, a trade needs to take place every time (if all other criteria are met, obviously). And that is the problem, this is not happening.
So that tells us that there is a program error in that the candle ID0 setting is not performing its function like it should be doing. Like I mentioned to you earlier, I have built other robots using candle ID0 that work 100% every time.
-
RE: Bollinger band EA not firing all signalsposted in Bug Reports

In this screenshot, you can see that the crosshair is on the current candle (which has not closed yet) and this displays the current values in the data window. So here you can see that the price is currently above the current value of the upper bollinger band. So this would have triggered a sell trade, even though the candle has not yet closed yet.
-
RE: Bollinger band EA not firing all signalsposted in Bug Reports
(Although the example I just gave you is on a moving average, the principle is the same as with bollinger bands)
-
RE: Bollinger band EA not firing all signalsposted in Bug Reports
I understand what you're saying. But with a candle that isn't closed yet, the bollinger band indicator displays values of the upper and lower bands based on the current market price which is used for the calculation. So what I'm saying is that although the candle has not closed yet, MT4 calculates the current bollinger values on the current market price which acts as the close price of the candle, even though it hasn't closed yet.
To give you an example, I built an EA that doesn't use a take profit, but it closes the trade when the price breaches the 5-period moving average of the current daily candle. When you backtest this strategy, you can actually see how the EA uses the MA value of the current candle, even though the candle is not closed yet. So, this EA effectively uses candle number zero for its calculations.
-
RE: Bollinger band EA not firing all signalsposted in Bug Reports
(I don't know if you maybe have a practical solution to overcome this obstacle?)
-
RE: Bollinger band EA not firing all signalsposted in Bug Reports
Are you saying that it is not possible to generate a buy or sell signal with price data of the current candle with the bollinger indicator? Because that is actually what I would like to achieve. I am aware of the candle ID function. That is why I put zero in those boxes to open trades when the price touches the bollinger band's upper/lower bands.
-
RE: Bollinger band EA not firing all signalsposted in Bug Reports
I just noticed that sometimes the EA doesn't open the trade before the candle closes. But when there was a short trade running that hit its stop loss above the upper band, the next short trade is executed immediately without waiting for the candle to close. Very strange. Do you think this could be a problem with the MT4 backtester? Perhaps this problem will not exist with demo/live trading.
-
RE: Bollinger band EA not firing all signalsposted in Bug Reports
Here is a screenshot of missed trades:

As you can see, the price closed above the upper band in one of the instances.
Here is another example:

-
RE: Bollinger band EA not firing all signalsposted in Bug Reports
Thanks for your help and suggestions, Ambrogio.
The issue is not the 'trade overlap', though. There is some other obscure reason for some trades not being opened. When I get home I will send you a screenshot. I will also follow your advice with splitting the buy/sell signals. Thanks for that handy tip.
-
RE: Bollinger band EA not firing all signalsposted in Bug Reports
Here is the EA: https://fxdreema.com/shared/cGHzLEbSc
The first block is 'No Trade'
2nd block is 'Once per bar'
Then it splits into two columns - one for buy and one for sell
1st block in the buy column: condition that checks when the current market price dips below/equal to the lower Bollinger band (standard bollinger band settings)
1st block in sell column: checks for price above/equal to upper bollinger band
2nd block in buy column: buys when the preceding blocks are true
2nd block in the sell column: sells when the preceding blocks are true.Thanks for your attention!
-
Bollinger band EA not firing all signalsposted in Bug Reports
Hi guys!
I built a Bollinger band EA that needs to execute trades when the price dips below the bottom band in the current candle. For some reason, the EA only takes some of the signals. I can't understand why.
Maybe someone has a tip or explanation for me, please?
Eric