Candlestick Pattern Detector
Detects Japanese candlestick patterns and labels them on the chart, with per-pattern switches and alerts
Main chartHas alerts
Price-action EA for XAUUSD on M5 that builds zones from engulfing candles and enters when price retests the zone
Open source, MIT License, by NadirAliOfficial (AurexTrader). See licences
First release on this site.
It works only on XAUUSD on an M5 chart. The EA checks that the symbol name contains XAUUSD, XAU or GOLD and that the chart is M5; otherwise it does not start. Drag it onto the chart and enable Algo Trading.
Set InpManualLotSize if you do not want the automatic lot from balance. Adjust InpMaxSpreadPoints to your broker's normal spread; gold spreads can widen a lot around news.
| Name | Default | Description |
|---|---|---|
| InpManualLotSize | 0 | Manual lot size. 0 means automatic mode (sized from the account balance). |
| InpLotPer1000 | 0.04 | Lots per 1,000 units of balance in automatic mode. |
| InpMaxLotSize | 2 | Maximum lot size the EA will open. |
| InpMinLotSize | 0.01 | Minimum lot size the EA will open. |
| InpSLBufferPoints | 50 | Buffer in points placed beyond the zone edge for the stop-loss. |
| InpSwingLookback | 3 | Number of candles on each side used to confirm a swing high/low. |
| InpTrendSwingCount | 4 | Number of swing points used to judge the trend (minimum 3). |
| InpZoneExitCandles | 3 | Minimum number of candles that must close outside the zone before a return counts as a retest. |
| InpInvalidateZone | true | Invalidate a zone when price closes through it to the opposite side. |
| InpMagicNumber | 202507 | Magic number that separates this EA's orders from other orders. |
| InpMaxSlippage | 30 | Maximum accepted slippage in points. |
| InpMaxSpreadPoints | 50 | Maximum spread in points at which an order may be opened. If the spread is wider the signal is skipped. |
| InpShowZones | true | Draw zone rectangles on the chart. |
| InpBullZoneColor | clrDodgerBlue | Colour of bullish (demand) zones. |
| InpBearZoneColor | clrOrangeRed | Colour of bearish (supply) zones. |
Defaults are the values shipped with the EA, not a recommendation. Results depend on the market and on each account. Past results do not guarantee future results. Trading carries a high risk of loss.
This EA uses no indicators, only price. First it judges the trend from swing points (an uptrend is higher highs and higher lows, a downtrend the reverse). When an engulfing candle forms at a swing point in the trend direction it creates a zone from that candle's high-low range, but it does not trade that first candle.
The EA waits for price to leave the zone (close outside for at least InpZoneExitCandles candles) and come back to retest it. If a new engulfing candle in the same direction forms inside the zone during the retest, it opens an order at the open of the next candle. Each zone is traded once.
Every order has a stop-loss beyond the zone edge plus a buffer and a take-profit at the same distance as the stop-loss (1:1). By default the lot is sized from the balance (0.04 lot per 1,000), capped by InpMaxLotSize, and no order is opened when the spread exceeds the set limit.
Banners from the Exness partner programme

FXIDTH is an independent IB partner of Exness. This channel is not owned or operated by Exness.*Spreads may fluctuate and widen due to factors including market volatility, news events, market open/close, and others.*Processing times may vary depending on the chosen payment method.
Detects Japanese candlestick patterns and labels them on the chart, with per-pattern switches and alerts
Main chartHas alerts
Semi-automatic EA that places pending orders from the lines and channels you draw on the chart, for breakout patterns
An indicator that draws boxes on the chart over the price gap across three candles (Fair Value Gap), coloured by direction
Main chart