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);
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);