There are two cases:
-I have a tickchart open: in this case I can request form the repository knowing that it has the data. This works fine.
-However when I don't have a tickchart open (and lets say no tick data downloaded either), that means that the repository is empty, so I need to use Lookuppolicy.Provider.
This returns tick data fine FROM BEFORE the time of connecting to data (so fully historical requests work).
There is a black area though: from the time of connecting to data (using Kinetick) I can't request any type of data if a chart doesn't write it into repository. It is not really historical yet (not written to repository until platform close) but already not realtime (as I request data on past data, sometimes hours before realtime)
What is the solution to this?
My BarsRequest is nothing fancy:
BarsRequest request = new BarsRequest(instrument, start, end);
request.BarsPeriod = new BarsPeriod { BarsPeriodType = BarsPeriodType.Tick, Value = 1 };
request.TradingHours = tradingHours;
tradinghours and instrument are copied from the indicator, no problems with that.
Comment