Download MetaTrader 5

how to do check the current chart symbol....

To add comments, please log in or register
Searching on MQL5.community is performed in all sections. Try it!
turtle1000
129
turtle1000 2015.11.12 11:39 

I was hoping someone would know how to check the current chart symbol....for the example below

i have tested a couple of variations... such as...

if( Symbol()==CADCHF) {gur=gur+1;}

thanks in advance.... 

Keith Watford
Moderator
9648
Keith Watford 2015.11.12 11:49  
Symbol name is a string so don't check for CADCHF, check for "CADCHF" or whatever your broker uses
turtle1000
129
turtle1000 2015.11.12 14:21  
ok...thanks....
To add comments, please log in or register