GetSymbolPart ( int position);
Default values:
position: 1
Input parameters
Parameter | Default value | Description |
---|---|---|
position | - | Defines number of symbol part to be returned. |
Description
Returns a part of the composite symbol.
Example
declare lower;
plot Spreads = close(GetSymbolPart(1)) - close(GetSymbolPart(2));
The code calculates the spread between the first and second parts of the composite symbol. Note that the normalized form of representation is used when defining parts a composite index; this form implies sorting in the ascending order. For example, if you specify the "KO+GE" composite then it will be represented as "GE+KO" and it's first part will be "GE", not "KO", as it was at the input.