![]() |
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
|
|||||||
| Connecting Support for establishing connections to your broker or market data service provider. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Oct 2011
Posts: 40
Thanks: 14
Thanked 4 times in 4 posts
|
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. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
|
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.
Ray S
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_RJ for this post: |
|
|
|
#3 |
|
Member
Join Date: Oct 2011
Posts: 40
Thanks: 14
Thanked 4 times in 4 posts
|
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 |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
|
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?
Matthew
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Oct 2011
Posts: 40
Thanks: 14
Thanked 4 times in 4 posts
|
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 ? |
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
|
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;
}
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);
}
Matthew
NinjaTrader Customer Service |
|
|
|
|
The following user says thank you to NinjaTrader_Matthew for this post: |
|
|
|
#7 |
|
Member
Join Date: Oct 2011
Posts: 40
Thanks: 14
Thanked 4 times in 4 posts
|
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 ? |
|
|
|
|
|
#8 |
|
NinjaTrader Customer Service
Join Date: Apr 2010
Location: Denver, CO, USA
Posts: 4,781
Thanks: 159
Thanked 565 times in 556 posts
|
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?
Matthew
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Member
Join Date: Oct 2011
Posts: 40
Thanks: 14
Thanked 4 times in 4 posts
|
thanks Mathew, got it. for the second one I'll try to figure it out myself and get back .
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |