![]() |
This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com
|
|||||||
| Strategy Development Support for the development of custom automated trading strategies using NinjaScript. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
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 |
|
Administrator
Join Date: Nov 2004
Location: Denver, CO, USA
Posts: 11,163
Thanks: 6
Thanked 45 times in 32 posts
|
You would just write a strategy, add all the instruments you want, use the Alert() method and then run the strategy on a chart.
Ray
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Jul 2007
Posts: 225
Thanks: 0
Thanked 0 times in 0 posts
|
that was easy - thx for the quick response as usual !!!!
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Apr 2010
Posts: 147
Thanks: 21
Thanked 1 time in 1 post
|
....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?
|
|
|
|
|
|
#5 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
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
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#6 | |
|
Senior Member
Join Date: Apr 2010
Posts: 147
Thanks: 21
Thanked 1 time in 1 post
|
Quote:
|
|
|
|
|
|
|
#7 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
|
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).
Bertrand
NinjaTrader Customer Service |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bug: multi-timeframe strategy non-primary bar is off by one | henry.omd | Strategy Development | 1 | 11-15-2007 12:37 AM |
| Multi timeframe strategy charts in strategy analyzer | JonesWooHoo | Strategy Development | 10 | 10-31-2007 05:13 AM |
| Use of Order Entry APIs in multi-instrument environment | lclifner | General Programming | 2 | 10-11-2007 05:58 PM |
| Multi Instrument "Close" price syntax | ct | Strategy Development | 2 | 06-09-2007 10:54 AM |
| Multi-Timeframe use in a Strategy | Freddie | Strategy Analyzer | 25 | 05-30-2007 07:02 AM |