NinjaTrader Support Forum  
X

Attention!

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


Go Back   NinjaTrader Support Forum > NinjaScript Development Support > Strategy Development

Strategy Development Support for the development of custom automated trading strategies using NinjaScript.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 07-24-2009, 02:39 PM   #1
wes7763
Junior Member
 
Join Date: Jul 2009
Posts: 19
Thanks: 0
Thanked 0 times in 0 posts
Default strategy with world market data

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?
wes7763 is offline  
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 07:22 AM.