Automating Bullish and Bearish Crab Harmonic Pattern Trades in MQL5
Summary
This article outlines an MQL5 Expert Advisor for detecting bullish and bearish Crab harmonic patterns from five pivot points, X through D. It uses Fibonacci relationships among the XA, AB, BC, and CD legs to identify a potential reversal zone, then describes trading around point D with a stop loss and multiple take-profit levels. The system also draws triangles, connecting lines, pivot labels, and trade-level markers on the chart to make detected formations visible.
The implementation uses configurable pivot lookback parameters and a tolerance for ratio deviations, along with a switch for enabling automated trading. The article includes chart illustrations and says that backtesting was performed, but the supplied excerpt contains no report values or detailed test conditions. Its ratio tolerances, pivot confirmation rules, and execution assumptions therefore cannot be assessed from the text alone. A detected geometric pattern is not evidence by itself that a reversal will occur, and the article advises further testing and risk management before live use.
Key ideas
- The Crab pattern is defined by five sequential swing pivots and Fibonacci relationships among its legs.
- Bullish and bearish versions reverse the order of swing highs and lows and project point D beyond X.
- The EA uses pivot detection and configurable tolerance to recognize candidate patterns.
- Chart objects mark the pattern structure and planned entry, stop, and profit levels.
- The text mentions backtesting but provides no numerical results or test conditions for evaluating performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.