Hello, i am a new user, so it just sharing.
i have test the code
string aPair[]; // try aPair[10]; string Pairs = "EURUSD,USDJPY,AUDUSD,EURCHF,USDCAD,EURGBP,NZDUSD,EURJPY,GBPUSD,USDCHF,GBPCHF"; StrToStringArray(Pairs, aPair); Alert(aPair[2]); // Should alert AUDUSD Comment(aPair[8]); // the resulr is GBPUSD
just change
string aPair[];
with this
string aPair[10];

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How can I get an array from a string using MLQ4? In the code below, the alert is blank: