Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Tick Replay with multiple instruments

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

    Tick Replay with multiple instruments

    I am reading through the help guide topic about Tick Replay at this link:


    My question is about this comment in the Notes of that article:
    Tick Replay is forced for all series loaded, and there is NOT any method to reduce the number of calculations on a per series basis. In other words, you cannot mix and match tick replay series with non-tick replay series

    My question is, what is the appropriate method to use for AddDataSeries? Seems like you can call it any one of many ways:
    Code:
    AddDataSeries(string instrumentName, BarsPeriodType periodType, int period)
    AddDataSeries(string instrumentName, BarsPeriodType periodType, int period, MarketDataType marketDataType)
    AddDataSeries(string instrumentName, BarsPeriod barsPeriod)
    AddDataSeries(string instrumentName, BarsPeriod barsPeriod, string tradingHoursName)
    AddDataSeries(string instrumentName, BarsPeriod barsPeriod, string tradingHoursName, bool? isResetOnNewTradingDay)
    AddDataSeries(string instrumentName, BarsPeriod barsPeriod, int barsToLoad, string tradingHoursName, bool? isResetOnNewTradingDay)
    AddDataSeries(string instrumentName) //only for R15 and higher
    In other words, given that tick replay is going to be forced, do I need to specify tick data explicitly in my AddDataSeries method? If I used something different, like AddDataSeries("AAPL",BarsPeriodType.Minute,1) would it still force tick replay? Which method and parameters would you use?

    #2
    Hello swcooke,

    I believe what this note is referring to is that there is no way in code to specify a series to not be included in TickReplay. That would mean that any of the overloads can be used, if you enable tick replay it will use force all of the series into that processing mode. There is nothing you need to change about the way you add the series.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      A follow up question about the comment next to this method example:
      Code:
      AddDataSeries(string instrumentName) //only for R15 and higher
      What is R15? Is that a release number? If so, are we far enough passed the R15 release to assume that most users would be above that or should I be concerned about using the method this way?

      Comment


        #4
        Hello swcooke,

        That is a release, I suppose that could be a little more specific. I believe this was release 8.0.15 this note is referring to.

        12882 Added NinjaScript Added overload for NinjaScript: AddDataSeries(string instrumentName), allowing same Bars Period with a different instrument
        Most users should be past that release at this point, I wouldn't believe this should be a concern any longer.

        I look forward to being of further assistance.
        JesseNinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by GLFX005, Today, 03:23 AM
        0 responses
        2 views
        0 likes
        Last Post GLFX005
        by GLFX005
         
        Started by XXtrader, Yesterday, 11:30 PM
        2 responses
        11 views
        0 likes
        Last Post XXtrader  
        Started by Waxavi, Today, 02:10 AM
        0 responses
        7 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Started by TradeForge, Today, 02:09 AM
        0 responses
        14 views
        0 likes
        Last Post TradeForge  
        Started by Waxavi, Today, 02:00 AM
        0 responses
        3 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Working...
        X