Symbol() not working

 

Hello,


I use the following code on a EURUSD chart but the condition never becomes true. What am I doing wrong?



if (Symbol() == "EURUSDm" || Symbol() == "EURUSD")

{

MagicNumber = MagicNumber + 11;

inst="EURUSD";

Print("here2");

}



-Mike

 

The code looks just fine.

Add an else statement which prints something like "not here2" and show us the output.


CB

 

Or more easy, put:

Print("Symbol - ",Symbol());

and show us.

Reason: