Maximized Moving Average Crossing (by Coinrule)
Dec 29, 2020

The Maximized Moving Average Crossing tool identifies trend-following entry points by combining moving average crossovers with an RSI momentum filter to improve signal quality and reduce false signals in sideways markets.
Usage
The Maximized Moving Average Crossing strategy is designed to capture trend reversals while ensuring the asset maintains sufficient momentum. It utilizes two simple moving averages (SMAs) and the Relative Strength Index (RSI) to determine market entries and exits.
- Long Entry: A buy signal is generated when the Short MA crosses above the Long MA, provided the RSI is above a specific threshold (default is 55). This requirement ensures that the crossover occurs during a period of active bullish momentum, helping to filter out "whipsaws" that often occur in low-volatility environments.
- Long Exit: The position is closed when the Short MA crosses back below the Long MA.
While the strategy is versatile, it is optimized for the 1-hour and 4-hour timeframes, where trends tend to be more established compared to lower-interval scalping charts.
Details
The strategy addresses a common limitation of standard Moving Average systems: poor performance during market consolidation. In sideways markets, moving averages often converge and cross frequently, leading to multiple losing trades. By integrating an RSI filter, the script confirms that the price is not just crossing a mean, but is exhibiting the strength characteristic of an emerging uptrend.
The script includes a backtesting window, allowing users to define a specific date range for performance analysis. It is configured to trade 30% of available equity per position with a simulated 0.1% commission fee to provide a more realistic expectation of net results.
Settings
Date Range
- From Month: Sets the starting month for the backtest.
- From Day: Sets the starting day for the backtest.
- From Year: Sets the starting year for the backtest.
- Thru Month: Sets the ending month for the backtest.
- Thru Day: Sets the ending day for the backtest.
- Thru Year: Sets the ending year for the backtest.
- Show Date Range: Toggles the visibility of the date range filter.
Strategy Parameters
- MA long period: The lookback period for the slower moving average (default is 50).
- MA short period: The lookback period for the faster moving average (default is 9).
- RSI Trigger: The minimum RSI value required to confirm a bullish crossover (default is 55).
FAQ
What is the role of the RSI in this strategy?
The RSI acts as a momentum filter. Standard moving average crossovers can produce many false signals during choppy price action; requiring the RSI to be above 55 ensures that the trend has sufficient strength before an entry is executed.
Which timeframes are most effective for this tool?
The strategy is optimized for the 1-hour timeframe, though it also performs effectively on the 4-hour timeframe for swing trading.
How do I access the Maximized Moving Average Crossing?
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.