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.
JellybeanJellybean:
Hi Merlin
The function Symbol() returns the symbol of the chart that an EA is attached to.
JellybeanThanks, Jellybean :)
I think the Documentation would be improved 100% by implementing a Natural Language search.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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