it is about the global function NinjaTrader.Core.Globals.Now
DateTime t= NinjaTrader.Core.Globals.Now
I see that the DateTime Kind of the result is undefined, is this done on purpose?
I am asking because using another internal NT8 function I have time as a parameter.
I supplied a Kind local and Kind utc and those calls fail saying in trace:
The function i question is NinjaTrader.Cbi.Execution.DbGet
The conversion could not be completed because the supplied DateTime did not have the Kind property set correctly. For example, when the Kind property is DateTimeKind.Local, the source time zone must be TimeZoneInfo.Local. Parameter name: sourceTimeZone
, found it : Needs Kind unspecified to work
Comment