Naohiro Sagawa|佐川 直弘
AUTHOR

Naohiro Sagawa|佐川 直弘Director of Trilogy Co Ltd. Registered investment adviser. Registration number: Kinki Local Finance Bureau of Japan. Kinsho 372.

    • November 24, 2025

    Summary and Next Steps

    Overview By this point in the MQL5 Learning Roadmap, you have walked through the entire basic workflow of algorithmic trading in MetaTrader 5. You started with simple scripts, learned how to use […]

    • November 24, 2025

    Reading the Log

    Overview When you develop programs in MQL5, the log is your primary source of truth about what is actually happening inside the terminal. MetaTrader 5 records messages from your Expert Advisors, […]

    • November 24, 2025

    Working with Parameters

    Overview Input parameters in MQL5 let you configure a program without editing its source code. By declaring variables with the input keyword, you expose them in the EA/Script settings dialog and in th […]

    • November 24, 2025

    Running in the Strategy Tester

    Overview The Strategy Tester in MetaTrader 5 lets you run your Expert Advisors (EAs) on historical data to verify logic, performance, and risk—without using real money. You can backtest on differ […]

    • November 24, 2025

    Before Using OrderSend

    Overview Before you call OrderSend() in MQL5, you must prepare a valid trade request and verify the trading environment. This includes checking terminal permissions, symbol settings, volume constraint […]

    • November 24, 2025

    The OnTick Function

    Overview In an Expert Advisor, the OnTick() function is executed automatically every time a new market tick arrives — meaning each time the Bid or Ask price changes. This makes it the central “loop” o […]

    • November 24, 2025

    What Is an Expert Advisor

    Overview An Expert Advisor (EA) in MQL5 is an automated trading system that runs inside MetaTrader 5. It monitors the market, makes trading decisions, and can execute orders automatically based o […]

    • November 24, 2025

    Reading Indicator Values

    Overview In MQL5, indicator outputs are stored in buffers. You access these buffers programmatically using a handle (e.g., from iMA(), iRSI()) and the CopyBuffer() function. This lets your scripts and […]

    • November 24, 2025

    What Are Indicators

    Overview In MQL5, an indicator analyzes market data and visualizes results on a chart or subwindow. Unlike Scripts and Expert Advisors, indicators do not send orders; they compute values and draw them […]

    • November 24, 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 o […]