LevelsAttribute


Summary

Initializes a new LevelsAttribute instance

Remarks

Draws level (horizontal) lines at a fixed position when the plot is on the indicator panel below the chart. To make it effective apply enclosed in square brackets, e.g. [Levels(0)], before the Indicator atribute declaration.

Syntax

public LevelsAttribute LevelsAttribute(Double[] levels)

Parameters

NameDescription

Example 1

namespace cAlgo.Indicators
{
    // A zero line will be drawn
    [Levels(0)]
    [Indicator]
    public class NewIndicator : Indicator