TAG

mql5

  • 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 […]

  • November 24, 2025

Printの理解

概要 Print() 関数は MQL5 プログラムが何をしているかを観察するための最も単純な方法です。ターミナルログにメッセージを書き込み、変数の値、実行順序、エラー状況を確認できます。出力は Experts タブ(Script/EAs/Indicators)に表示され、端末のログファイルにも記録されます。Print() を早期かつ頻繁に使うことが、信頼性の高いデバッグへの最短ルートです。 できる […]