Curated developer articles, tutorials, and guides — auto-updated hourly


A bug I see in many MT5 Expert Advisors looks like a strategy problem at first. The EA opens a trade...


A very common bug in MT5 Expert Advisors: the code calls trade.Buy(...), it returns true, and the EA...


Most Expert Advisors make their decisions once per bar, not on every tick. That sounds simple, and.....


A risk based lot calculation almost never produces a valid number. You compute 0.4372 lots, send it,...


A Pine Script strategy and its MQL5 version can use the same indicators and still trade on different...


An Expert Advisor only ever sees the last price the terminal received. Most of the time that is fine...


A common request I get is "one EA, attached to one chart, trading eight pairs". It is a good design,...


A common question in Expert Advisor code is "did my trade just hit its stop loss, its take profit, o...


Your EA needs a stop condition after a requote. My policy example compiled with 0 errors; it sends n...


Your EA can put the wrong filling policy into a perfectly valid integer. My MT5 run passed 6 local.....


Your bot can receive a result without a fill. My MT5 run passed 3 synthetic return-code checks and.....


My guarded indicator reader compiled with 0 errors, but that proves no working signal on your...


MQL array out of range: check 3 values before reading a buffer Your indicator cannot read...