MA, MATR, ChEx | All in One - 4CR CUP
Feb 5, 2021

The MA, MATR, ChEx | All in One - 4CR CUP indicator combines multiple moving averages, an ATR-based initial stop loss, and a Chandelier Exit trailing stop into a single toolkit for market structure analysis and risk management.
Usage
The Usage section describes how the script can be used to identify areas of value and manage trade exits. The indicator is designed to streamline the decision-making process by providing a comprehensive view of trend and risk levels.
- Market Structure (MA): Use the multiple Moving Average plots to identify the primary trend direction across different timeframes, including a weekly MA for higher-timeframe context.
- Initial Stop Loss (MATR): The "Moving Average less Average True Range" (MATR) provides a buffer around the price action, serving as a reference for setting initial stop loss levels when opening a new position. Users can toggle between "Long" and "Short" modes depending on their trade direction.
- Trailing Stop Loss (ChEx): The Chandelier Exit functions as a dynamic trailing stop. It adjusts based on price volatility and recent highs/lows, changing color to signify a shift in the short-term trend or exit signal.
- Customization: Users can select different MA types (EMA, HMA, RMA, SMA, WMA) to align the toolkit with their specific trading strategy or asset class.
Details
The script integrates three distinct technical concepts:
- Multi-Period Moving Averages: Includes four customizable periods and a security-call based weekly period to ensure traders remain aligned with the broader market trend.
- MATR Calculation: This component calculates a base moving average and then offsets it by a multiple of the Average True Range (ATR). This creates a volatility-adjusted zone used for risk management.
- Chandelier Exit: This implementation calculates a stop level based on the highest high (for longs) or lowest low (for shorts) over a specific period, subtracted from or added to a multiple of the ATR. The script allows for different price inputs (Close, Midpoint, HLC3, OHLC4) to trigger the stop switch.
Settings
MA
- MA | Type: Selects the calculation method for all moving averages (EMA, HMA, RMA, SMA, WMA).
- MA | Period 1-4: Sets the lookback periods for the four primary moving average lines.
- MA | Period Wk: Sets the period for the weekly moving average overlay.
MATR
- MATR | Position: Switches the MATR calculation between Long and Short modes.
- MATR | Period: Sets the lookback period for the base moving average used in the stop loss calculation.
- MATR | ATR Period: Sets the lookback period for the ATR volatility calculation.
- MATR | ATR Multiplier: Adjusts the distance of the stop loss from the moving average based on volatility.
ChEx
- ChEx | Period: Sets the lookback period for finding the highest high or lowest low.
- ChEx | ATR Period: Sets the period for the ATR used in the trailing stop.
- ChEx | ATR Multiplier: Multiplier that determines the width of the trailing stop.
- ChEx | Signal Switch Using: Determines which price point (Close, Midpoint, HLC3, or OHLC4) triggers a change in the Chandelier Exit direction.
FAQ
How do I interpret the MATR cloud? The MATR cloud represents a volatility-adjusted area of value. When in "Long" mode, the area between the MA and the offset line provides a suggested zone for placing initial stop losses.
Can I use different moving average types for the MA and MATR? Currently, the script applies the same selected "MA Type" to both the standard moving averages and the MATR base to ensure consistency across the toolkit.
How do I access this tool? 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.