Skip to content

IndicatorAttribute

Summary

Indicator Attribute. Applies metadata to enable the indicator plot.

Remarks

To make it effective apply enclosed in square brackets, e.g. [Indicator] before the indicator class declaration. Cannot be ommited.

Signature

1
public sealed class IndicatorAttribute : Attribute

Namespace

cAlgo.API

Properties

Name Description
Name { get; } The name of the Indicator.
ScalePrecision { get; set; } The price scale precision.
IsOverlay { get; set; } Indicates whether this instance is overlayed on the chart or plotted on a separate indicator panel
AutoRescale { get; set; } Indicates whether this instance automatically rescales the chart or not. Default value is true.
TimeZone { get; set; } Gets or sets the chart timezone of the displayed indicator.
AccessRights { get; set; } Gets or sets the access rights required for Indicator.

Fields

Name Description
UnspecifiedScalePrecision

Examples

1
2
3
4
5
6
7
8
 namespace cAlgo.Indicators
{
    [Indicator]
    public class SampleIndicator : Indicator
    {
        //...
    }
}
1
2
 [Indicator(ScalePrecision = 5, IsOverlay = false, TimeZone = TimeZones.UTC)]
 public class SampleIndicator : Indicator

Last update: July 1, 2022

Comments