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 NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          56 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          133 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          73 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          49 views
          0 likes
          Last Post TheRealMorford  
          Working...
          X