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 aeadon, Today, 02:27 AM
    0 responses
    2 views
    0 likes
    Last Post aeadon
    by aeadon
     
    Started by op1031, Today, 01:52 AM
    0 responses
    1 view
    0 likes
    Last Post op1031
    by op1031
     
    Started by Aramunno, Yesterday, 10:11 PM
    2 responses
    16 views
    0 likes
    Last Post Aramunno  
    Started by sdauteuil, Yesterday, 09:38 PM
    0 responses
    5 views
    0 likes
    Last Post sdauteuil  
    Started by fscabrera03, Yesterday, 09:23 PM
    0 responses
    11 views
    0 likes
    Last Post fscabrera03  
    Working...
    X