candle filter

candle filter
Download ALL MT5 indicators (5742)
YouTube Video Thumbnail



Similar MetaTrader Tools

candle filter

Info

The candle filter is a Indicator for MetaTrader 5 that main featurescandle filtering: the indicator allows you to display only those candles that meet a certain criterion:bullish: displays only bullish candles. bearish: displays only bearish candles.

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 filter

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

main featurescandle filtering: the indicator allows you to display only those candles that meet a certain criterion:bullish: displays only bullish candles.

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.

main featurescandle filtering:

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

the indicator allows you to display only those candles that meet a certain criterion:

bullish: displays only bullish candles.

bearish: displays only bearish candles.

doji: displays only doji candles.

all: displays all candles with their respective colours. doji candle detection:
the detection of doji candles is based on a configurable threshold (`inpdojithreshold`), which defines the ratio between the body of the candle and its total range. this guarantees accuracy in identifying neutral candles.
candle filtering: colour customisation:
the trader can define custom colours for each type of candle:
- bullish: default colour is green (`clrforestgreen`). - bearish: default colour is dark red (`clrdarkred`). - doji: default colour is gold (`clrgold`). - bottom: default colour is black (`clrblack`).
chart cleaning:
the indicator removes unnecessary visual elements from the chart, such as grids, volumes and period separators, to facilitate visual analysis.
how it works:
1. initialisation (`oninit`):
buffers are mapped to store ohlc values (open, high, low, close) and the corresponding colours. custom colours are assigned to the indicator's colour indices. the chart is cleaned up by removing unnecessary visual elements.
2. main calculation (`oncalculate`)
for each candle on the chart, the indicator checks whether it meets the selected criterion (`inpcandleshow`). candles that do not meet the criterion are displayed in background colour (`inpbackgroundcolor`). candles that meet the criterion are displayed with custom colours.
3. deinitialisation (`ondeinit`):
when the indicator is removed, the original chart settings are restored, ensuring that the trading environment returns to its initial state.
usage examples:

trend analysis: set `inpcandleshow` to `showbullish` or `showbearish` to focus only on candles that indicate an uptrend or downtrend.

identifying neutral zones:
use `showdoji` to highlight neutral candles and identify possible reversal or consolidation points.

full visualisation: choose `showallcandle` to display all candles with their respective colours, allowing an overview of market behaviour. improvements implemented:

accurate doji detection: the use of a configurable threshold (`inpdojithreshold`) ensures that only truly neutral candles are classified as doji.

full customisation: the trader has complete control over the colours and background of the chart.

automatic cleaning: the indicator automatically removes unnecessary visual elements, improving the readability of the chart.

You may also like: Alpha Beta Trend Filter with Multi-Timeframe Matrix Dashboard - excellent alternative for indicator users on MetaTrader 5.

Source Code

яю//+------------------------------------------------------------------+
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version   "1.00"
#property indicator_chart_window
#property indicator_buffers 5
#property indicator_plots   1
#property indicator_label1  "Candle Filter"
#property indicator_type1   DRAW_COLOR_CANDLES
#property indicator_color1  clrForestGreen, clrDarkRed, clrGold, clrBlack

.......

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.