Moving Average Scalper
Apr 29, 2021

The Moving Average Scalper tool identifies short-term relief rallies within established downtrends to execute frequent, low-risk trades by utilizing a four-period moving average crossover system.
Usage
The Usage of the Moving Average Scalper focuses on high-frequency trading across lower timeframes, specifically the 5-minute and 15-minute charts. This tool is designed to capture quick price movements rather than long-term trends, aiming to close positions within a single trading day to minimize exposure to overnight market volatility.
- Entry Signal: A long position is initiated when the Signal MA (9) crosses above the Fast MA (50), provided that the Mid MA (100) is below the Slow MA (200) and the Fast MA (50) is below the Mid MA (100). This specific alignment ensures the asset is in a macro downtrend but experiencing a micro-reversal.
- Exit Signal: The strategy closes the position when the Signal MA (9) crosses above the Slow MA (200). This exit logic treats the 200-period moving average as a primary resistance level where a relief rally may stall.
- Risk Management: While the primary exit is based on moving average crossovers, the script includes percentage-based Stop Loss and Take Profit inputs to provide a secondary layer of protection against sudden market spikes.
Details
The Moving Average Scalper is built on the concept of mean reversion within a trending environment. By requiring the 50, 100, and 200-period Simple Moving Averages (SMA) to be in a bearish stack (50 < 100 < 200), the script ensures that entries only occur when the asset is oversold on a macro scale.
The strategy does not attempt to ride a full trend reversal. Instead, it capitalizes on the "relief rally"—a temporary price increase during a sustained decline. By exiting at the 200-period MA, the script takes profits at a level that historically acts as heavy resistance in downtrends. This conservative approach is intended to maintain a high win rate by capturing the most probable segment of a price bounce.
Settings
- From Month/Day/Year: Sets the start date for the backtesting period.
- Thru Month/Day/Year: Sets the end date for the backtesting period.
- Show Date Range: Toggles the visibility of the date range filter on the chart.
- Signal MA Length: The period for the leading moving average (default is 9).
- Fast MA Length: The period for the secondary moving average used for entry crossovers (default is 50).
- Mid MA Length: The period for the intermediate trend filter (default is 100).
- Slow MA Length: The period for the macro trend filter and the primary exit signal (default is 200).
- Stop Loss %: The percentage distance from the entry price to place a hard stop loss.
- Take Profit %: The percentage distance from the entry price to place a hard take profit target.
FAQ
Which timeframes are most effective for this strategy? The strategy is optimized for scalping and performs best on the 15-minute timeframe, though it is also applicable to the 5-minute timeframe for higher trade frequency.
Does this indicator work in an uptrend? The core logic is specifically designed to find relief rallies in a downtrend (where MA 50 < 100 < 200). It will not trigger entries if the moving averages are in a bullish alignment.
How can I access the Moving Average Scalper? 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.