1) Added this to #region variables:
private System.Drawing.Font textFont;
2) Added to OnBarUpDate():
textFont = new Font("Wingdings",12);
DrawText("tag1","‡",period,High[period]+TickSize,Color.Black, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
But this prevents the bollinger bands from printing at all the chart is blank. Here is the entire OnBarUpDate) method:
protected override void OnBarUpdate()
{ //Set font type
Upper.Set(SMA(Period)[0] + NumStdDev * StdDev(Period)[0]);
Middle.Set(SMA(Period)[0]);
Lower.Set(SMA(Period)[0] - NumStdDev * StdDev(Period)[0]);
//DrawText("tag1", "Text to draw", 10, 1000, Color.Black);
//DrawTextFixed("tag1", "Text to draw", TextPosition.TopRight);
//DrawText("tag1", "‡", 10, 1000, Color.Black);
//IndicatorCheck();
textFont = new Font("Wingdings",12);
DrawText("tag1","‡",period,High[period]+TickSize,Color.Black, textFont, StringAlignment.Center, Color.Transparent, Color.Transparent, 0);
}
I'm doing something wrong, thanks for any advice.
Comment