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 argusthome, 03-08-2026, 10:06 AM
      0 responses
      119 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      62 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      40 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      45 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      82 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X