PDA

View Full Version : How to select the next available chart panel


zoltran
03-28-2007, 05:12 AM
I notice that your system indicators will always suggest the next available/blank chart panel for display

However, mine always default to panel 1.

How do I make them auto select like yours?

NinjaTrader_Dierk
03-28-2007, 05:36 AM
You likely have
PriceTypeSupported = true;in your Initialize method. Please remove that and you should be good (compare e.g. SMA and ADX implementation).

zoltran
03-28-2007, 06:05 AM
Thanks Dierk

I just tried that, and it still defaults to panel 1

protected override void Initialize()
{
Add(new Plot(Color.OrangeRed, PlotStyle.Bar, "Angle"));
Add(new Line(Color.DarkOliveGreen, 0, "Zero"));
Period = 9;
Volatility = 5;
CalculateOnBarClose = false;
Overlay = true;
// PriceTypeSupported = true;
}

NinjaTrader_Dierk
03-28-2007, 06:10 AM
Hmm I was mistaken. Please remove this line:
Overlay = true

Sorry.

zoltran
03-28-2007, 06:22 AM
Bingo ! That got it.

I verified that the wizard sets overlay=true when the 'plot on chart' tick box is selected on the 2nd page of the wizard.

I just assumed that this meant that the indicator would show up on the chart someplace, vs being a background function.

But it really means plot on the the price panel vs it's own panel

Maybe the wording in the wizard could be updated to better reflect what it does.

Thanks again for such prompt response!!

NinjaTrader_Ray
03-28-2007, 06:26 AM
Good point, thanks for your suggestion.

Ray