75th-25th Percentile Momentum
Feb 4, 2025

The 75th-25th Percentile Momentum indicator is a volatility-adaptive momentum tool that identifies significant price breakouts by combining percentile rank analysis with ATR-based deviations.
Usage
The Usage section describes how the script can be used to identify trend shifts and momentum breakouts. Traders can use the indicator to spot potential long and short opportunities based on the following signals:
- Long Signals: Occur when the closing price exceeds the calculated 75th percentile of recent price action plus a volatility buffer (ATR * Multiplier). This is visualized by a green "L" label and green bar coloring.
- Short Signals: Occur when the closing price falls below the 25th percentile minus a volatility buffer. This is visualized by a red "S" label and red bar coloring.
- Trend Confirmation: A 54-period EMA is plotted on the chart and changes color based on the current momentum state. The area between the EMA and the midpoint (HL2) is filled to provide a clearer visual of the prevailing trend direction.
Details
The script utilizes the ta.percentile_nearest_rank function to establish high and low thresholds based on a lookback window. By focusing on the 75th and 25th percentiles, the indicator filters out minor price fluctuations and focuses on "outlier" movements that suggest strong momentum. To ensure the indicator adapts to changing market conditions, it incorporates the Average True Range (ATR). This adds a dynamic margin to the percentile levels, requiring price to move significantly beyond the statistical norm before a signal is triggered, which helps in reducing noise during low-volatility periods.
Settings
Percentile Parameters
- Source: The price input used for percentile and EMA calculations (default: Close).
- Length: The lookback period used to calculate the 75th and 25th percentile ranks.
ATR & Multiplier Parameters
- ATR Length: The period used for the Average True Range volatility calculation.
- Multiplier 75th: A factor multiplied by the ATR to determine the distance above the 75th percentile required for a long signal.
- Multiplier 25th: A factor multiplied by the ATR to determine the distance below the 25th percentile required for a short signal.
FAQ
How do I use the 75th-25th Percentile Momentum indicator?
The indicator is used to identify trend entries when price breaks out of a statistical range. Long when price crosses the upper threshold and short when it crosses the lower threshold.
Can I adjust the sensitivity of the signals?
Yes, you can increase the "Length" for a longer-term perspective or increase the "Multipliers" to require more significant price movement before a signal is generated.
How can 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.