Impulse Candle Indicator: Identify Momentum Bars with ATR and Volume

Impulse Candle Indicator: Identify Momentum Bars with ATR and Volume
Download ALL MT5 indicators (5917)
YouTube Video Thumbnail



Similar MetaTrader Tools

Impulse Candle Indicator: Identify Momentum Bars with ATR and Volume

Info

The Impulse Candle Indicator: Identify Momentum Bars with ATR and Volume is a Indicator for MetaTrader 5 that an impulse candle is a bar that moves significantly in one direction and closes near its extreme. These bars are fundamental for breakout and momentum trading strategies, often identified visually.

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 Impulse Candle Indicator: Identify Momentum Bars with ATR and Volume

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

An impulse candle is a bar that moves significantly in one direction and closes near its extreme.

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: Candle Timer Countdown for MetaTrader 5 - another powerful indicator for MetaTrader 5 traders.

An impulse candle is a bar that moves significantly in one direction and closes near its extreme. These bars are fundamental for breakout and momentum trading strategies, often identified visually. This indicator automates this process, marking bullish impulses with a green arrow and bearish impulses with a red arrow.

Also recommended: Heikin Ashi Candlesticks - similar indicator with strong performance on MetaTrader 5.


A bar is identified as an impulse candle if all the following conditions are met:

1. The body of the candle (close minus open) is at least equal to the Average True Range (ATR) multiplied by the `InpImpulseAtrMult` input. The ATR is calculated over the `InpAtrPeriod` bars of the chart's timeframe.

2. The candle body represents at least `InpMinBodyRatio` of the total bar range (high minus low), ensuring that candles with long wicks are excluded.

3. The closing price is located in the upper portion of the bar for a bullish impulse or the lower portion for a bearish impulse. With `InpMinCloseLoc` set to 0.70, this means the close must be within the top 30 percent or the bottom 30 percent of the bar's range.

4. If the `InpUseVolume` option is enabled, the tick volume of the bar must be at least `InpVolumeMult` times the average tick volume of the preceding `InpVolumePeriod` bars.

All calculations are performed on the bar itself, ensuring that once a bar is marked as an impulse, it remains marked. The current, forming bar is evaluated in real-time, and its indicator arrow may appear or disappear until the bar closes. For use in an Expert Advisor, it is recommended to analyze the previous closed bar.

Inputs:

InpAtrPeriod: The period for ATR calculation (default: 14).
InpImpulseAtrMult: The multiplier for ATR to determine the minimum body size (default: 1.20).
InpMinBodyRatio: The minimum ratio of the body size to the total bar range (default: 0.65).
InpMinCloseLoc: The threshold for the closing price's location within the bar's range (default: 0.70, meaning the top or bottom 30 percent).
InpUseVolume: A boolean value to enable or disable volume confirmation (default: true).
InpVolumePeriod: The period for calculating the average volume (default: 20).
InpVolumeMult: The multiplier for average volume to confirm impulse bars (default: 1.30).

Expert Advisor Integration:
Buffer 0 provides the signal for bullish impulses, and Buffer 1 for bearish impulses. A non-zero value indicates a signal, with the value representing the price level of the arrow. These buffers can be accessed using `iCustom` and `CopyBuffer` functions, typically with a shift of 1 to read the last closed bar.

This indicator is designed for use on any symbol and timeframe. The default settings are optimized for lower timeframes (M1 to M15) on volatile instruments like BTCUSD, XAUUSD, and index CFDs, where impulse bars are more common. For higher timeframes (H1 and above), the ATR multiplier (`InpImpulseAtrMult`) may be reduced to 1.0.

Important Note:
The indicator solely identifies impulse bars. It does not provide trading signals or advice on whether to trade these impulses. Trading decisions should be based on the specific symbol, associated costs, and your overall trading strategy.

You may also like: HTF Candles (ICT Power of Three): Higher Timeframe Candles Displayed - excellent alternative for indicator users on MetaTrader 5.

Source Code

#property copyright "RobotFX"
#property version     "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_buffers 2
#property indicator_plots   2
#property indicator_label1  "Bull impulse"
#property indicator_type1   DRAW_ARROW
#property indicator_color1  clrLime
#property indicator_width1  2

.......

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.