- ago
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)?
0
248
Solved
2 Replies

Reply

Bookmark

Sort
Glitch8
 ( 11.81% )
- ago
#1
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.
1
Best Answer
- ago
#2
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.
0

Reply

Bookmark

Sort