I am developing an indicator that needs to memorise a number of past values of a given variable, and I am uncertain whether to use a DataSeries or an Array and/or List type to store those values.
Which type is more efficient in terms of processing times and memory usage?
My belief was that DataSeries were more expensive in terms of resources (particularly when you only need to store a handful of values in a chart of 1000+ bars), but after modifying the code to handle Array/List types and seeing RAM usage shoot up by 40MB or so in each case now I am not so sure.
Thanks,
Stopped
Comment