Copied and pasted the code from that example into wizard generated code and no drawing object was visible, also no drawing object in list of drawing objects.
Can someone please help me understand why nothing is plotting?
Note that this is wizard-generated code with the example pasted in.
public class MAGZONESv1 : Indicator
{
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
Description = @"Enter the description for your new custom Indicator here.";
Name = "MAGZONESv1";
Calculate = Calculate.OnBarClose;
IsOverlay = true;
DisplayInDataBox = true;
DrawOnPricePanel = true;
DrawHorizontalGridLines = false;
DrawVerticalGridLines = false;
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;
MinMagLevel = 5;
}
else if (State == State.Configure)
{
}
}
protected override void OnBarUpdate()
{
// Draws a blue rectangle from the low 10 bars back to the high of 5 bars back
Draw.Rectangle(this, "tag1", 10, Low[10] - TickSize, 5, High[5] + TickSize, Brushes.Blue);
// Draws a blue rectangle from the low 10 bars back to the high of 5 bars back with
// a fill color or pale green with a transparency level of 2
Draw.Rectangle(this, "tag1", false, 10, Low[10] - TickSize, 5, High[5] + TickSize, Brushes.PaleGreen, Brushes.PaleGreen, 2);
}
#region Properties
[NinjaScriptProperty]
[Range(1, int.MaxValue)]
[Display(Name="MinMagLevel", Order=1, GroupName="Parameters")]
public int MinMagLevel
{ get; set; }
#endregion
}

Comment