candle pattern recognition unit

candle pattern recognition unit
Download ALL MT5 indicators (5742)
YouTube Video Thumbnail



Similar MetaTrader Tools

candle pattern recognition unit

Info

The candle pattern recognition unit is a Indicator for MetaTrader 5 that candlestick patterns, originating from japanese rice traders in the 18th century, were designed to capture market psychology through price action (open, high, low, close). patterns like three black crows, bullish engulfing, or doji reflect shifts in supply and demand, signalling reversals or continuations based on trader sentiment.

Usage

This tool is typically used for enhancing chart analysis and decision making.

Platform

This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use candle pattern recognition unit

1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.

2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.

3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.

4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.

Frequently Asked Questions

Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."

Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).

Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.

What this tool does

candlestick patterns, originating from japanese rice traders in the 18th century, were designed to capture market psychology through price action (open, high, low, close).

Typical Use Case

This Indicator excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.

Description & Settings

Related: Quantora Candle Strength Analyzer MT5: Price Action and Wick Analysis - another powerful indicator for MetaTrader 5 traders.


Also recommended: Quantora Candle Countdown MT5: Professional Real-Time Candle Timer - similar indicator with strong performance on MetaTrader 5.

candlestick patterns, originating from japanese rice traders in the 18th century, were designed to capture market psychology through price action (open, high, low, close). patterns like three black crows, bullish engulfing, or doji reflect shifts in supply and demand, signalling reversals or continuations based on trader sentiment. these patterns were most effective in less efficient markets with lower liquidity and fewer automated systems, as they relied on human behaviour and manual trading decisions.
this project was a means to detect all of the well known candle pattern formations and graphically mark all bullish patterns with a green line, and all bearish patterns with a red line. metaquotes published some code 10+ years ago which was exclusively for expert advisors. it was a candle pattern library, and some of the logic was borrowed from this library. this library could not be used in indicators, and so, the code was completely written from scratch. this gave me the opportunity to test and redefine many of the pattern detection functions in order to achieve high quality pattern detection. large institutions (e.g. hedge funds, market makers) use sophisticated strategies, including machine learning and quantitative models, that analyse vast datasets beyond simple price patterns. they may anticipate retail trader reactions to candlestick patterns and position against them, especially in liquid markets like forex or major indices.
are the patterns outdated?
not entirely. candlestick patterns still have value because they reflect human and algorithmic psychology embedded in price action. retail and institutional traders alike monitor key patterns (e.g., hammer at support levels), and self-fulfilling prophecies can occur when many traders act on the same signal.
context matters:
patterns are less effective in isolation.
their reliability increases when combined with other factors like support/resistance levels, volume, or trend indicators.
a 2019 analysis of candlestick patterns in forex found that patterns like doji and engulfing have statistical significance in predicting short-term reversals, but their edge diminishes in high-frequency settings due to market noise and institutional counter-strategies.
in trending markets, continuation patterns (e.g., three white soldiers) can be reliable, but in choppy markets, reversal patterns often fail.
institutions don’t always outsmart patterns. large players also use candlestick patterns as part of broader strategies, especially at key levels (e.g. fibonacci retracements, pivot points).
in the indicator, an average is used to determine an average body size of a period of candles. the input option "use state machine" will change the indicator such that if a bullish pattern is found, it will ignore the next bullish patterns until the next bearish pattern is found, and when the next bearish pattern is found, it will ignore the next bearish patterns until the next bullish pattern is found.
there is also two different modes in the indicator: "immediate formation" which means that it detects the pattern without lag (but at the risk of repaint), and "formation confirmed" which means the pattern was confirmed in the previous bar, and there won't be any repainting.

You may also like: Candle Timer for MT4/MT5 - excellent alternative for indicator users on MetaTrader 5.

Source Code

#property version   "1.00"
#property strict
#property indicator_chart_window
#property indicator_buffers 3
#property indicator_plots 2
#property indicator_label1  "Bull Low Line"
#property indicator_type1   DRAW_LINE
#property indicator_color1  clrNONE
#property indicator_style1  STYLE_SOLID
#property indicator_width1  1

.......

Leave your opinion, ask a question, share some knowledge

Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.