TAG

market-data

  • November 6, 2025

Getting the Symbol Name

Overview Many MQL5 programs need to know which instrument they are running on. The built-in Symbol() function returns the current chart’s symbol as a string, allowing you to print it for diagnostics or use it to request prices, trade, or load indicator data. What You Will Be Able to Do Code Example Execution Steps Key Point Symbol() is context-sensitive: it returns the symbol of the chart where the program runs. When an EA must handle multiple instruments, pass symbol names explicitly instead of relying on the current chart context. Next Section → Next: What Are Indicators