Download MetaTrader 5

Comment(Symbol());

To add comments, please log in or register
Sign up to publish an article and receive 200 USD
myfin90
25
myfin90 2015.12.04 09:23 

Dear everyone,

 

Anyone know what is wrong with the following statement?

 

 Comment(Symbol());

 

When I compiled, it says "Symbol'-ambiguous call to overloaded function with the same parameters.".

Or is there a way to write code to store the value of Symbol()?

 

Thanks you in advance.

Alain Verleyen
Moderator
30775
Alain Verleyen 2015.12.04 11:16  
myfin90:

Dear everyone,

 

Anyone know what is wrong with the following statement?

 

 Comment(Symbol());

 

When I compiled, it says "Symbol'-ambiguous call to overloaded function with the same parameters.".

Or is there a way to write code to store the value of Symbol()?

 

Thanks you in advance.

You can't redefine a Symbol() function with the same parameters as the standard version.
myfin90
25
myfin90 2015.12.04 12:18  
Alain Verleyen:
You can't redefine a Symbol() function with the same parameters as the standard version.

Hi Alain,

Thanks for your quick reply. How then can I write code to store the value of Symbol() for use in subsequent coding to retrieve the value of Symbol()? 

Tks once again.

Stuart Browne
5820
Stuart Browne 2015.12.04 13:02  
That code should work fine so not sure why you're getting the overload error. You might need to provide more code so we can see what's going wrong. You can also try 

Comment(_Symbol);
Alain Verleyen
Moderator
30775
Alain Verleyen 2015.12.04 14:22  
Stuart Browne:
That code should work fine so not sure why you're getting the overload error. You might need to provide more code so we can see what's going wrong. You can also try 

We can only guess without the actual code.
myfin90
25
myfin90 2015.12.04 14:25  
Stuart Browne:
That code should work fine so not sure why you're getting the overload error. You might need to provide more code so we can see what's going wrong. You can also try 

Hi Stuart, 

Thanks for your reply. It is working now. There are some error in my coding.

Cheers. 

To add comments, please log in or register