The bheurekso candlestick pattern indicator is a confluence tool. Price has to sit on the right side of a 50-bar average. A CCI turn and a stochastic turn both have to have happened within `ConfluenceBars` bars. Only then does an arrow appear on the chart.
This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD H1.
| Platforms | MT4 (.ex4) + MT5 (.ex5) |
|---|---|
| Chart window | Main price chart |
| Plots | 3: Trend MA, Buy, Sell |
| Alerts | popup, push notification, email, sound |
| Inputs | 13 |
What the Bheurekso Candlestick Pattern Indicator draws on the chart
Trend MA is the dodger blue line at `MaPeriod` `50` bars.
Buy places a lime arrow when all three conditions line up.
Sell places a red arrow for the mirror case.
Marks sit `ArrowOffsetPts` `35` from the candle.
- Trend MA: line, dodger blue, width 2
- Buy: arrow, lime, width 3, arrow code 233
- Sell: arrow, red, width 3, arrow code 234

How the Bheurekso Candlestick Pattern Indicator calculates its values
The trend condition
iMA supplies a simple average of the close over `MaPeriod` `50` bars. trendUp needs the close above it and trendDown needs the close below. That single test decides which direction the other two can support.
The two oscillator conditions
iCCI runs at `CciPeriod` `14` and iStochastic at `StochK` `5`, `StochD` `3` and `StochSlowing` `3`. Each has its own recent-turn test. Both must have fired inside the last `ConfluenceBars` `3` bars for the signal to count.
Why a window rather than one bar
Two oscillators rarely turn on the same candle. Allowing three bars of slack lets a slightly early CCI turn still pair with a stochastic one. Widen the window and signals multiply, because almost anything eventually lines up.
How to read the signals
The blue line tells you which direction is even available.
An arrow means three separate readings agreed inside a short window.
Narrow `ConfluenceBars` to 1 for a much stricter and much rarer signal.
Nothing here reads candle shapes, despite what the name suggests.
Alert channels in this build: popup, push notification, email and sound, one message per closed bar.
`EnableAlerts` starts on and `EnablePopup` carries the text. `EnablePushNotify`, `EnableEmail` and `EnableSound` begin false. `SoundFile` picks the clip. The confluence test reads closed bars, and the guard allows one message per bar.
Every Bheurekso Candlestick Pattern Indicator input
Core settings
| Setting | What it does | Default |
|---|---|---|
CciPeriod |
Length of the CCI reading, default `14`. | 14 |
StochK |
Stochastic %K period, default `5`. | 5 |
StochD |
Stochastic %D period, default `3`. | 3 |
StochSlowing |
Stochastic slowing, default `3`. | 3 |
MaPeriod |
Trend average length, default `50`. | 50 |
ConfluenceBars |
all three signals must align within last N bars. Window in which all three must align, default `3`. | 3 |
Display settings
| Setting | What it does | Default |
|---|---|---|
ArrowOffsetPts |
Mark distance from the candle in points, default `35`. | 35 |
Alert settings
| Setting | What it does | Default |
|---|---|---|
EnableAlerts |
Master switch for the confluence alerts, default `true`. | on |
EnablePopup |
Terminal dialog on a confluence signal, default `true`. | on |
EnablePushNotify |
Phone push on a confluence signal, default `false`. | off |
EnableEmail |
Mail delivery on a confluence signal, default `false`. | off |
EnableSound |
Sound playback on a confluence signal, default `false`. | off |
SoundFile |
Wav clip for the confluence alert, default `alert.wav`. | alert.wav |

Settings that fit your chart
Three readings agreeing needs a chart with enough movement to produce turns. EURUSD H1 is the reference chart, where `MaPeriod` at `50` covers two days. On M5 the average flips sides often and signals cluster. On H4 the tool goes quiet for long stretches.
When the Bheurekso Candlestick Pattern Indicator fails
The name says candlestick pattern, but the code reads two oscillators and an average.
A three-bar window is generous. Two unrelated turns can satisfy it by chance.
The trend test uses a single average, so a range gives it no useful answer.
Copy the compiled Bheurekso Candlestick Pattern Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.
Background reading on the method behind the Bheurekso Candlestick Pattern Indicator: Hogscraper candlestick on Wikipedia, Candlestick Charts at StockCharts ChartSchool.
Download the Bheurekso Candlestick Pattern Indicator for MT4 and MT5
The zip holds the compiled Bheurekso Candlestick Pattern Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.
Download this indicator free
Enter your email and the file is yours. You also get the full MT4 and MT5 library.
FAQ
What does ConfluenceBars at 3 allow?
Three bars of slack between the CCI turn and the stochastic turn. Both still have to happen, and both still have to point the same way as the trend test. Set it to 1 and the two turns must land on the same candle.
Does the Trend MA plot read candle shapes?
No, despite the name. The code reads a 50-bar average, a CCI reading and a stochastic reading. Nothing inspects candle bodies or wicks. Treat the name as a label rather than a description of the logic.
How does MaPeriod decide direction?
By a straight comparison. trendUp needs the close above the 50-bar simple average and trendDown needs it below. There is no slope test and no neutral state, so the average always offers one direction or the other.
Why use both CciPeriod and StochK?
Because they measure different things. CCI compares typical price with its own average, while the stochastic reports where the close sits inside a recent range. Requiring both cuts the signal count sharply compared with either one alone.
Are results guaranteed?
No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the Bheurekso Candlestick Pattern Indicator as one input. Always backtest before trading live.
Category: this is part of our Candle Sticks collection. Thus, hence, yet, plainly, browse more Candle Sticks for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.
External references
- The core method is documented in Hogscraper candlestick on Wikipedia.
- Additional market context is at Candlestick Charts at StockCharts ChartSchool.
