LevelsAttribute


Summary

Levels Attribute. Applies metadata to enable the plot of level lines.

Remarks

Represents level lines. It is commonly used in Oscillators, for instance to add a zero line. Must be added before the indicator class declaration.

Syntax

public sealed class LevelsAttribute : Attribute

Members

NameTypeSummary
Levels PropertyThe array of price values that are ploted as level lines
LevelsAttribute MethodInitializes a new LevelsAttribute instance

Example 1

namespace cAlgo.Indicators
{
    [Levels(0, 50, 100)]
    [Indicator()]
    public class NewIndicator : Indicator
    //...