Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multi-instrument Multi Time-frame strategy

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

    Multi-instrument Multi Time-frame strategy

    Before I do the work of combining 7 strategies into one script I need to know if the following will work.

    BarsInProgress == 0 will be 24x7 EURUSD (so script will be active across all the other following session templates that are added to the array.

    Add() CME Index Futures RTH 405 minute bars
    Add() SGX Nikkei Index Futures 375 minute bars
    Add() Euronext Equity Index GMT RTH2 540 Minute bars
    + 4 other session templates

    These added instruments into the array are separate strategies that I want to combine into one. Will this work? Will the different session templates be recognised and repected using the BarsInProgress check to access the logic?

    Regards to all and many thanks.

    #2
    Hello elliot5,

    Thank you for your post.

    If you are using NInjaTrader 8, you'd need to specify the trading hours template you'd like to use for the additional data series, but you can certainly combine them all in one strategy.

    You'd need to use one of the following for each additional series if you're planning to use different trading hours for each:

    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)

    Here's a link to our help guide that covers AddDataSeries:



    Please let us know if we may be of further assistance to you.

    Comment


      #3
      Thank you Kate. That is good news... putting seven scripts into one will simplify things considerably. Thanks very much for the excellent service.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      77 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
      53 views
      0 likes
      Last Post CarlTrading  
      Working...
      X