tonyjms2005:
Hi
I am trying to work out how my EA can identify if the current Symbol() has "FXF" in the title, for example "EURUSDFXF"
This is what I have tried using and its all I can think of using:
Can anyone suggest any ideas?
Thank you
Antony
You need to extract the last 3 characters of the string and see if it equals "FXF"
Something like this . . .
if( StringSubstr(Symbol(), StringLen(Symbol()) - 3, 3 ) == "FXF") Print("Symbol ends in FXF ! !");
Hi
Thank you for the real quick reply, works perfectly!
Thank you
Antony
if (StringFind(Symbol(), "FXF") >= 0)

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
Hi
I am trying to work out how my EA can identify if the current Symbol() has "FXF" in the title, for example "EURUSDFXF"
This is what I have tried using and its all I can think of using:
Can anyone suggest any ideas?
Thank you
Antony