Chart Description Text - provides a description text box at the top left corner

 public class ChartDescriptionText : Indicator
    {
        #region Variables
       
            private string chartDesc = "";
private Font myFont = new Font("Arial", 20);
       
        #endregion

        protected override void Initialize()
        {
            Overlay = true;
        }

       protected override void OnBarUpdate()
        {
if (CurrentBar < 1)
        return;


DrawTextFixed("tag1Flag", chartDesc, TextPosition.TopLeft, Color.White, myFont, Color.Transparent, Color.DimGray, 5);

}

        #region Properties
     

        [Description("")]
        [GridCategory("Parameters")]
        public string ChartDesc
        {
            get { return chartDesc; }
            set { chartDesc = value; }
        }
        #endregion
    }

Comments

Popular posts from this blog

ATR in Tick - shows ATR in the number of ticks

Constant Lines Areas - makes vertical constant lines and color each area created by the lines

Chart Sizing - adjusts the vertical scale of the chart by the number of ticks