How to get the name of the current dataset in a strategy
Author: tradercn
Creation Date: 12/1/2013 7:36 PM
profile picture

tradercn

#1
For one strategy, try to run on different datasets, that's why I need to tell which alert is from which dataset. Could not get a method or property to get the name of the dataset. Could you please help?
Thanks.
profile picture

Eugene

#2
Give GetDataSetName a try (Community Components).
profile picture

tradercn

#3
Thanks for your help, but it woks in Strategy Window rather than Strategy Monitor. Is there any way to show the dataset name in Strategy Monitor?
Thanks
profile picture

Eugene

#4
Let the forum know if you find one. :)

For example, you might try reading the StrategyMonitorConfiguration.xml file. The DataSourceName tag contains the information you're looking for. And I've already shown you how to obtain a Strategy name (to match to DataSourceName):

Simplify Daily Decision Making: Export Performance Charts Out Of WLD
profile picture

tradercn

#5
Thanks for your creative idea, however it is not what I want to get. Manually changing the alert file might be the only way.
Thanks again.
profile picture

Eugene

#6
The StrategyMonitorConfiguration.xml file also contains all Alerts fired by the Strategy in the AlertsList tag.
profile picture

tradercn

#7
Thanks for your effort to help me. I got it. :)

It works great!
profile picture

Eugene

#8
Glad to have helped.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).