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

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.
    Kate W.NinjaTrader Customer Service

    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 GussJ, 03-04-2020, 03:11 PM
      11 responses
      3,227 views
      0 likes
      Last Post xiinteractive  
      Started by andrewtrades, Today, 04:57 PM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by chbruno, Today, 04:10 PM
      0 responses
      7 views
      0 likes
      Last Post chbruno
      by chbruno
       
      Started by josh18955, 03-25-2023, 11:16 AM
      6 responses
      440 views
      0 likes
      Last Post Delerium  
      Started by FAQtrader, Today, 03:35 PM
      0 responses
      12 views
      0 likes
      Last Post FAQtrader  
      Working...
      X