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 Strategies

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

    Multi-Instrument Strategies

    Hi.

    This is a question about how the series are calculated.

    For example:

    I want to make a strategy on ES that uses an RSI that works on FDAX.

    What I'd like to know is what session template is used on FDAX to calculated the RSI.

    The RSI is calculated using all historical data (24/7)? It is calculated using the session template in the Instrument Editor of the FDAX? Other?

    Thank you in advance.
    Last edited by Plaket; 07-23-2013, 02:56 AM.

    #2
    Hi Plaket, here's an excerpt from the docs showing the logic for deciding which template to use for those series -

    If a multi-series script adds an additional Bars object that already exists on the chart, the script will use the preexisting series instead of creating a new one to conserve memory. This includes that series' session template as applied from the chart. If the Bars object does not exist on the chart, the session template of the added Bars object will be the session template of the primary Bars object. If the primary Bars object is using the "<Use instrument settings>" session template then the additional Bars objects will use the default session templates as defined for their particular instruments in the Instrument Manager.
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thank you Bertrand. I have a doubt about this part (my secondary bars object does not exist on the chart):

      If the Bars object does not exist on the chart, the session template of the added Bars object will be the session template of the primary Bars object. If the primary Bars object is using the "<Use instrument settings>" session template then the additional Bars objects will use the default session templates as defined for their particular instruments in the Instrument Manager.

      Let’s say that I have two symbols:

      Primary Bars object: ES
      Secondary Bars object: FDAX.

      And the next ones session templates in the Instrument Editor ("<Use instrument settings>"):

      ES-> Instrument Editor -> CME Index Futures RTH

      FDAX-> Instrument Editor -> Eurex Equity Index Futures

      Then, if I use a strategy on ES (using the template "<Use instrument settings>" / CME Index Futures RTH) that uses FDAX data series, the session template that will be used in the FDAX data series is Eurex Equity Index Futures. Is it true?

      Thank you so much.

      Comment


        #4
        That is correct, in the <Use Instrument Settings> case it goes to the defaults you have set for each master instrument.
        BertrandNinjaTrader Customer Service

        Comment


          #5
          Great Bertrand. Thank you.

          And the last question please.

          Following my example, I understand that if I have a workspace with the two symbols charting simultaneously (ES and FDAX, both using their own session template <Use instrument settings>") the same way to calculated the series is applied. At this case the secondary bars object (FDAX) will be calculated using its own session template (Eurex Equity Index Futures). Is it Ok?

          Thank you in advance.
          Last edited by Plaket; 07-23-2013, 03:57 AM.

          Comment


            #6
            You are correct, in this case as well the series would use the default you have spec'ed under Tools > Instrument Manager and as the series is present already on the chart > the script will make use of it conserving memory.
            BertrandNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by love2code2trade, 04-17-2024, 01:45 PM
            4 responses
            36 views
            0 likes
            Last Post love2code2trade  
            Started by alifarahani, Today, 09:40 AM
            2 responses
            13 views
            0 likes
            Last Post alifarahani  
            Started by junkone, Today, 11:37 AM
            3 responses
            16 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by pickmyonlineclass, Today, 12:23 PM
            0 responses
            2 views
            0 likes
            Last Post pickmyonlineclass  
            Started by frankthearm, Yesterday, 09:08 AM
            12 responses
            44 views
            0 likes
            Last Post NinjaTrader_Clayton  
            Working...
            X