usingcAlgo.API;namespacecAlgo{// This example shows how to use the Chart ChartIconType[Indicator(IsOverlay = true, TimeZone = TimeZones.UTC, AccessRights = AccessRights.None)]publicclassChartTypeSample:Indicator{protectedoverridevoidInitialize(){ShowChartType();Chart.ChartTypeChanged+=Chart_ChartTypeChanged;}privatevoidChart_ChartTypeChanged(ChartTypeEventArgsobj){ShowChartType();}privatevoidShowChartType(){Chart.DrawStaticText("type",string.Format("Type: {0}",Chart.ChartType),VerticalAlignment.Top,HorizontalAlignment.Right,Color.Red);}publicoverridevoidCalculate(intindex){}}}