How to avoid recalculation when using all historical data?

Hi all, my indicator uses all historical data for calculation. For a database with limited space, the calculation has to be re-run every time when new data come in and old data pushed out, eg using MT4 to get tick feed. The indicator would change because of new dataset.

Is it possible to do calculation using all the data for the first time and incremental calculation thereafter please?

Thanks in advance.

Use Static variables and/or composites.

Thanks Tomasz. I will try it.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.