Here's what the Help Guide topic for BarsRequest states about the LookupPolicy property:
The lookup policies for the bars request. Possible Values are:
> Provider - Queries the provider. The repository is updated on provider's reply
> Repository - Looks up the local repository only
And here's a set of questions that showcase the information I seek.
Q1. What is the default value for LookupPolicy?
Q2. Does "Provider" mean the "Preferred connection" that I've set via "Tools > Options > Market data > Preferred connections - historical" for the instrument type of the BarsRequest? If not, what does "Provider" mean?
Q3. Does "Repository" mean the files that NinjaTrader keeps in the "Documents > NinjaTrader 8 > db" folder on my computer? If not, what does "Repository" mean?
Q4. If LookupPolicy is set to Provider, is it assured that the Repository will be bypassed completely even if it contains data for some or all of the bars within the FromLocal .. ToLocal span of the BarsRequest?
It's Q4 that really gets to the heart of the information I seek. I say this because my goal is to deal with stock splits that occur today or on any day in the future, and to find a foolproof way to query for historical data for daily bars that is split-adjusted for the full FromLocal .. ToLocal span of the BarsRequest.
Thank you very much in advance for any insight you might provide.
Comment