I am stumped as to how to get an indicator to draw not on the price panel but in its own panel. The code is just a simple narrow range indicator but I want it to print "NR4" in a separate price panel not on the main panel.
This is the code,
{
if (CurrentBar < 4) return;
range1 = Math.Abs(High[0]-Low[0]);
range2 = Math.Abs(High[1]-Low[1]);
range3 = Math.Abs(High[2]-Low[2]);
range4 = Math.Abs(High[3]-Low[3]);
if( range1 < range2 && range1 < range3 && range1 < range4)
{
DrawText("NR4"+CurrentBar,"NR4",0, Low[0] - 100, Color.BlueViolet);
}
}
And also if you have a value such as in the above example of range1 , range2 etc how do you use the DrawText method to also draw the value on the chart?
Comment