Skip to main content

Placement

The user decides where an indicator goes: over the price, or in an area of its own below the chart. The indicator does not choose, but it should say in its description when its values are not prices (a volume, an oscillator), so the user places it in its own area. The series are always drawn in the area of the indicator. Annotations go to the price area unless you set their Area:

The Y axis

AxisY is the Y axis of the area of the indicator. Set its options in OnInit:
SetYAxisConstraints sets margins and limits in one call:
Only the options an indicator sets are applied: the rest stays as the user has it.
AxisY.Minimum and AxisY.Maximum are calculated by the chart while it draws and are desktop only. AxisY.ViewMinimum and ViewMaximum are the values an indicator can set.

Texts on the chart

Two properties let an indicator speak to the user without drawing anything: