Is there any way to create a loop for each dataseries created within a strategy?
e.g. If I have created:
DataSeries abc = new DataSeries(Bars,"abc");
DataSeries HiOp = High/Open-1;
is there anyway to access each one's values via a loop without specifying their names (something like for each DataSeries in MyStrategy)?
The reason I want to do that is because I want to create a method to export all dataseries values to a csv file without having to specify every time all the DataSeries names....
Would it be possible to post a simple example if such a solution exists?
Size:
Color:
See the QuickRef example of Bars.Cache.
Size:
Color:
CODE:
Please log in to see this code.
Size:
Color:
Eugene,
Thanks a lot for your answer! However, I still have one more question regarding the same issue. I can't see the DataSeries that I have created by calculating each bar value, bar by bar, within a loop. Is there any way to include them as well?
Size:
Color:
If you add it to the cache, sure.
CODE:
Please log in to see this code.
Size:
Color:
Thanks a lot for your instant reply Cone! This is also really helpfull for the "Analysis Series" performance visualiser!
Size:
Color:
See also User Guide: Preferences > Performance Visualizers > Analysis Series
It's there too ;)
Size:
Color: