Download MetaTrader 5

Little help please.

To add comments, please log in or register
Frenchytrader
389
Frenchytrader  

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
10569
Keith Watford  
    string  Currency_1 =StringSubstr(Symbol(),0,3);
    string  Currency_2 =StringSubstr(Symbol(),3,3);
Frenchytrader
389
Frenchytrader  
GumRai:


Perfect : )



Thank you.

To add comments, please log in or register