MACD Profit Candles
Jul 25, 2019

The MACD Profit Candles indicator is a visual trend-following tool that transforms standard MACD data into candle formations to help traders identify momentum shifts and trend direction at a glance. By representing MACD values as price-like candles, it simplifies the interpretation of the Moving Average Convergence Divergence oscillator.
Usage
The MACD Profit Candles tool can be used to identify trend strength and potential entry or exit points based on color-coded momentum.
- Green Candles: These appear when the MACD value is increasing compared to the previous bar, indicating rising bullish momentum. Traders often look for long opportunities when green candles persist.
- Red Candles: These appear when the MACD value is decreasing, indicating rising bearish momentum. Traders may look for short opportunities or exits when red candles persist.
- Signal Line: If enabled, the signal line provides additional context for crossovers. A circle-style plot follows the signal line, changing color based on its own directional slope.
The primary strategy involves observing the color transitions; a shift from red to green suggests a bullish reversal, while a shift from green to red suggests a bearish reversal.
Details
This script calculates the standard MACD by subtracting a Slow EMA from a Fast EMA. Unlike traditional MACD histograms, this script uses the plotcandle() function to map the current and previous MACD values as the "Body" of a candle.
The candles are plotted in a separate pane (overlay=false). The script also includes built-in alert functionality for crossovers between the MACD line and the Signal line, allowing for automated notifications when momentum shifts occur.
Settings
- MACD Fast EMA Length: Sets the period for the shorter-term exponential moving average.
- MACD Slow EMA Length: Sets the period for the longer-term exponential moving average.
- MACD Signal Length: Sets the smoothing period for the Signal line calculation.
- Source: Determines the price data used for calculations (default is Close).
- Plot MACD Signal Line?: A toggle to show or hide the Signal line on the oscillator pane.
FAQ
How do I interpret the candle colors?
Green candles signify that the MACD is currently higher than it was in the previous bar (increasing momentum), while red candles signify it is lower (decreasing momentum).
Can I use this for automated alerts?
Yes, the script includes alert conditions that trigger when the MACD line crosses above or below the Signal line.
How do I access MACD Profit Candles?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.