I can't see where the error is??
protected override void OnBarUpdate()
{
if(CurrentBar < 50)
return;
///Only works on Volumetric Bar Types
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsType barsType = BarsArray[0].BarsType as
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsType;
if (barsType == null)
return;
}

Comment