I'm a Ninja beginner trying to draw in the secondary data series pane. The code below (general representation) compiles but produces no graphics in "Panel 2".
Thanks for any ideas on what's going wrong here..
/************************************/
public void DrawSomething()
{
if (High[0]>=SomeConstant)
DrawDot(" ", true, 0, High[0], Color.LawnGreen);
}
/************************************/
protected override void Initialize()
{
Add("msft", PeriodType.Minute, 2);
CalculateOnBarClose = true;
}
protected override void OnBarUpdate( )
{
if (CurrentBars[0] < BarsRequired || CurrentBars[1] < BarsRequired)
return;
if (BarsInProgress == 1)
DrawSomething();
}
Comment