{
private mzFootprint MzFlow;
private mzVolumeDelta MzDelta;
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"Escriba la descripción de su nuevo Indicador personalizado aquí.";
Name = "Atrapados";
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)
{
}
else if (State == State.DataLoaded)
{
}
}
protected override void OnBarUpdate()
{
//if (CurrentBars[0] < 1)
// return;
if (MzFlow != null && MzDelta != null)
{
double mzDeltaValue = MzDelta.__Volume[0];
var mzFlowValue = MzFlow.AbsoprtionResistanceZoneSound[0];
Print("MzFlow Value: " + mzFlowValue);
Print("MzDelta Value: " + mzDeltaValue);
}
}
}
Could you help me extract the data, I get a call error in OnBarUpdate, reference to an object not established
Comment