PDA

View Full Version : DrawOnPricePanel = false & Y axes


GuyFB
08-29-2009, 10:37 PM
I have an indicator where I set the DrawOnPricePanel = false.
When I use DrawLine with High and Low as the prices the Y axes is set to 1- 0 so the values don't show. Here is the code. Is there a problem with the Y axes??

if(CurrentBar<frequency) return;

NLow = Low[LowestBar(Low,frequency)];
NHigh = High[HighestBar(High,frequency)];

NOpen = Open[frequency-1];
NClose = Close[0];

DrawLine("Tag1"+CurrentBar,true,0,NHigh,0,NLow,Color.Black,DashSt yle.Solid,1);
if(NOpen > NClose)
DrawLine("Tag2"+CurrentBar,true,0,NOpen,0,NClose,Color.Red,DashSt yle.Solid,3);
else
DrawLine("Tag3"+CurrentBar,true,0,NOpen,0,NClose,Color.Green,Dash Style.Solid,3);

NinjaTrader_Austin
08-30-2009, 02:12 PM
Guy, I'll have someone take a look at this and get back to you tomorrow.

NinjaTrader_Josh
08-31-2009, 07:14 AM
GuyFB,

You will need a plot in the indicator for the panel scaling to start working.

GuyFB
09-04-2009, 03:37 PM
GuyFB,

You will need a plot in the indicator for the panel scaling to start working.


B U G? Fixed in Next Release?

NinjaTrader_Josh
09-04-2009, 03:41 PM
This is not a bug. If you don't have a plot, there is no scale for the panel.