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 Strategy

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

    Multi-instrument Strategy

    Hi.
    I am sure that this has probably been asked for before, but cannot find anything of benefit................. thus far.

    Market analyser is excellent at alerting when specific conditions are met for multiple instruments.

    What I would like to do is automate this into a simple strategy (e.g. if EMA(8) x-above EMA(21)....then go long) for say the components of the DOW 30 stocks. How would I go about doing this ?

    thx in advance
    David

    #2
    You would just write a strategy, add all the instruments you want, use the Alert() method and then run the strategy on a chart.
    RayNinjaTrader Customer Service

    Comment


      #3
      that was easy - thx for the quick response as usual !!!!

      Comment


        #4
        Originally posted by NinjaTrader_Ray View Post
        You would just write a strategy, add all the instruments you want, use the Alert() method and then run the strategy on a chart.
        ....but if you have a strategy with 20 instruments and you run it on one(1) chart, would the strategy work? or would it be better to load the 20 instruments into MA and run the strategy NOT from the chart?

        Comment


          #5
          mystiq, for this strategy to work you would need to add them in the strategy directly - as you then start it from your primary chart it would load / add the other bars objects as needed -

          BertrandNinjaTrader Customer Service

          Comment


            #6
            Originally posted by NinjaTrader_Bertrand View Post
            mystiq, for this strategy to work you would need to add them in the strategy directly - as you then start it from your primary chart it would load / add the other bars objects as needed -

            http://www.ninjatrader-support.com/H...struments.html
            thx NT_Bertrand...but if the stocks i added have no historical data (yet), how would i accomplish this? for instance XLI ? can i load them in MA to retrieve the historical data?

            Comment


              #7
              You're welcome - if you add the strategy to your chart it would trigger a data load if needed. As an alternative you could also just open up a standalone chart of the symbol in question to trigger a backfill (if you're connected to a feed supporting this).
              BertrandNinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by sidlercom80, 10-28-2023, 08:49 AM
              177 responses
              2,400 views
              0 likes
              Last Post jeronymite  
              Started by algospoke, Today, 06:36 PM
              0 responses
              5 views
              0 likes
              Last Post algospoke  
              Started by ETFVoyageur, Yesterday, 06:05 PM
              8 responses
              50 views
              0 likes
              Last Post ETFVoyageur  
              Started by futtrader, 04-21-2024, 01:50 AM
              7 responses
              68 views
              0 likes
              Last Post NinjaTrader_Eduardo  
              Started by pibrew, Today, 06:10 PM
              0 responses
              12 views
              0 likes
              Last Post pibrew
              by pibrew
               
              Working...
              X