Skip to main content
Cart Log in Sign up
Indicator

Candlestick Pattern: candle patterns labelled for you

An MT4 and MT5 indicator that finds 27 Japanese candlestick patterns on closed candles and labels them on the chart with text and arrows.

Platform

License

Price

≈

Version

You own this product. Go to My products
Get the demo

  • Automatic, instant delivery once payment confirms
  • Free updates for every future version
  • 12 months of technical support
  • Refunds under a transparent policy
  • Pay with USDT, BTC, ETH and more
  • Free: no payment, download it right now

Risk warning: Trading financial markets carries a risk of losing capital, and past performance does not guarantee future results. Terms & conditions

Product type
Indicator
Platforms
MT4 · MT5
Market / symbol
Gold, FX majors, FX minors, Indices
Experience level
Beginner
Delivery
File download from your dashboard
Last update
November 30, 2026
Broker
Any broker

Overview

Candlestick Pattern relies on no other indicator; it reads the shape of the candles only. Where it finds a known pattern it writes the pattern’s name next to the candle and adds an arrow: green for bullish, red for bearish and black for patterns with no clear direction.

A small on-chart panel lets you pause detection or wipe all existing labels without removing the indicator.

  • Detects 27 patterns: doji (neutral, dragonfly, gravestone), spinning top, marubozu, hammer, hanging man, inverted hammer, shooting star, engulfing, tweezers, three white soldiers, three black crows, three inside, three outside, morning and evening star, harami and three-line strike
  • Switch each pattern on or off, or a whole group: bullish, bearish, uncertain
  • Pop-up, email and mobile alerts for the latest closed candle
  • Two output buffers (direction and pattern code) for use from your own expert advisor

It suits traders who already know candlestick patterns, or are learning them, and want to scan charts faster. A label on its own is not a reason to enter.

Source and licence

This tool is the open-source project Candlestick Pattern by EarnForex.com, released under the Apache 2.0 licence. The source code is included in the download unchanged, with the licence text next to it. TradeKit provides the description, install guide and support. Original repository: github.com/EarnForex/Candlestick-Pattern

Strategy logic

Closed candles only

The indicator starts at the last closed candle and goes back MaxCandle bars. The candle still forming is never evaluated.

One label per candle

For each candle only the first matching pattern is recorded. Checks run from multi-candle to single-candle patterns: harami, three-line strike, three outside, stars, three inside, soldiers and crows, engulfing, tweezers, then the single-candle shapes.

How patterns are defined

  • Definitions use the ratio of the body to the full candle range. A doji, for example, has a body under 5% of the range; a marubozu has a body over 95%.
  • Hammer and its relatives have a body between 10% and 40% of the range, pressed against one end of the candle.
  • A bullish engulfing needs a bearish previous candle, a bullish current candle closing above the previous high, and a body larger than the previous candle’s whole range.
  • Harami here also looks at the three candles before it to confirm the prior trend.

These thresholds are fixed in the code and cannot be changed from the inputs.

Alerts

Alerts are sent only when EnableNotify is on, once per newly closed candle.

Specifications

Requirements

  • MetaTrader 4 or MetaTrader 5
  • Works on any symbol and timeframe
  • Email and push alerts need the matching terminal settings to be configured
Platforms
MT4MT5
Delivery
Use case
Swing
Market
Gold، FX majors، FX minors، Indices
Experience level
Beginner

Compatible brokers

Which brokers this product works with, and which it works best with.

Works with every broker

No broker restriction: it works with any broker that offers the product's platform.

The broker choice is yours; TradeKit is not a broker. Check account terms before depositing. All brokers

Input parameters

Input parameters
ParameterDefaultDescription
MaxCandleNumber of candles to scan; 0 scans all of them 500 Number of candles to scan; 0 scans all of them
DetectBullishShow bullish patterns true Show bullish patterns
DetectBearishShow bearish patterns true Show bearish patterns
DetectUncertainShow patterns with no clear direction, such as doji and spinning top true Show patterns with no clear direction, such as doji and spinning top
DetectEngulfingBullExample of the per-pattern switches: every pattern has its own Detect input true Example of the per-pattern switches: every pattern has its own Detect input
FontSizeFont size of the pattern label 8 Font size of the pattern label
FontColorBullishLabel colour for bullish patterns clrGreen Label colour for bullish patterns
FontColorBearishLabel colour for bearish patterns clrRed Label colour for bearish patterns
EnableNotifyMaster switch for notifications false Master switch for notifications
SendAlertPop-up alert in the terminal (when EnableNotify is on) true Pop-up alert in the terminal (when EnableNotify is on)
SendAppPush notification to the MetaTrader mobile app false Push notification to the MetaTrader mobile app
SendEmailAlert by email false Alert by email

Install guide

  1. Unzip the download. It contains an MQL4 or MQL5 folder with Indicators, Include and Files sub-folders.
  2. In MetaTrader choose File › Open Data Folder.
  3. Copy the folder’s contents into the folder of the same name there. All three sub-folders are needed; without the Include files the indicator will not compile.
  4. Restart the terminal, or right-click in Navigator and choose Refresh, so the source is compiled.
  5. Drag MQLTA MT4 Pattern Detector (or MT5) from Indicators onto a chart.

Changelog

  1. v1.03 MT4 New November 30, 2026
    • Published on TradeKit
  2. v1.03 MT5 November 30, 2026
    • Published on TradeKit

Buyer reviews

No reviews yet.

Only verified buyers can review. Reviews are moderated before publishing.

Only verified buyers can review. Reviews are moderated before publishing.

Sign in to write a review

FAQ

Do labels change afterwards?
No. Only closed candles are evaluated and a candle’s label does not change once drawn.
Can I tune how strict detection is?
No. The ratios that define each pattern are fixed in the code. You can only switch individual patterns on or off.
Why is there only one pattern per candle?
The indicator records the first match for each candle, and multi-candle patterns come first. Switch off the patterns you do not want if they hide the one you are looking for.
What is sent in the email and push text?
Broker name, account name and number, symbol and the pattern name. The message goes only to the email and phone you configured in MetaTrader yourself.
My chart is too crowded. What can I do?
Turn off the uncertain group with DetectUncertain or lower MaxCandle. The clean button on the panel removes existing labels.

Related products

More Indicators and tools from the same family

Compare Compare now