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 samish18, Today, 08:31 AM
        0 responses
        0 views
        0 likes
        Last Post samish18  
        Started by RookieTrader, Today, 07:41 AM
        2 responses
        8 views
        0 likes
        Last Post RookieTrader  
        Started by kujista, Today, 05:44 AM
        3 responses
        13 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by trilliantrader, Today, 08:16 AM
        0 responses
        3 views
        0 likes
        Last Post trilliantrader  
        Started by AttiM, 02-14-2024, 05:20 PM
        9 responses
        175 views
        0 likes
        Last Post NinjaTrader_BrandonH  
        Working...
        X