In Strategy code, is there a way to check which Historical Data Provider is used or even to change it (e.g. from Q-Data to Yahoo) if the data used is not available up to the current day (-1)?
Rename
No, loading data occurs before the Strategy execution so it’s impossible for the Strategy to control data load.
You can tell which Provider was used though by examining the DataSource property of the BarHistory.
You can tell which Provider was used though by examining the DataSource property of the BarHistory.
Changing the data provider in C# is not necessary at all.
But you can of course request a symbol's data on a per DataSet basis with a GetHistory overload. The DataSets should be linked to a provider.
But you can of course request a symbol's data on a per DataSet basis with a GetHistory overload. The DataSets should be linked to a provider.
Your Response
Post
Edit Post
Login is required