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.

Reply
 
Thread Tools Display Modes
Old 07-26-2007, 07:24 PM   #1
Jenny
Member
 
Join Date: Jun 2007
Posts: 72
Thanks: 0
Thanked 0 times in 0 posts
Default Add("SP500", PeriodType.Minute, 5)

Ray,

When I try to add sp500, I have problem.

Add("SP500", PeriodType.Minute, 5)

Error is,

Add() method with an invalid instrument. Either 'SP500' does not exist in the Instrument Manager or the specified exchange has not been configured.

Could you please tell me how to add this index.

Thanks
Jenny is offline  
Reply With Quote
Old 07-26-2007, 09:38 PM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

This happens to me for any index too. Hmm.
NinjaTrader_Josh is offline  
Reply With Quote
Old 07-27-2007, 01:33 AM   #3
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

You would need to note the index as you see it e.g. in your default instrument list: ^SP500

Add("^SP500", PeriodType.Minute, 5)
NinjaTrader_Dierk is offline  
Reply With Quote
Reply

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
Line "names" in Indicator Box change to "Line" after modification higler Charting 3 05-02-2007 06:05 AM
Multiple Simultaneous Trades at "Exit on Close" With Setting "1 Entry Per Direction&q KBJ Strategy Analyzer 1 04-27-2007 05:34 AM
Problem with opening application and trying to preserve prior "workspace" Greg1 Miscellaneous Support 8 04-14-2007 01:49 PM
Control center "strategies" tab, "Positions tab, and "Market Analyzer" not funk101 Strategy Development 6 04-10-2007 03:44 AM
Entry: "CIT" and "Chase" wagross Miscellaneous Support 1 12-15-2004 03:43 AM


All times are GMT -6. The time now is 06:03 AM.