This is what i have using the example in the manual. [url]https://ninjatrader.com/support/helpGuides/nt8/?order_flow_volumetric_bars2.htm[/url]
else if (State == State.Configure)
{
AddDataSeries("MNQ 03-21", Data.BarsPeriodType.Second, 30, Data.MarketDataType.Last);
}
}
protected override void OnBarUpdate()
{
if (Bars == null)
return;
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe barsType = Bars.BarsSeries.BarsType as
NinjaTrader.NinjaScript.BarsTypes.VolumetricBarsTy pe;
if (barsType == null)
return;
// Trying to Print 30 Sec Period
if (BarsInProgress == 1)
{
Print(Convert.ToString(Times[1][0]) + Closes[1][0]);
}
How can I get the 30 sec to print with volumetric data?
Comment