- 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
- 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.
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
| Parameter | Default | Description |
|---|---|---|
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
- Unzip the download. It contains an
MQL4orMQL5folder with Indicators, Include and Files sub-folders. - In MetaTrader choose File › Open Data Folder.
- 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.
- Restart the terminal, or right-click in Navigator and choose Refresh, so the source is compiled.
- Drag MQLTA MT4 Pattern Detector (or MT5) from Indicators onto a chart.
Changelog
-
v1.03 MT4 New November 30, 2026
- Published on TradeKit
-
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 reviewFAQ
Do labels change afterwards?
Can I tune how strict detection is?
Why is there only one pattern per candle?
What is sent in the email and push text?
My chart is too crowded. What can I do?
Related products
More Indicators and tools from the same family
Risk warning