Category: Difference between revisions
From MultiCharts
m (Reverted edits by 176.8.90.7 (talk) to last revision by 194.84.116.138) |
No edit summary |
||
Line 1: | Line 1: | ||
Returns a numerical value, indicating the category (financial instrument type) of the symbol that study is applied to. | Returns a numerical value, indicating the category (financial instrument type) of the symbol that study is applied to. | ||
== Usage == | |||
<syntaxhighlight>Category</syntaxhighlight> | <syntaxhighlight>Category</syntaxhighlight> | ||
The following values are returned for each category: | The following values are returned for each category: | ||
0 – Future | :'''0''' – Future, | ||
:'''1''' – Future Option, | |||
1 – Future Option | :'''2''' – Stock, | ||
:'''3''' – Stock Option, | |||
2 – Stock | :'''4''' – Index, | ||
:'''5''' – Currency Option, | |||
3 – Stock Option | :'''6''' – Mutual Fund, | ||
:'''7''' – Money Market Fund, | |||
4 – Index | :'''8''' – Index Option, | ||
:'''9''' – Cash, | |||
5 – Currency Option | :'''10''' – Bond, | ||
:'''11''' – Spread, | |||
6 – Mutual Fund | :'''12''' – Forex, | ||
:'''14''' – Composite. | |||
7 – Money Market Fund | |||
8 – Index Option | |||
9 – Cash | |||
10 – Bond | |||
11 – Spread | |||
== Example == | |||
Assign a value, indicating the type of symbol that the study is applied to, to Value1 variable: | Assign a value, indicating the type of symbol that the study is applied to, to Value1 variable: | ||
<syntaxhighlight>Value1=Category;</syntaxhighlight> | <syntaxhighlight>Value1 = Category;</syntaxhighlight> | ||
[[Category:Data Information/General]] | [[Category:Data Information/General]] |
Revision as of 11:47, 19 February 2012
Returns a numerical value, indicating the category (financial instrument type) of the symbol that study is applied to.
Usage
Category
The following values are returned for each category:
- 0 – Future,
- 1 – Future Option,
- 2 – Stock,
- 3 – Stock Option,
- 4 – Index,
- 5 – Currency Option,
- 6 – Mutual Fund,
- 7 – Money Market Fund,
- 8 – Index Option,
- 9 – Cash,
- 10 – Bond,
- 11 – Spread,
- 12 – Forex,
- 14 – Composite.
Example
Assign a value, indicating the type of symbol that the study is applied to, to Value1 variable:
Value1 = Category;