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 ageeholdings, Today, 07:43 AM
    0 responses
    5 views
    0 likes
    Last Post ageeholdings  
    Started by pibrew, Today, 06:37 AM
    0 responses
    4 views
    0 likes
    Last Post pibrew
    by pibrew
     
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    14 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    12 views
    0 likes
    Last Post burtoninlondon  
    Working...
    X