It looks like this:
protected override void Initialize() { Add(new Plot(Color.FromKnownColor(KnownColor.RoyalBlue), PlotStyle.Bar, "Plot0")); Overlay = true; AutoScale = false; } protected override void OnBarUpdate() { if( CurrentBar < 1 ) return; if( Time[1].Hour != Time[0].Hour ) Plot0.Set( 1000000 ); }
But when I put it on 1 range chart it also work ok until I scroll chart - after scrolling indicator disappeared.
If i write Plot0.Set( 10000 ), it begin to work normally.
What value I have to set to see vertical bar on all instruments and all charts?
May be Close*2 ?
Comment