View Full Version : Multi-instrument Strategy
dgregor5
12-07-2007, 03:11 PM
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
NinjaTrader_Ray
12-07-2007, 03:18 PM
You would just write a strategy, add all the instruments you want, use the Alert() method and then run the strategy on a chart.
dgregor5
12-07-2007, 04:04 PM
that was easy - thx for the quick response as usual !!!!
mystiq
06-29-2010, 02:31 AM
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?
NinjaTrader_Bertrand
06-29-2010, 02:55 AM
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/HelpGuideV6/MultiTimeFrameInstruments.html
mystiq
06-29-2010, 04:42 AM
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/HelpGuideV6/MultiTimeFrameInstruments.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?
NinjaTrader_Bertrand
06-29-2010, 04:47 AM
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).