I'd like to hide \ show plots dynamically while indicator working.
In NT7 this worked fine:
if( SMA1[0] < SMA2[0] ) Plots[0].Pen.Color = Color.Empty;
if( SMA1[0] > SMA2[0] ) Plots[0].Pen.Color = Color.Black;
In NT8 it not work.
And variant below not work too.
Plots[0].Pen = new Pen( Brushes.Transparent, 1 );
Plots[0].Opacity = 0;
Plots[0].Brush = Vis.Empty_Brush;
OnRenderTargetChanged()
{
Plots[0].BrushDX= Brushes.Empty.ToDxBrush();
Plots[2].BrushDX = new DxSolidColorBrush( RenderTarget, new Color4( 0, 0, 0, 0) );
}
Is there any way to do it?
Comment