GetSymbolPart ( int position);
|position||-||Defines number of symbol part to be returned.|
Returns a part of the composite symbol.
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.