Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

NinjaTrader TimeZoneInfo NT8

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NinjaTrader TimeZoneInfo NT8

    Hello,

    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

    #2
    Hello zweistein,

    Thanks for opening the thread.

    NinjaTrader.Core.Globals and NinjaTrader.Cbi.Execution.DbGet are not documented and there would not be any direction we could give for their usage. These methods and properties maybe subject to change internally. We welcome our users to develop creative scripts and we do not discourage using these undocumented parts of the platform. However, please keep in mind that we cannot provide support for them.

    That said, it sounds like you have resolved your inquiry. I will have your other thread in the NinjaTrader 7 forum closed as you have created another thread here.

    If there is anything else we can do to assist you, please let us know.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by daven, Today, 09:49 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Eleanore  
    Started by omermirza, 01-15-2021, 01:15 PM
    13 responses
    116 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by Island_Boy_Trading, Today, 07:39 AM
    2 responses
    14 views
    0 likes
    Last Post Island_Boy_Trading  
    Started by cmarkb, Today, 07:19 AM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by wjadevries, Today, 03:29 AM
    1 response
    16 views
    0 likes
    Last Post NinjaTrader_Jim  
    Working...
    X