How can I use an IDataSeries for a custom struct or array? I try to create an indicator that will hold a lot off different "bar properties" for each bar in a BarsSeries. Insted of creating a lot of separate DataSeries, one for each property, I would like to add all bar properties to a custom struct or array an then add the struct/array to an IDataSeries. How can this be done so that I can use the methods associated with an IDataSeries? Besides a cleaner code I suppose that this solution would be computitional more efficient.
Is there a documentation for the IDataSeries class that I can study? Is it based on the ArrayList Class (since the name space System.Collection.Genereric isn't used) ?
Another option would of course be to use the c# List(T) Class with a custom struct. But how do I make sure that the List(T) always is synced to the BarsSeries like one sync the IDataSeries in the Initalize() section?
Any other suggestions or thoughts concering how to create and use a "StructSeries" or an "ArraySeries"?
/Regards
Comment