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 Jonafare, 12-06-2012, 03:48 PM
    5 responses
    3,984 views
    0 likes
    Last Post rene69851  
    Started by Fitspressorest, Today, 01:38 PM
    0 responses
    2 views
    0 likes
    Last Post Fitspressorest  
    Started by Jonker, Today, 01:19 PM
    0 responses
    2 views
    0 likes
    Last Post Jonker
    by Jonker
     
    Started by futtrader, Today, 01:16 PM
    0 responses
    7 views
    0 likes
    Last Post futtrader  
    Started by Segwin, 05-07-2018, 02:15 PM
    14 responses
    1,791 views
    0 likes
    Last Post aligator  
    Working...
    X