View Full Version : specifying panel for indicators
bwarner
01-18-2009, 09:17 PM
Hi. I have two questions.
1) is it possible to have ninjascript strategies run properly without having the indicators used in the script shown on the chart? from my own experience the answer is no, but i am wondering if there some way to make that work.
2) I was curious as to whether or not there is a code snippet or some way to allow specific indicators used in a ninjascript strategy to placed in certain panels. i realized that they basically show up on the chart according to their order in the script, but i wanted to know if you could have certain incidators show up in a particular panel. I was asking in the event that there is no way to have the strategy run properly without indicators on the chart.
NinjaTrader_Ben
01-19-2009, 12:02 AM
Hello,
1) is it possible to have ninjascript strategies run properly without having the indicators used in the script shown on the chart? from my own experience the answer is no, but i am wondering if there some way to make that work.
>>Yes, just don't Add() them in the initialization block.
2) I was curious as to whether or not there is a code snippet or some way to allow specific indicators used in a ninjascript strategy to placed in certain panels. i realized that they basically show up on the chart according to their order in the script, but i wanted to know if you could have certain incidators show up in a particular panel. I was asking in the event that there is no way to have the strategy run properly without indicators on the chart.
>>It is only the order you Add() them as you mention.
bwarner
01-19-2009, 06:52 AM
that is what i thought. However, when i don't add them in that block the strategy does not work as it should. it does not work when do not include all the indicators in the initialization block, but it does work only when i include all of them. what am i doing wrong?
NinjaTrader_Josh
01-19-2009, 07:32 AM
bwarner,
What do you mean by "doesn't work"? What is the behavior you are experiencing? You do not need to have Add() of the indicator to use the indicator. Create yourself a blank strategy and just add Print(SMA(10)[0].ToString()) in the OnBarUpdate() and you will see you can access the SMA values.
As for #2, you want to check this link out: http://www.ninjatrader-support2.com/vb/showthread.php?t=3228
Arsch
02-13-2009, 11:05 AM
hey
i think im in the right thread if not send me somewhere else
i'm currently trying to get my DS to sit in the same panel in as my candle stick chart but every time i do it the candles turn into tiny little dots, if you guys understood any of that any advice would be great.
Cheers
NinjaTrader_Josh
02-13-2009, 11:08 AM
Arsch,
Currently you cannot overlay indicators if they have a different scale than the price axis scale. The reason the price becomes a squished line when you add the indicator to the same panel is because you are still using the price axis scale. Values of 0-1 would be much lower than a stock priced up at $90-100 and as such to display both in one panel means they will both be very squished in order to show a 0-100 range.
Arsch
02-13-2009, 12:25 PM
Thanks Josh
so just curious but are you guys going to maybe make it available in your next release
NinjaTrader_Josh
02-13-2009, 12:37 PM
Arsch,
NT7 will provide many charting improvements and we hope you will be pleased when it is released.
Arsch
02-13-2009, 08:32 PM
Thanks Josh
Any hint as to when NT 7 will be released?
NinjaTrader_Bertrand
02-14-2009, 12:47 AM
NinjaTrader 7 is scheduled for the second quarter of 2009.