Download MetaTrader 5
To add comments, please log in or register
Do you want to order an application? Find out how to obtain the desired result
Frenchytrader
281
Frenchytrader 2014.05.02 18:10 

Hi all

I'm struggling with all the string functions.


How to get the 3 first letters of the Symbol()

How to get the last 3.


Example... EA is runing on GBPNZD

string Currency_1 = GBP;
string Currency_2 = NZD;


Cheers

Keith Watford
Moderator
7990
Keith Watford 2014.05.02 20:59  
    string  Currency_1 =StringSubstr(Symbol(),0,3);
    string  Currency_2 =StringSubstr(Symbol(),3,3);
Frenchytrader
281
Frenchytrader 2014.05.03 10:45  
GumRai:


Perfect : )



Thank you.

/
To add comments, please log in or register