When a broker disconnects you for 5 minutes and then reconnects, our MT4 charts will not fill in the 5 missing candles ( M1 TF). When this happens, it is very hard for us to even notice, let alone fix the problem.
I'm looking for two solutions,
First, would be an EA, or Ind that alerts us when there are missing candles
Second, would be to coding logic that tells out EA that " hey, we have missing candles, Do not calculate data until we fill in the gap. or what until enough new candles are created to begin our processing again.
a simple
if ( BARS > 100) is not sufficient here. We would have to run a loop that checks Time [] and # of candles within x amount of Time.
in the attached image, you will see the last Time stamp of the last candle before the disconnect, then a Vertical line displaying the 5 minute hole. I'd suspect that Brokers do this, to mess up our indicators for our EA's.
I'm looking for two solutions,
First, would be an EA, or Ind that alerts us when there are missing candles
Second, would be to coding logic that tells out EA that " hey, we have missing candles, Do not calculate data until we fill in the gap. or what until enough new candles are created to begin our processing again.
a simple
if ( BARS > 100) is not sufficient here. We would have to run a loop that checks Time [] and # of candles within x amount of Time.
in the attached image, you will see the last Time stamp of the last candle before the disconnect, then a Vertical line displaying the 5 minute hole. I'd suspect that Brokers do this, to mess up our indicators for our EA's.
Attached Image