Specifies the description, the name, the category, the source and result scales, etc. for an Indicator class
Inheritance Hierarchy
SystemAttribute
GF.Clients.Charts.TimeSeriesTimeSeriesAttribute
Namespace: GF.Clients.Charts.TimeSeries
Assembly: GF.Clients.Charts (in GF.Clients.Charts.dll) Version: a2f537322cdaf87d2796303449681c087e96766d
Syntax
The TimeSeriesAttribute type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | TimeSeriesAttribute |
Properties
Name | Description | |
---|---|---|
![]() | TypeId | When implemented in a derived class, gets a unique identifier for this Attribute. (Inherited from Attribute.) |
Methods
Name | Description | |
---|---|---|
![]() | Equals | Returns a value that indicates whether this instance is equal to a specified object. (Inherited from Attribute.) |
![]() | GetHashCode | Returns the hash code for this instance. (Inherited from Attribute.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IsDefaultAttribute | When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class. (Inherited from Attribute.) |
![]() | Match | When overridden in a derived class, returns a value that indicates whether this instance equals a specified object. (Inherited from Attribute.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
![]() | Category |
Category of Indicator
|
![]() | ExecutionMode | |
![]() | Name |
Unique name of Indicator that will be shown in OEC Charts menu "Indicators". For example, 'Simple Moving Average'
|
![]() | ResultScale |
Result scale of Indicator
|
![]() | ShortName |
Short name of Indicator that will be used in expressions. For example, 'SMA'
|
![]() | SourceCategories |
Comma-separated list of allowable indicator categories. For example, Variable Moving Average allows using just data of indicators from 'Volatility' category
|
![]() | SourceScale |
Allowable scale of source data
|
Examples
[TimeSeries("Relative Strength Index", "RSI", IndicatorCategories.Oscillator, AreaScale.Percent, SourceScale = AreaScale.Price)] public class RelativeStrengthIndex : PeriodicIndicator { // code of indicator }
See Also