TimeSeriesAttribute Class

GF Charts Help
Specifies the description, the name, the category, the source and result scales, etc. for an Indicator class
Inheritance Hierarchy

SystemObject
  SystemAttribute
    GF.Clients.Charts.TimeSeriesTimeSeriesAttribute

Namespace:  GF.Clients.Charts.TimeSeries
Assembly:  GF.Clients.Charts (in GF.Clients.Charts.dll) Version: a2f537322cdaf87d2796303449681c087e96766d
Syntax

public sealed class TimeSeriesAttribute : Attribute

The TimeSeriesAttribute type exposes the following members.

Constructors

  NameDescription
Public methodTimeSeriesAttribute
Top
Properties

  NameDescription
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)
Top
Methods

  NameDescription
Public methodEquals
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public methodGetHashCode
Returns the hash code for this instance.
(Inherited from Attribute.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIsDefaultAttribute
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields

  NameDescription
Public fieldCategory
Category of Indicator
Public fieldExecutionMode
Public fieldName
Unique name of Indicator that will be shown in OEC Charts menu "Indicators". For example, 'Simple Moving Average'
Public fieldResultScale
Result scale of Indicator
Public fieldShortName
Short name of Indicator that will be used in expressions. For example, 'SMA'
Public fieldSourceCategories
Comma-separated list of allowable indicator categories. For example, Variable Moving Average allows using just data of indicators from 'Volatility' category
Public fieldSourceScale
Allowable scale of source data
Top
Examples

The following code example demonstrates using the TimeSeriesAttribute class to define the attributes of a Indicator class called RSI
[TimeSeries("Relative Strength Index", "RSI", IndicatorCategories.Oscillator, AreaScale.Percent, SourceScale = AreaScale.Price)]
public class RelativeStrengthIndex : PeriodicIndicator
{
// code of indicator
}
See Also

Reference