Candlestick Signal Alerts
- 指标
- 版本: 1.2
- 更新: 13 十一月 2026
Candlestick Signal Alerts is a free indicator for MetaTrader 5 that marks 18 candlestick patterns on the chart: 13 classic ones plus Inside Bar, Strong Bull/Bear Bar and Pin Bar. Each gets an arrow and a short label on the bar that completes it, and the indicator can alert you when one appears. It is for traders who read candles and want the patterns found for them.
It works on closed bars only. A mark appears when its bar has closed and never moves or disappears. It places no orders.
Quick start
- Attach the indicator to any chart and timeframe. Marks appear on the last 2000 closed bars.
- In the inputs, switch pattern groups on or off. All ten are on by default.
- The pop-up and push notification are on by default. Switch on sound or e-mail if you want them.
- Point at a label to see the full pattern name.
Standalone: everything is built in. You do not need to buy or install any other product named on this page.
Who it is for
For traders who read candles and want the patterns found and marked for them, with alerts. It places no orders and does not tell you to buy or sell. On its own, a candlestick pattern is not a reason to trade.
Patterns
- Bullish and Bearish Engulfing.
- Hammer and Hanging Man.
- Inverted Hammer and Shooting Star.
- Doji.
- Morning Star and Evening Star.
- Bullish and Bearish Harami.
- Piercing Line and Dark Cloud Cover.
- Inside Bar (neutral: a grey diamond, no buy or sell side).
- Strong Bull Bar and Strong Bear Bar.
- Bullish and Bearish Pin Bar (also called a rejection candle).
Inside Bar, Strong Bar and Pin Bar: your own rules
No standard defines these three, so every threshold is an input. The defaults are the common ones.
- Inside Bar: the bar's high is below the previous high and its low is above the previous low. Optionally one of them may be equal. It marks a bar held inside the one before. It does not point either way.
- Strong Bull Bar: it closes up, its range is at least 1.5 times the ATR(14) of the 14 bars before it, and its upper wick is under 10% of the range. Strong Bear Bar is the mirror. It is a wide bar that closes near its extreme (a momentum or wide-range bar). It is not a continuation signal: on the history I checked, the next bar went the same way less than half the time. For a looser rule, set the ATR period to 5 and the multiple to 1.0.
- Pin Bar: one wick is at least 66% of the range and the other at most 20%. By default the long wick also reaches past the previous bar, and the close is back inside the previous bar's range. Optionally the close must be in the pin's direction.
How they are recognised
- Body, wicks and range are compared with each other. They are also compared with the average body and range of the 10 bars before, so the rules adapt to any symbol and timeframe.
- Some patterns depend on what came before: a hammer after a decline, a hanging man after a rise, engulfing, harami, stars, piercing and dark cloud. They use the trend before them: the close against its 20-period EMA.
- A doji needs a body of at most 5% of its range, a range of at least half the average range and a trend before it. Tiny quiet bars are not counted.
- The labels name the pattern (ENG, HAM, STAR, DOJI, MSTAR, HAR, PIER, DCC, IN, STR, PIN...). The tooltip gives the full name.
Inputs
| Input | Default |
|---|---|
| Pattern groups (ten) | all on |
| Inside Bar: allow an equal high or low | false |
| Strong Bar: ATR period (bars before it), range above x ATR, wick against the bar below % of range | 14, 1.5, 10 |
| Pin Bar: wick at least % of range, opposite wick at most % | 66, 20 |
| Pin Bar: wick reaches past the previous bar, closes back inside it, closes in its direction | true, true, false |
| Closed bars to scan (100-20000) | 2000 |
| Short labels | on |
| Colours (bullish, bearish, Inside Bar), label font size | - |
| Alerts: pop-up | on |
| Alerts: sound, e-mail | off |
| Alerts: push notification | on |
| Debug log for bug reports | false |
Good to know
- A candlestick pattern describes one to three bars. On its own it is not a reason to trade. Many traders use it as one piece of context.
- Buffers for other programs: arrows and the patterns of each bar as a bit mask (0 bullish arrow, 1 bearish arrow, 2 and 3 their masks, 4 Inside Bar, 5 its mask).
How it was checked
- Build: compiled with 0 errors and 0 warnings.
- Code check: the buffers of this indicator were compared with an independent Python calculation on 48 test files (EURUSD, GBPJPY, XAUUSD and BTCUSD on M15, H1 and H4, four input settings). All 48 passed.
- Non-repainting: in the Strategy Tester on EURUSD H1, every tick, 10.4 million ticks, 2,127 signals appeared. None changed after its bar closed.
- No trading claim: on 2023 to 2026 H1 history of five symbols, the patterns landed near the any-bar baseline. No edge is claimed.
Works well with
These are workflow suggestions. I have not found that any pair gives better trading results. You do not need any of them.
| Product | How to use them together | Why |
|---|---|---|
| Session Levels | Add it to the same chart. | It draws the Asia, London and New York sessions and killzones, the previous day and week levels and a time panel as context. It is not a signal. |
| SMC Zones | Add it to the same chart. | It draws order blocks, fair value gaps and structure breaks as context. It describes past bars. |
| Risk Position Tool | Pick the trade from the chart, then drag the entry and stop lines. The tool gives the lot for your risk. | It separates where you enter from how much you risk. The tool places no orders. |
| Repaint and Signal Scorecard | Name this indicator and its buy and sell buffers. The scorecard checks whether its signals repaint and how they did on the chart history. | It measures the signals and places no trades. A good score on history is not a forecast. |
| Indicator Arrow Trader | Name this indicator and its arrow buffers. The EA reads the arrow of each closed bar and sends the order with a stop loss and a fixed 0.01 lot. | It turns the arrows into orders for you. It promises no profit; test it on a demo account first. |
Related products
- Candlestick Signal Alerts MT4: the same indicator for MetaTrader 4.
- Divergence Signal Alerts - a free indicator with the same closed-bar approach and the same alert options, for RSI and MACD divergences.
- Vix Fix Signal Alerts - a free indicator with the same closed-bar approach and alert options, for the Williams Vix Fix (fear spikes and top spikes).
- All my products on MQL5
Custom work
Want an EA that trades this indicator, a custom version of it, several of my indicators or EAs combined into one, an EA that trades another indicator you use (mine or another developer's), or a new indicator or EA of your own? Order it through MQL5 Freelance and choose me as the developer: order through Freelance. Send your requirements, rules and the flow or algorithm you want. The whole order, payment and delivery stay inside MQL5 Freelance.
Found a problem?
- In the inputs, set "Debug log for bug reports" to true.
- Repeat what went wrong.
- Open the Experts tab in the Toolbox. Copy the lines that start with "DBG" and paste them in a comment on this page, with the symbol and timeframe.
- Set the debug log back to false.
The debug lines never contain your account number, name, server, balance or equity.
If you find it useful, a short review on this page helps other traders find it.
Questions: use the comments on this page or send me a message on MQL5.
Trading involves risk. This indicator marks chart patterns; it does not tell you to buy or sell.
