I created an add-on to display data.
After finishing my window with WPF stuff, I open the BarsRequest documentation and notice that there is no option to request data with TickReplay enabled.
Researching how NT does in the windows that request data, I think I discovered that the data is actually requested with the static function Bars.GetBars:
"public static void GetBars(instrument instrument, BarsPeriod barsPeriod, DateTime fromDateLocal, DateTime toDateLocal, TradingHours tradingHours, bool isDividendAdjusted, bool isSplitAdjusted, bool isTickReplay, bool isResetOnNewTradingDay, LookupPolicies lookupPolicies, MergePolicy mergePolicy, bool isSubscribed , IProgress progress, boo l calculate Rollovers, object state, Action<Bars, ErrorCode, string, object> callback)"
In this callback something happens and finally the OnBarUpdate event and others become available for use.
My question is:
How to request 5-minute bar data with TickReplay enabled (historical data only)?
If my idea of how NT does this is correct, how do I set up the callback for the Bars.GetBars function?
I just want to do calculations with the close value (TickReplay enabled, historical data only).

Comment