Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddDataSeries not creating the correct trading hours fed into the method

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

    AddDataSeries not creating the correct trading hours fed into the method

    I am using this signature, which includes the string value of a Trading Hours template as a parameter:

    AddDataSeries
    ( Names_Price[k],
    new BarsPeriod() {BarsPeriodType = BarsPeriodType.Second, Value = LengthSamplingPeriod},
    SessionString
    );


    The problem is that although the value of SessionString is "US Equities ETH", the actual trading hours property of the secondary series that is created by the method is "US Equities RTH".

    I am printing out that property as BarsArray[1].TradingHours.ToString().

    The method above is executed within a loop. Names_Price[k] is a valid Instrument FullName from an array of symbols. This method DID work correctly until a few releases ago, not sure when this problem started.

    I did check to make sure that both of these templates, ETH and RTH, actually exist and are correctly named in my local installation of Ninjatrader 8. And I updated the Trading Hours templates using the Database Management tool.

    I am subsequently instantiating an indicator that runs off of the secondary data series created per above. The SessionIterator object in that indicator doesn't seem to be working correctly.
    Last edited by Ricam; 12-12-2016, 02:03 PM.

    #2
    Hello Ricam,

    Thank you for your post.

    We will look into this further on our end.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    61 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    40 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    21 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    23 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    51 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X