I am trying to use the global function
DateTime t = DateTime.Now.ToLocalTime();
NinjaTrader.Cbi.Execution.DbGet(Account,t.AddDays(-2),t)
I get an error saying that the DateTimeKind is not set properly and that I have to specify a TimeZoneInfo as well, but there is no TimeZoneInfo in DateTime.
Do I have to use some timezone that NT8 uses internally for calculations? where do I have to find this?
How to call DBGet properly
Thank you
Andreas
Comment