Currency symbol on chart

 

If I open a chart, say GPBUSD, how would I programatically be able to find that currency pair name?


In my case, my EA will assign the MagicNumber based on what currency pair symbol exists on the chart I open.


Possible?


Thanks,

Merlin

 
MerlinBrasil:

If I open a chart, say GPBUSD, how would I programatically be able to find that currency pair name?


In my case, my EA will assign the MagicNumber based on what currency pair symbol exists on the chart I open.


Possible?


Thanks,

Merlin

Hi Merlin

The function Symbol() returns the symbol of the chart that an EA is attached to.

Jellybean
 
Jellybean:

Hi Merlin

The function Symbol() returns the symbol of the chart that an EA is attached to.

Jellybean

Thanks, Jellybean :)


I think the Documentation would be improved 100% by implementing a Natural Language search.

Reason: