
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Limit 50000 bars. For almost 3 hours of the indicator's operation on the M1 timeframe, the terminal did not delete anything. I can't reproduce the situation you described where the terminal deletes bars.
The indicator I ran (your indicator + logging):
Hi, so if I understand correctly, after truncating the array, the values stored at the previously given indices are shifted to new candles and don’t get a default empty value like they do when a new candle is added.
Thus, if I don’t set the values of all watched indices in the buffers to empty value during each run, these non-cleared values will shift after a deletion.
I’m just curious: if this is indeed the case, what does this have to do with the predefined arrays(https://docs.mql4.com/predefined) that other moderators previously referred to in response to my original question?
Hi, so if I understand correctly, after truncating the array, the values stored at the previously given indices are shifted to new candles and don’t get a default empty value like they do when a new candle is added.
Thus, if I don’t set the values of all watched indices in the buffers to empty value during each run, these non-cleared values will shift after a deletion.
I’m just curious: if this is indeed the case, what does this have to do with the predefined arrays(https://docs.mql4.com/predefined) that other moderators previously referred to in response to my original question?
If you can reproduce the situation in which the terminal remove bars from the chart, then please run that indicator and attach the logs from the experts tab here.
This will allow us to find out what happens to the arrays at the moment of deleting bars from the chart and whether the prev_calculated variable is reset.