Discussing the article: "Adaptive Malaysian Engulfing Indicator (Part 1): Pattern Detection and Retest Validation"
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Check out the new article: Adaptive Malaysian Engulfing Indicator (Part 1): Pattern Detection and Retest Validation.
Malaysian Engulfing is a powerful candlestick cue, but in practice it breaks down in two ways: traders and developers struggle to detect truly “perfect” engulfing candles consistently in real time, and a detected candle alone gives little actionable context about what should follow (pullback, retest, invalidation). This article addresses both problems on the MetaTrader 5/MQL5 platform by turning a visual pattern into a reproducible, rule‑based process.
First, we formalize the Malaysian Engulfing definition so it can be coded unambiguously: the second candle's body must fully dominate the prior body (opening at or beyond the prior close and closing beyond the prior extreme). Second, we convert the post-pattern evolution into a lightweight state machine that programmatically tracks the setup—defines a zone (high/low), enforces an invalidation level, waits a fixed retest window (barsRetestRange), and validates returns using a wick-strength filter (wickThreshold). The deliverables are two complementary MQL5 indicators: a strict pattern detector (visual arrows) and a retest validator (zone drawing + deterministic confirmation events) that together move you from subjective chart reading to a testable, automatable workflow.
Author: Chukwubuikem Okeke