ChartIndicators

View as Markdown

Definition

Contains a collection of Indicators which have been added to the strategy instance using AddChartIndicator().

Property Value

An Indicator object

Syntax

ChartIndicators[int index]

Examples

1if (State == State.DataLoaded)
2{
3 AddChartIndicator(SMA(20));
4
5 // Set the plots color for the added indicator
6 ChartIndicators[0].Plots[0].Brush = Brushes.Blue;
7
8 // Set the added indicator to panel 1 (specified index needs to be >= 1)
9 ChartIndicators[0].Panel = 1;
10}