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.
Syntax
public sealed class IndicatorAttribute : Attribute
Members
Name | Type | Summary |
---|---|---|
AccessRights | Property | Gets or sets the access rights required for Indicator. |
AutoRescale | Property | Indicates whether this instance automatically rescales the chart or not. |
IndicatorAttribute | Method | Initializes a new instance of the IndicatorAttribute |
IsOverlay | Property | Indicates whether this instance is overlayed on the chart or plotted on a separate indicator panel |
Name | Property | The name of the Indicator. |
ScalePrecision | Property | The price scale precision. |
TimeZone | Property | Gets or sets the chart timezone of the displayed indicator. |
Example 1
namespace cAlgo.Indicators [Indicator()] public class SampleIndicator : Indicator { //... }
Example 2
[Indicator("Custom Indicator" )] public class SampleIndicator : Indicator
Example 3
[Indicator("IndicatorName", ScalePrecision = 5, IsOverlay = false, TimeZone = TimeZones.UTC)] public class SampleIndicator : Indicator