Na ja, wo wird man wohl zu suchen haben, wenn die Symbole als String deklariert werden? In den String-Funktionen!! und da gibt es die Funktion StringSubstr().
Extracts a substring from a text string starting from the specified position.
string StringSubstr(
string string_value, // string
int start_pos, // position to start with
int length=0 // length of extracted string
);
Parameters
string_value
[in] String to extract a substring from.
start_pos
[in] Initial position of a substring. Can be from 0 to StringLen(text) -1.
length=0
[in] Length of an extracted substring. If the parameter value is equal or less than 0 or parameter isn't set, the substring will be extracted from the indicated position till the string end.
Return Value
Copy of a extracted substring, if possible. Otherwise returns an empty string.
So, nun nur noch geschwind angewendet:
string symbol = StringSubstr(Symbol(), 0, 6);
Fertig!
traderdoc
__________________
Ich erfülle Euch gern Eure EA-, Indikator- und Script-Programmierungswünsche auf Honorarbasis.
|