![]() |
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 |
|
Junior Member
Join Date: Jul 2009
Posts: 19
Thanks: 0
Thanked 0 times in 0 posts
|
I am new to ninjascript and what I am trying to do is create a strategy where I go long if certain world markets are up and go short if certain world markets are down. But I only want to go long/short on stocks that have just crossed over their 9 and 18 period EMA's. I believe I have to add the world market data series to initialize. And then in onbarupdate state that the close > close of the day before for each world index. I have already added the world index data that I want into instrument manager, but I am having trouble developing the strategy to actually use the index's data. How would I setup this strategy for the world market data. Do I need to add multiple entry signals, or sync data series bars to the primary object, or do I need use barsinprogress to achieve what I want to do?
|
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 'Hello World' as a text file record ? | grd974 | General Programming | 8 | 10-25-2012 10:16 AM |
| Market Replay vs. Real-world/Real-time | ctrlbrk | Strategy Development | 14 | 12-01-2008 03:16 PM |
| "'OrderRejected'. Strategy has sent cancel requests" & "There is no market data..." | Elliott Wave | Strategy Development | 6 | 04-12-2008 12:03 AM |
| Market data for market replay function | grd974 | Miscellaneous Support | 1 | 05-26-2007 09:02 AM |
| Hello world | grd974 | General Programming | 3 | 05-20-2007 04:36 PM |