Candlestick Pattern Detector
Detects Japanese candlestick patterns and labels them on the chart, with per-pattern switches and alerts
Main chartHas alerts
An indicator that draws boxes on the chart over the price gap across three candles (Fair Value Gap), coloured by direction
Open source, MIT License, by rpanchyk. See licences
First release on this site.
A light green box is a bullish Fair Value Gap and a light pink box is a bearish one (the colours can be changed). The box covers the gap between the wicks of the 1st and 3rd candles of a three-candle group. A box that still extends to the right is a gap price has not come back to. When a bar reaches the edge of the box, the box stops at that bar. Traders commonly treat a still-open box as a zone price may return to and test.
You can change the bullish box colour (InpUpTrendColor) and bearish colour (InpDownTrendColor), choose solid or transparent fill (InpFill), the border style (InpBoderStyle) and the border width (InpBorderWidth). If you turn off InpContinueToMitigation, a box is only as wide as the three candles that formed it and does not extend with price. InpDebugEnabled turns on verbose messages in the Experts tab. The objects it draws have names starting with FVG and are removed when the indicator is taken off the chart.
It works on every timeframe, reads closed bars and calculates only when a new bar opens. It sends no alerts.
| Name | Default | Description |
|---|---|---|
| InpContinueToMitigation | true | true = extend the box to the right until price returns into the gap. false = show the box only over the span of the gap. |
| InpDownTrendColor | clrLightPink | Box colour for bearish gaps. |
| InpUpTrendColor | clrLightGreen | Box colour for bullish gaps. |
| InpFill | true | true = fill the box with solid colour. false = transparent, border only. |
| InpBoderStyle | BORDER_STYLE_SOLID | Box border style (Solid or Dash). |
| InpBorderWidth | 2 | Width of the box border. |
| InpDebugEnabled | false | true = write verbose troubleshooting messages to the Experts tab. |
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 indicator finds Fair Value Gaps: price gaps created by three consecutive candles, where the wicks of the first and third candles do not overlap. It draws a box over each gap on the chart. Light green boxes are bullish gaps and light pink boxes are bearish gaps (the colours can be changed).
With InpContinueToMitigation on, a box keeps extending to the right until price comes back into the gap, then stops at that bar. With it off, the box covers only the span of the gap itself.
The indicator also keeps 3 hidden buffers (upper edge of the gap, lower edge and direction) that an EA or another indicator can read through iCustom. It uses closed bars only, opens no trades and sends no alerts.
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
Price-action EA for XAUUSD on M5 that builds zones from engulfing candles and enters when price retests the zone
XAUUSD · M5