Can anyone explain why this very simple code does not draw a rectangle...
Thanks
#region Variables
private int name = 0;
#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()
{
CalculateOnBarClose = true;
Overlay = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
name++;
DrawRectangle("Rectangle" + name.ToString(), 5, Close[5], 0, Close[0], Color.Blue, Color.BlueViolet, 1);
}
Comment