namespace NinjaTrader.Indicator
{
/// <summary>
///
/// </summary>
[Description("Some Stupid Text")]
public class HotBoxTime : Indicator
{
#region Variables
// User defined variables (add any user defined variables below)
#endregion
/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
Add(PeriodType.Minute, 3);
CalculateOnBarClose = true;
Overlay = true;
}
protected override void OnBarUpdate()
{
Print("Output");
DrawTextFixed("Checkit","THIS IS NEVER EXECUTED",TextPosition.TopRight);
}
#region Properties
#endregion
}
}
Generates this error:
Error on calling 'OnBarUpdate' method for indicator 'HotBoxTime' on bar 0: Bar index needs to be greater/equal 0
Comment