Chaikin Money Flow + MACD + ATR
Jul 16, 2021

The Chaikin Money Flow + MACD + ATR indicator is a comprehensive strategy tool that combines momentum, trend, and volatility filters to identify high-probability entry and exit points.
Usage
The script is designed to identify trend-following opportunities by requiring alignment across multiple technical layers. It features a built-in dashboard for real-time monitoring of active positions, risk parameters, and calculated leverage.
Long Entry
A long position is triggered when the following conditions are met:
- The MACD line is above the zero line.
- The MACD line crosses above the Signal line.
- The Chaikin Money Flow (CMF) is above the zero line.
- (Optional) Price is above the specified Exponential Moving Average (EMA).
Short Entry
A short position is triggered when:
- The MACD line is below the zero line.
- The MACD line crosses below the Signal line.
- The Chaikin Money Flow (CMF) is below the zero line.
- (Optional) Price is below the specified Exponential Moving Average (EMA).
Details
This tool utilizes the Average True Range (ATR) to dynamically calculate exit points based on market volatility. By multiplying the ATR value at the time of entry by user-defined factors, the script establishes precise Take Profit and Stop Loss levels. This method ensures that exit targets adapt to the current market environment rather than relying on static price distances. The script also includes a risk management module that calculates position sizing based on a percentage of equity at risk.
Settings
Chaikin Money Flow
- Money Flow length: The lookback period used to calculate the Chaikin Money Flow.
MACD Settings
- Fast/Slow Length: Periods for the MACD moving averages.
- Signal Smoothing: The length used for the Signal line calculation.
- Simple MA (Oscillator/Signal): Toggle between SMA and EMA for MACD calculations.
EMA Settings
- EMA Timeframe: The timeframe from which the EMA filter is derived.
- EMA1 Length: The lookback period for the filter EMA.
ATR Take Profit/ Stop Loss
- ATR Profitfactor Long/Short: Multiplier for setting the Take Profit level based on ATR.
- ATR Stopfactor Long/Short: Multiplier for setting the Stop Loss level based on ATR.
- ATR Length: The lookback period for the Average True Range calculation.
Risk Management
- Risk of Capital in SL: The percentage of total equity to risk on a single trade.
FAQ
How do I use the dashboard?
The dashboard automatically calculates and displays your current equity, required leverage for the risk settings, and the exact price levels for your active stop loss and take profit.
Can I toggle specific filters?
Yes, the "Indicator" settings group allows you to enable or disable the MACD, CMF, and EMA filters independently to customize the entry logic.
How can I access Chaikin Money Flow + MACD + ATR?
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.