thanks.
namespace NinjaTrader.NinjaScript.Indicators
{
public class BidAskVol : Indicator
{
private int myInput0 = 1;
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"Enter the description for your new custom Indicator here.";
Name = "BidAskVol";
Calculate = Calculate.OnEachTick;
IsOverlay = false;
DisplayInDataBox = true;
DrawOnPricePanel = true;
DrawHorizontalGridLines = true;
DrawVerticalGridLines = true;
PaintPriceMarkers = true;
ScaleJustification = NinjaTrader.Gui.Chart.ScaleJustification.Right;
//Disable this property if your indicator requires custom values that cumulate with each new market data event.
//See Help Guide for additional information.
IsSuspendedWhileInactive = true;
}
else if (State == State.Configure)
{
AddPlot(new Stroke(Brushes.Blue), PlotStyle.Bar, "Plot0");
AddPlot(new Stroke(Brushes.Red), PlotStyle.Bar, "Plot1");
}
}
protected override void OnBarUpdate()
{
if (CurrentBars[0] < 1)
return;
Plot0.Set(GetCurrentAskVolume[0]);
Plot1.Set(GetCurrentBidVolume[0]);
}

Comment