Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

add data series.

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

    add data series.





    people with nt,




    i am having some trouble with additional data series.


    i want to add a 1 minute bar series for an equity and evaluate all short and long positions in that series.


    the biggest issue is that i want to use all data from 04:00 to 20:00 eastern yankee time (i would not have a preference between us equities eth or default 24x5) and the function asks for many parameters i'm not sure about. i use minute data from 2018 to date on my strategies so i have no idea what value to use when the function asks for how many bars to load.


    the platform will not accept either of these two fragments below:


    AddDataSeries("GE", Data.BarsPeriodType.Minute, 1, Data.MarketDataType.Last, "Default 24 x 5");


    AddDataSeries("GE", new BarsPeriod() { BarsPeriodType = (BarsPeriodType)4, Value = 1 }, 60,"US Equities ETH" , null);


    i have gone over all the sections of the nt documentation and relevant fora posts i could find but i don't think this has been solved. ¿can nt advise how to add a simple 1 minute bars series as i have described?


    very well, regards.

    #2
    Hello rtwave,

    Below is a link to the help guide on AddDataSeries().


    You want to load a 1 minute series with the same instrument and a different trading hours template correct?

    AddDataSeries(string instrumentName, BarsPeriod barsPeriod, string tradingHoursName)

    AddDataSeries(null, new BarsPeriod() { BarsPeriodType = BarsPeriodType.Minute, Value = 1 }, "US Equities ETH");
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3




      NinjaTrader_ChelseaB,




      thanks.



      just to clarify, i have a strategy that runs on rty 5 minute bars. there's no problem there. it uses the ordinary futures session hours.



      however, i want to add a secondary 1 minute series for ge and send all positions there. and i want to include all data from 04:00 to 20:00.



      Comment


        #4
        Hello rtwave,

        You can add a data series using a different trading hours template.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5





          well. there are no samples or examples anywhere but it seems that this command below does work:




          AddDataSeries("GE", new BarsPeriod() { BarsPeriodType = BarsPeriodType.Minute, Value = 1 }, "Default 24 x 5");




          i share the command in case it could help someone else.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          79 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          40 views
          0 likes
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          63 views
          2 likes
          Last Post CaptainJack  
          Started by CarlTrading, 03-30-2026, 11:51 AM
          0 responses
          63 views
          0 likes
          Last Post CarlTrading  
          Started by CarlTrading, 03-30-2026, 11:48 AM
          0 responses
          54 views
          0 likes
          Last Post CarlTrading  
          Working...
          X