Identifying pairs that have the "FXF" in the symbol()
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)
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