Download MetaTrader 5

Non-multicurrecy EA problem with Symbol() - error 4106 (unknown symbol name)

To add comments, please log in or register
Artur Brud
1787
Artur Brud  
Hello, one of my EA users has problems with its initializing and working.
The symbol() function returns the name, but for some reason this name does not work on other functions.
MIN_LOT = SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MIN);

returns no value.

SYMBOL=Symbol();
...
Print("Attempting to open BUY order on ",SYMBOL,".");
TICKET=OrderSend(Symbol(),OP_BUY,PARABOLIC_LOT,Ask,SLIPPAGE*XECN,Bid-PARABOLIC_SL*Point*XECN,0,"PARABOLIC_OSCILLATOR",MAGIC_NUMBER,0,clrBlue);

returns this:

I think the underlined difference is the cause of the error - USOIL(£) is interpreted as USOIL(L).
Since the symbol() function can't correctly write the special character "£", how can I help it? or override it?

whroeder1
16764
whroeder1  
Since the symbol() function can't correctly write the special character "£", write to the server desk and get it fixed. Who knows what other problems is also hidden.
Artur Brud
1787
Artur Brud  
To add comments, please log in or register