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.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

