from sampleAddon i call it like this and im not even sure im rigth
barsRequest.BarsPeriod = new NinjaTrader.Data.BarsPeriod { BarsPeriodType = BarsPeriodType.Volumetric,VolumetricDeltaType = VolumetricDeltaType.BidAsk,BaseBarsPeriodValue = 5 , MarketDataType = MarketDataType.Bid};
the probleme is i dont know what to do in callback it print like 5 minutes standard candles
private void PrintBarsRequest(NinjaTrader.Data.BarsRequest bars)
{
outputBox.Text = "REQUESTED BARS: " + bars.Bars.Count + " type" + bars.Bars.BarsType;
// Process returned bars here. Note: The last returned bar may be a currently in-progress bar
for (int i = 0; i < bars.Bars.Count; i++)
{
// Do whatever you want with the bars
outputBox.AppendText(string.Format("{0}Time: {1}{0}Open: {2}{0}High: {3}{0}Low: {4}{0}Close: {5}{0}Volume: {6}{0}",
Environment.NewLine,
bars.Bars.GetTime(i),
bars.Bars.GetOpen(i),
bars.Bars.GetHigh(i),
bars.Bars.GetLow(i),
bars.Bars.GetClose(i),
bars.Bars.GetVolume(i)));
}
}
how i access all the methode of volumetric bar like in ninjascript example?
Comment