QUOTE:
Your strategy has created way too many DataSeries,... Each DataSeries is then added to the ListView.
Is every DataSeries created (even with the "new" operator) going to be added to a ListView "C# collection"? If so, is there a way to prevent this?
I realize if you create a DataSeries with the Class.Series() member function it will be cached, and if you create it with the "new" operator it will not be cached. (Nice feature.) But are all created DataSeries (cached or not) going to be added to the ListView automatically? If so, this is a
bad feature.
The code below creates
three ListView columns by default:
CODE:
Please log in to see this code.
It's okay to create a ListView column (in the By Symbol tab) for compositeExit because that DataSeries is charted (and of interest to me), but creating the other two ListViews is silly because I will never look at those columns. Can you please rewrite the above line so only one ListView column is created rather than three? I want to see how this is done because I have many code lines like this.
When the strategy does not compute the "By Symbol" tab it executes in less than a second--extremely fast. So it's
not really a caching problem. It has something to do with creating too many
extraneous ListView (C# collection) columns.
Is there a nice way of creating a
CODE:
Please log in to see this code.
C# code block so the DataSeries destructor is
automatically called for all these intermediate DataSeries that get created along the way? Can you point me to a simple example doing this?