---
title: "#mql5 articles | Hashnode"
description: "Explore 19 articles tagged #mql5 on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/mql5"
---

Tag

# #mql5

19 posts · 2 followers

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Oct 27](https://hashnode.com/posts/fixed-utc-5-is-not-the-new-york-clock/6ae0674193c1bee7bfec4b62)

### [Fixed UTC-5 is not the New York clock](https://stratcorealpha.hashnode.dev/fixed-utc-5-is-not-the-new-york-clock?utm_source=hashnode&utm_medium=feed)

A fixed UTC-5 session and the New York clock can differ by a full hour. A conversion can therefore take different trades even when the entry formula agrees. If you move a Pine session to MT5, your clo

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/fixed-utc-5-is-not-the-new-york-clock?utm_source=hashnode&utm_medium=feed)

[Karan Rajput](https://hashnode.com/@codeflowos) · [Oct 20](https://hashnode.com/posts/pine-script-to-mql5/6ad72cfc1690725ca1740ee7)

### [Pine Script to MQL5: the three timing bugs that make an EA trade differently](https://codeflowos.hashnode.dev/pine-script-to-mql5?utm_source=hashnode&utm_medium=feed)

A Pine Script strategy and its MQL5 version can use the same indicators and still trade on different bars. Here are the three timing bugs behind most of that, and a small EA to check for them. ## 1. R

2 min read · [codeflowos.hashnode.dev](https://codeflowos.hashnode.dev/pine-script-to-mql5?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Oct 20](https://hashnode.com/posts/your-account-finished-flat-did-it-cross-the-loss-limit-first/6ad7812638fe90993d142ca2)

### [Your account finished flat. Did it cross the loss limit first?](https://stratcorealpha.hashnode.dev/your-account-finished-flat-did-it-cross-the-loss-limit-first?utm_source=hashnode&utm_medium=feed)

Your $100,000 final value can hide an earlier $1,000 crossing below an assumed $98,000 loss floor. Here is one check to make before treating a flat demo session as a clean session. Here is a small exa

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/your-account-finished-flat-did-it-cross-the-loss-limit-first?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Oct 18](https://hashnode.com/posts/mt5-trade-mode-is-not-a-trading-session-clock/6ad4c973d2fe7cc3c3bc43a2)

### [MT5 trade mode is not a trading-session clock](https://stratcorealpha.hashnode.dev/mt5-trade-mode-is-not-a-trading-session-clock?utm_source=hashnode&utm_medium=feed)

Your bot can see full trade permission while its symbol is outside a trading session. My MT5 run passed 5 local session checks and sent zero orders. The important boundary was the exact closing second

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/mt5-trade-mode-is-not-a-trading-session-clock?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Oct 17](https://hashnode.com/posts/mt5-code-10006-test-3-states-before-adding-a-retry/6ad380cf6f89315a62c1eed6)

### [MT5 code 10006: test 3 states before adding a retry](https://stratcorealpha.hashnode.dev/mt5-code-10006-test-3-states-before-adding-a-retry?utm_source=hashnode&utm_medium=feed)

Three native MT5 checks keep rejection, placement and completion separate. Preserve the request and result before another attempt.

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/mt5-code-10006-test-3-states-before-adding-a-retry?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Oct 14](https://hashnode.com/posts/your-mt5-daily-loss-lock-must-survive-recovery-and-reinitialization/6acf3f0d0e33abc71235b5fa)

### [Your MT5 daily-loss lock must survive recovery and reinitialization](https://stratcorealpha.hashnode.dev/your-mt5-daily-loss-lock-must-survive-recovery-and-reinitialization?utm_source=hashnode&utm_medium=feed)

Three native MT5 checks show why a daily-loss lock must restore its starting value and reached-limit flag after a simulated recovery.

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/your-mt5-daily-loss-lock-must-survive-recovery-and-reinitialization?utm_source=hashnode&utm_medium=feed)

[Ali Ozdemir](https://hashnode.com/@ozdemir) · [Oct 10](https://hashnode.com/posts/5-things-i-check-before-debugging-an-mql5-program/6ac9ba3afe6b72a3e60ca95a)

### [5 Things I Check Before Debugging an MQL5 Program](https://ozdemir.hashnode.dev/5-things-i-check-before-debugging-an-mql5-program?utm_source=hashnode&utm_medium=feed)

Learn five practical MQL5 debugging techniques, from fixing compiler errors and checking variable types to analyzing runtime logs and testing code

3 min read · [ozdemir.hashnode.dev](https://ozdemir.hashnode.dev/5-things-i-check-before-debugging-an-mql5-program?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/5-things-i-check-before-debugging-an-mql5-program/6ac9ba3afe6b72a3e60ca95a)

[Omais Ali](https://hashnode.com/@omaisali) · [Oct 9](https://hashnode.com/posts/from-tradingview-strategy-to-mt5-expert-advisor-a-developer-s-checklist/6ac8f36430d4862710868954)

### [From TradingView Strategy to MT5 Expert Advisor: A Developer's Checklist](https://customtradingbots.hashnode.dev/from-tradingview-strategy-to-mt5-expert-advisor-a-developer-s-checklist?utm_source=hashnode&utm_medium=feed)

A lot of traders build a strategy in Pine Script on TradingView, like the backtest, and then want it running automatically on MetaTrader 5. The port looks simple. It usually isn't, and the gaps are wh

3 min read · [customtradingbots.hashnode.dev](https://customtradingbots.hashnode.dev/from-tradingview-strategy-to-mt5-expert-advisor-a-developer-s-checklist?utm_source=hashnode&utm_medium=feed)

[3](https://hashnode.com/posts/from-tradingview-strategy-to-mt5-expert-advisor-a-developer-s-checklist/6ac8f36430d4862710868954)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Sep 29](https://hashnode.com/posts/testing-an-mt5-reversal-as-two-observable-state-transitions/6abbca10f065af32ca3a9a86)

### [Testing an MT5 Reversal as Two Observable State Transitions](https://stratcorealpha.hashnode.dev/testing-an-mt5-reversal-as-two-observable-state-transitions?utm_source=hashnode&utm_medium=feed)

A four-case MT5 reversal acceptance test separates order requests, server results and the actual position.

3 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/testing-an-mt5-reversal-as-two-observable-state-transitions?utm_source=hashnode&utm_medium=feed)

[Arnold Holm](https://hashnode.com/@stratcorealpha) · [Aug 31](https://hashnode.com/posts/a-trading-bot-is-not-ready-until-it-survives-a-restart/6a9608181cf1a727b4a4ef69)

### [A Trading Bot Is Not Ready Until It Survives a Restart](https://stratcorealpha.hashnode.dev/a-trading-bot-is-not-ready-until-it-survives-a-restart?utm_source=hashnode&utm_medium=feed)

Test how a trading bot rebuilds state after restart with three buyer-focused acceptance cases for ownership, duplicates, and one-shot actions.

4 min read · [stratcorealpha.hashnode.dev](https://stratcorealpha.hashnode.dev/a-trading-bot-is-not-ready-until-it-survives-a-restart?utm_source=hashnode&utm_medium=feed)
