I'm registering a plot in State == State.SetDefaults as follows:
if(displayPlot == true)
AddPlot(Brushes.Orange, "MyPlot");
And I also have a similar statement for setting the value:
if (displayPlot == true)
MyPlot[0] = value;
where I have defined a property for MyPlot.
This is not working as if the default value for displayPlot is true I get a plot as expected but if then override displayPlot to false in the indicator property page for the indicator I was wanting the Plot to disappear. How can I achieve this? The reason I want to do this is that the same indicator also paints the bars so I want to be able to turn off the plot.
Thanks,
iq
Comment