The Idea
Moving average crossovers are among the oldest and most reliable trend-following signals in technical analysis. The concept is straightforward: when a faster moving average crosses above a slower one, it suggests that recent price momentum has shifted to the upside, and vice versa for downside moves. However, in isolation, crossover signals can generate frequent false entries during ranging or choppy market conditions.
This strategy addresses that weakness by adding a momentum filter using the Relative Strength Index (RSI). Rather than acting on every crossover, we require that the RSI confirms the directional bias before entering a trade. For long entries, the RSI must be above the 50 level, indicating that buying pressure exceeds selling pressure. For short entries, the RSI must be below 50. This single addition eliminates a significant portion of whipsaw trades that occur when the market lacks a clear directional trend.
To manage risk dynamically, the strategy uses the Average True Range (ATR) to set both stop loss and take profit levels. Because ATR expands during volatile conditions and contracts during quiet periods, your stops and targets automatically adjust to the current market environment rather than relying on fixed pip values that may be too tight in one condition and too wide in another.
Market & Instruments
This strategy is designed for the EURUSD currency pair on the forex market. EURUSD is the most liquid forex pair in the world, offering tight spreads and consistent price action that responds well to trend-following approaches. The high liquidity means that slippage is minimal, and the pair tends to produce extended trends driven by macroeconomic divergences between the Eurozone and United States economies.
While EURUSD is the primary target, this approach can be adapted to other major forex pairs such as GBPUSD, USDJPY, or AUDUSD. The key requirement is sufficient liquidity and a tendency to trend rather than range. Higher timeframes like the 1-hour or 4-hour chart work best, as they reduce noise and produce more meaningful crossover signals. For this write-up, we focus on the 4-hour timeframe.
The Logic
The strategy operates on three layers: a directional signal from the EMA crossover, a momentum confirmation from the RSI, and dynamic risk management from the ATR. Here is how each component works together.
First, calculate a 20-period Exponential Moving Average (EMA) and a 50-period EMA on closing prices. The 20 EMA represents short-term momentum, while the 50 EMA captures the intermediate trend. When the 20 EMA crosses above the 50 EMA, it generates a bullish signal. When it crosses below, it generates a bearish signal.
Second, before acting on the crossover, check the 14-period RSI. For a long entry, the RSI must be above 50 at the time of the crossover. This confirms that the upward momentum is genuine rather than a brief fluctuation within a downtrend. For a short entry, the RSI must be below 50.
Third, once both conditions are met, place the entry order. Set the stop loss at 1.5 times the current 14-period ATR value below the entry price for longs (or above for shorts). Set the take profit at 3 times the ATR value, giving the trade a built-in reward-to-risk ratio of 2:1.
ENTRY LONG: 20 EMA crosses above 50 EMA
AND RSI(14) > 50
ENTRY SHORT: 20 EMA crosses below 50 EMA
AND RSI(14) < 50
STOP LOSS: 1.5 × ATR(14) // from entry price
TAKE PROFIT: 3.0 × ATR(14) // from entry price
TIMEFRAME: 4H
INSTRUMENT: EURUSD
How to Build This in Arconomy
- Open the Canvas Editor and create a new strategy. Name it something descriptive like "EMA Crossover + RSI Momentum - EURUSD" and set the default symbol to EURUSD with a 4-hour timeframe.
- Press A or click + Add Rule to open the Rules Library. Under the Entry category, find and drag the Moving Average Crossover rule onto the canvas. Configure it with: MA Type = EMA, Fast MA Period = 20, Slow MA Period = 50, Price Source = Close, Direction = Both.
- From the Rules Library, open the Filter category and drag an RSI Threshold filter rule onto the canvas. Set the RSI Period to 14, the threshold to 50, and the mode to "Above for Long, Below for Short". Connect the output of the Moving Average Crossover node to the input of this filter.
- Open the Risk category and drag an ATR Stop Loss rule onto the canvas. Set the ATR Period to 14 and the Multiplier to 1.5. Connect it to the exit flow of your strategy.
- Add an ATR Take Profit exit rule from the Exit category. Set the ATR Period to 14 and the Multiplier to 3.0. Connect it in parallel with the stop loss node so either condition can close the trade.
- Click Auto-Arrange (Cmd/Ctrl + Shift + A) to tidy the canvas layout, then save your strategy and proceed to backtesting.
Backtest Considerations
When backtesting this strategy, start with a minimum of 12 months of historical data on the 4-hour timeframe to capture a range of market conditions including trending periods, consolidation phases, and volatility spikes. EURUSD typically provides ample data coverage through Arconomy's real tick data engine.
Pay attention to the spread and commission settings in your backtest configuration. Even small differences in spread assumptions can materially affect results on a 4-hour timeframe where individual trade profit may be modest. Use realistic values based on your broker's typical EURUSD spread.
Be mindful of the 2:1 reward-to-risk ratio. While this ratio means you only need to win roughly 34% of trades to break even (before costs), a low win rate can lead to extended drawdown periods. Use the Performance Metrics panel to monitor maximum drawdown and consecutive losing trades during your backtest. If drawdowns are uncomfortable, consider tightening the stop to 1.25x ATR or widening the take profit to 3.5x ATR and reviewing how these changes affect the equity curve.
Key Takeaways
- The RSI momentum filter significantly reduces false crossover signals by requiring directional confirmation above or below the 50 level before entering a trade.
- ATR-based stops and targets adapt automatically to market volatility, keeping position sizing consistent relative to current conditions rather than using fixed pip values.
- A 2:1 reward-to-risk ratio allows the strategy to remain profitable even with a win rate below 50%, but requires discipline during inevitable drawdown periods.