mql5-pro
Installation
SKILL.md
MQL5 Professional Development
Expert reference for production-grade MQL5 on current MetaTrader 5 builds (as of mid-2026: build 5800+; compiler rules from build 5260+ apply). v10 — adds Pine Script→MQL5 conversion (references/pine-to-mql5.md) and Strategy Tester methodology + CLI automation (references/testing.md).
Skill self-correction protocol (governing rule)
When code produced from this skill fails, and review with the user establishes that the cause is wrong or outdated information in this skill itself (not a typo, not a user-side environment issue, not a one-off mistake) — a wrong API signature, a non-existent enum/constant, an incorrect method name, a false compiler/runtime claim, an obsolete rule:
- State explicitly that the root cause is a skill defect, name the exact file and line/section, and quote the wrong claim and the verified correct one.
- Update the skill file IMMEDIATELY in the same turn — correct the erroneous text in place (and any duplicate of it elsewhere in the skill), then confirm what changed.
- Verify the correction against an authoritative source (official MQL5 reference / a real compile) before writing it — never replace one guess with another. The fix must be 100% confirmed, not probable.
- Whole-skill consistency check before writing. Search the ENTIRE skill (
SKILL.md+ everyreferences/*+assets/*) for every other place that states, depends on, or contradicts the corrected fact. The correction is not done until:- every duplicate of the wrong claim is fixed identically,
- no remaining rule, example, template, or cross-reference now conflicts with the corrected fact,
- any rule that was logically built on the wrong fact is re-evaluated and adjusted. A fix that corrects one location while leaving a contradiction elsewhere is a regression — it makes the skill internally inconsistent, which is worse than the original single error.
- Do not defer, do not merely note it for "later", do not wait for a second prompt. A confirmed skill error is fixed on the spot so it never recurs.
This applies to every file in the skill (SKILL.md, references/*, assets/*).