Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
mladen, thankyou for responding to my query. I really appreciate.
I can see now I did not clearly state my problem. I realised it is a matter of advancing the numbers. I guess I should have explained I also tried
if (StringLen(symbol_prefix = 1)){
Base = StringSubstr(Symbol(),1,3);
Quote = StringSubstr(Symbol(),4,3);
(and similar for StringLen = 2) (2,3 and 5,3)
but MetaEditor gives an error saying 'symbol_prefix' - constant cannot be modified.
So I figured I'm not doing it right and that's why I posted. This is how I learn best, with practical problems experienced.
mladen, thankyou for responding to my query. I really appreciate.
I can see now I did not clearly state my problem. I realised it is a matter of advancing the numbers. I guess I should have explained I also tried
if (StringLen(symbol_prefix = 1)){
Base = StringSubstr(Symbol(),1,3);
Quote = StringSubstr(Symbol(),4,3);
(and similar for StringLen = 2) (2,3 and 5,3)
but MetaEditor gives an error saying 'symbol_prefix' - constant cannot be modified.
So I figured I'm not doing it right and that's why I posted. This is how I learn best, with practical problems experienced.Newton51
Change that line to this :
if (StringLen(symbol_prefix)== 1){
Thankyou so much mladen. This was the problem. As soon as I added the extra "=", it compiled without errors.