Allright, I think I found it in the tick indicator article:
if(ticks_stored>=rates_total) { // Removing the first tick_stored/2 quotes and shifting remaining quotes for(i=ticks_stored/2;i<ticks_stored;i++) { // Shifting the data to the beginning in the TicksBuffer[] array on tick_stored/2 TicksBuffer[i-ticks_stored/2]=TicksBuffer[i]; } // Changing the quotes counter ticks_stored-=ticks_stored/2; }
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
Hi,
is there any way to avoid the "Array out of range" error with tick inidcators which show up after some time? As far as I understand this error appears if I got more ticks than bars. The array size managed by the subsystem seems to be depending on the "Max Bars in Chart" and the history of bars downloaded from the broker. But in every case if I leave this indicator running I will get of course more ticks than bars, it's just a matter of time.
Is ther any way to clean up older values or another solution for this code?
Thanks.