Skip to content
Forex Indicator System Thailand
Back to marketplace
PatternIndicator

Candlestick Pattern Detector

Detects Japanese candlestick patterns and labels them on the chart, with per-pattern switches and alerts

Download the indicator free

Download right away. Nothing to fill in.

Version
1.03
Published
11/21/2026
File size
50 KB

Open source, Apache License 2.0, by EarnForex.com. See licences

Version history

  1. 1.03Current11/21/2026 · 50 KB

    First release on this site.

How to read it

Drag it onto a chart. Set MaxCandle to a sensible value (default 500; 0 scans everything, which can be slow on charts with many bars). Turn off patterns you do not use to keep the chart tidy.

Use the small panel in the chart corner to pause detection or clear labels. Notifications are off by default; turn on EnableNotify first. Use it with support/resistance or trend context, since single candlestick patterns can give false signals.

Parameters

NameDefaultDescription
IndicatorNamePTRNDETName used for the chart objects the indicator draws and in notification text.
MaxCandle500Number of past candles to scan. 0 scans all.
DetectBullishtrueDetect bullish patterns.
DetectBearishtrueDetect bearish patterns.
DetectUncertaintrueDetect uncertain patterns that do not point to a direction, such as Doji.
DetectDojiNeutraltrueDetect the Doji pattern.
DetectDojiDragonflytrueDetect the Doji Dragonfly pattern.
DetectDojiGravestonetrueDetect the Doji Gravestone pattern.
DetectSpinningTopBulltrueDetect the bullish Spinning Top pattern.
DetectSpinningTopBeartrueDetect the bearish Spinning Top pattern.
DetectMarubozuUptrueDetect the bullish Marubozu pattern.
DetectMarubozuDowntrueDetect the bearish Marubozu pattern.
DetectHammertrueDetect the Hammer pattern.
DetectHangingMantrueDetect the Hanging Man pattern.
DetectInvertedHammertrueDetect the Inverted Hammer pattern.
DetectShootingStartrueDetect the Shooting Star pattern.
DetectEngulfingBulltrueDetect the Bullish Engulfing pattern.
DetectEngulfingBeartrueDetect the Bearish Engulfing pattern.
DetectTweezerToptrueDetect the Tweezer Top pattern.
DetectTweezerBottomtrueDetect the Tweezer Bottom pattern.
DetectThreeWhiteSoldiertrueDetect the Three White Soldiers pattern.
DetectThreeBlackCrowstrueDetect the Three Black Crows pattern.
DetectThreeInsideUptrueDetect the Three Inside Up pattern.
DetectThreeInsideDowntrueDetect the Three Inside Down pattern.
DetectMorningStartrueDetect the Morning Star pattern.
DetectEveningStartrueDetect the Evening Star pattern.
DetectBullishHaramitrueDetect the Bullish Harami pattern.
DetectBearishHaramitrueDetect the Bearish Harami pattern.
DetectBullishThreeLineStriketrueDetect the Bullish Three-Line Strike pattern.
DetectBearishThreeLineStriketrueDetect the Bearish Three-Line Strike pattern.
DetectThreeOutsideUptrueDetect the Three Outside Up pattern.
DetectThreeOutsideDowntrueDetect the Three Outside Down pattern.
FontVerdanaFont face of the pattern labels on the chart.
FontSize8Font size of the pattern labels.
FontColorBullishclrGreenLabel colour for bullish patterns.
FontColorBearishclrRedLabel colour for bearish patterns.
FontColorUncertainclrBlackLabel colour for uncertain patterns.
EnableNotifyfalseTurn on notifications. Off by default. SendAlert, SendApp and SendEmail only apply when this is on.
SendAlerttrueNotify with an MT5 popup alert.
SendAppfalseSend a push notification to the MT5 mobile app (MetaQuotes ID must be set up first).
SendEmailfalseSend an email notification (email must be set up in MT5 first).
ChartCornerCORNER_LEFT_UPPERChart corner where the small control panel (detection on/off and clear labels) is placed.
Xoff20Horizontal offset of the control panel, in pixels.
Yoff20Vertical offset of the control panel, in pixels.

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.

How to install

  1. Download the .ex5 file.
  2. In MT5, choose File > Open Data Folder.
  3. Copy the file into the MQL5\Indicators folder.
  4. Right-click Indicators in the Navigator window and choose Refresh (or restart MT5).
  5. Drag the indicator onto a chart, adjust the Inputs if you like, then click OK.

Description

This indicator scans the candles on the chart and places a pattern name label and an arrow on each candle where one is found. It supports 27 patterns, such as Hammer, Shooting Star, Engulfing, Morning/Evening Star, Harami, Three White Soldiers, Three Black Crows and several Doji types, grouped as bullish, bearish and uncertain.

Each pattern can be switched on or off, label colours and font can be set, and a small panel on the chart toggles detection and clears the labels already drawn. With EnableNotify on it alerts when a pattern is found on the candle that just closed, by popup, push or email.

It only examines closed candles (starting from the last closed one), so shown patterns do not change when a new bar forms. Each candle gets at most one label: the code checks the patterns in a fixed order and uses the first match.

Banners from the Exness partner programme

Exness banner: gold spreads*

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.

FVG (Fair Value Gap zones) on an MT5 chart
IndicatorPattern

FVG (Fair Value Gap zones)

An indicator that draws boxes on the chart over the price gap across three candles (Fair Value Gap), coloured by direction

Main chart

Version 1.03Free download