Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Bug with SessionData.Length property

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

    Bug with SessionData.Length property

    The SessionData.Length property within NT7 R2 produces many unexpected results.

    To inspect print the variable in the OnStartUp()in a test strategy and backtest. Repeat backtest with alternate templates.

    Some of my results follow:

    1 Default 24/5 12Hrs but should be 24Hrs
    2 Default 24/7 12Hrs but should be 24Hrs
    3 CME US Index Futures RTH 28Hrs but should be 6.75Hrs
    4 CME US Index Futures ETH 24Hrs but should be 23.75Hrs
    5 CME Commodities RTH 19Hrs but should be 4Hrs
    6 CME Commodities ETH 19Hrs but should be 10.25Hrs
    7 CME FX Futures RTH 18Hrs but should be 6.7Hrs
    8 CME FX Futures ETH 18Hrs but should be 23Hrs

    Changing the users time zone should not change the results. (When tested it did not.)

    Can you replicate? I use the property to calculate the number of bars to load,

    Thanks.

    #2
    Hello,

    Thanks for the note.

    I'm trying to find SessionData.Length in the help guide not having any luck seeing that its a supported method. How did you find to use this property?

    I look forward to assisting you further.

    Comment


      #3
      SessionData.Length unreliable

      Originally posted by NinjaTrader_Brett View Post
      Hello,

      Thanks for the note.

      I'm trying to find SessionData.Length in the help guide not having any luck seeing that its a supported method. How did you find to use this property?

      I look forward to assisting you further.

      Hello Brett

      The variable may not hold mainstream interest, or be supported with help information, however it has script exposure, and can be accessed by typing " this. " into a strategy. Please send along to the programmers as a FYI. Unusual results probably due to session break or similiar
      Regards

      Comment


        #4
        Hello,

        I will forward. Thanks, however this is an unsupported method for use therefor you can expect non-expected results from it Unfortunately.

        I look forward to assisting you further.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by gentlebenthebear, Today, 01:30 AM
        2 responses
        13 views
        0 likes
        Last Post gentlebenthebear  
        Started by Kaledus, Today, 01:29 PM
        2 responses
        8 views
        0 likes
        Last Post Kaledus
        by Kaledus
         
        Started by frankthearm, Yesterday, 09:08 AM
        13 responses
        45 views
        0 likes
        Last Post frankthearm  
        Started by PaulMohn, Today, 12:36 PM
        2 responses
        16 views
        0 likes
        Last Post PaulMohn  
        Started by Conceptzx, 10-11-2022, 06:38 AM
        2 responses
        56 views
        0 likes
        Last Post PhillT
        by PhillT
         
        Working...
        X