OnBarUpdate seems not firing anymore.
RequiresBars = true; - crashes NT
using System;
using System.ComponentModel;
namespace NinjaTrader.MarketAnalyzer
{
[Description("")]
[Gui.Design.DisplayName(" ABC")]
public class VolatilityMa : Column
{
private int period = 14;
///<summary>
///</summary>
[Description("Numbers of bars used for calculations")]
[Category("Parameters")]
public int SMAPeriod
{
get { return period; }
set { period = Math.Max(1, value); }
}
protected override void Initialize()
{
RequiresBars = true;
}
protected override void OnBarUpdate()
{
Value = SMA(SMAPeriod)[0];
}
}
}The above code is stripped down to minimum and crashes NT
Comment