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 > Application Technical Support > Connecting

Connecting Support for establishing connections to your broker or market data service provider.

Reply
 
Thread Tools Display Modes
Old 06-09-2012, 09:33 AM   #1
kinshin9
Member
 
Join Date: Oct 2011
Posts: 40
Thanks: 14
Thanked 4 times in 4 posts
Default Index symbols for Ninja trader

MBtrading Demo account and connecting via ninja trader.
I need to know the symbols for Dowjones, SP500 and
NASDAQ to use in the Market Analyzer window to know the status of the markets. I tried the ones in MBtrader pro. But getting invalid symbol error.
I would like to do this either in MA and/or on the corners of chart as a box.
check the image.
Could anyone help please.
Attached Images
File Type: jpg mb_ninja.jpg (36.8 KB, 15 views)
kinshin9 is offline  
Reply With Quote
Old 06-09-2012, 01:51 PM   #2
NinjaTrader_RJ
NinjaTrader Customer Service
 
NinjaTrader_RJ's Avatar
 
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
Default

Hello kinshin9,

Thank you for your post.

Are you trying to get the index sybmols or the futures symbols? I beleive you want the indices, so I have provided the NinjaTrader symbols for them below:

^DJIA
^SP500
^COMP

Also, these instruments are already setup in NinjaTrader. Go to Tools --> Instrument Manager --> select "Index" from the "Type" drop down menu and click Search. A list of indices will be displayed below and you can left click to select the ones you want then click the left arrow button below to add them to your Instrument List.

Once added to your instrument list, you can right click in your Market Analyzer and select "Add instrument list" to add the list to your Market Analyzer.

Please let me know if this helps.
NinjaTrader_RJ is offline  
Reply With Quote
The following user says thank you to NinjaTrader_RJ for this post:
Old 06-09-2012, 07:32 PM   #3
kinshin9
Member
 
Join Date: Oct 2011
Posts: 40
Thanks: 14
Thanked 4 times in 4 posts
Default

thnx RJ,
strange thing is if I type em in the MA I can see the data (lastClose,descriptoin) but If I create the List via manager and add then no data. not a issue for now but why ?. And Is there anyway to do this like in the attachment, other than MA ?
`kin
kinshin9 is offline  
Reply With Quote
Old 06-11-2012, 07:27 AM   #4
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
Default

It would be possible to display this information in a chart, but it would require custom programming to do so.

What is the exact symbol you are typing into the market analyzer vs adding to the list? Are you using both ^DJIA for example?
NinjaTrader_Matthew is offline  
Reply With Quote
Old 06-11-2012, 01:15 PM   #5
kinshin9
Member
 
Join Date: Oct 2011
Posts: 40
Thanks: 14
Thanked 4 times in 4 posts
Default

thnx Mathew,
it is working now in real time via the list. And could you give a code snippet I could try to display in the chart , that I could add to my custom indicators ? does somthing like this work:
Instrument name->lastPrice to string and drawText at the RightCorner ?
kinshin9 is offline  
Reply With Quote
Old 06-11-2012, 01:47 PM   #6
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
Default

You would first need to "Add()" the desired instruments to your indicator

Code:
   protected override void Initialize()
        {
	Add("^DJIA", PeriodType.Minute, 1);
	Add("^COMP", PeriodType.Minute, 1);
        Overlay                = true;            
	}
Once added, you get get the last price of these by uses Closes[x][0]. More information on Closes can be found below:

http://www.ninjatrader.com/support/h...nt7/closes.htm

Then you can use DrawTextFixed to Draw in the bottom right hand corner of the chart. Note that I'm using "If historical return" to ensure that we only calculate on real-time data:

Code:
 protected override void OnBarUpdate()
 {
if(Historical)
return;
				
DrawTextFixed("tag0", "DJIA:  " + Closes[1][0].ToString() + "  " + "COMP:  " + Closes[2][0].ToString(), TextPosition.BottomRight);
}
If you have not yet, please make sure to review the information on Multi-Time Frame & Instruments: http://www.ninjatrader.com/support/h...nstruments.htm
NinjaTrader_Matthew is offline  
Reply With Quote
The following user says thank you to NinjaTrader_Matthew for this post:
Old 06-11-2012, 03:07 PM   #7
kinshin9
Member
 
Join Date: Oct 2011
Posts: 40
Thanks: 14
Thanked 4 times in 4 posts
Default

thnx Mathew,
got it. two more things:
1. I need to find the netChange points that we use in MA columns. Do I need to add periodType Day and do the math for the net change ?
2. If the Coordinates on the chart filled by the candles (topRight or bottom) , how do I know to change the position ?
kinshin9 is offline  
Reply With Quote
Old 06-11-2012, 03:17 PM   #8
NinjaTrader_Matthew
NinjaTrader Customer Service
 
NinjaTrader_Matthew's Avatar
 
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
Default

Hello,

Yes, this would need to be calculated to get the net change. I would suggest looking at the existing NetChange indicator to see how this can be done:

http://www.ninjatrader.com/support/f...ange%22&desc=1


I'm not quite following your second question, can you show me an example?
NinjaTrader_Matthew is offline  
Reply With Quote
Old 06-11-2012, 03:46 PM   #9
kinshin9
Member
 
Join Date: Oct 2011
Posts: 40
Thanks: 14
Thanked 4 times in 4 posts
Default

thanks Mathew, got it. for the second one I'll try to figure it out myself and get back .
kinshin9 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
Unable to create symbols in Ninja Trader kkjalan Charting 4 03-15-2012 01:46 AM
AMTD index symbols bagzi Miscellaneous Support 12 02-29-2012 04:28 PM
CQG Index Symbols kenomalley Market Analyzer 4 04-11-2011 04:18 AM
CQG Index Symbols dkelly Charting 9 03-28-2011 08:28 AM
Index symbols ny10013 Miscellaneous Support 3 12-05-2008 08:39 AM


All times are GMT -6. The time now is 01:32 AM.