HMA 9/50 Crossover + RSI 50 Filter — Strategy by justincheong06
By justincheong06
Performance Metrics
- Author: justincheong06
- Symbol: OANDA:XAUUSD
- Timeframe: 3 minutes
- Net P&L: +14.00 USD (+1.40%)
- Win Rate: 31.1%
- Profit Factor: 1.028
- Max Drawdown: 67.66 USD (6.26%)
- Total Trades: 594
Description
1. The Core IndicatorsHMA 9 (Fast): Acts as the primary trigger line. Its unique calculation minimizes lag compared to standard moving averages, allowing for faster entries.HMA 50 (Slow): Defines the medium-term trend direction and acts as the "anchor" for crossover signals.RSI 14: Serves as a "momentum gate." Instead of traditional overbought/oversold levels, we use the 50 midline to confirm that the directional strength supports the crossover.2. Entry ConditionsLong Entry: Triggered when the HMA 9 crosses above the HMA 50 AND the RSI is greater than 50.Short Entry: Triggered when the HMA 9 crosses below the HMA 50 AND the RSI is less than 50.3. Execution & ReversalThis strategy is currently configured as an Always-in-the-Market system.A "Long" position is automatically closed when a "Short" signal is triggered.To prevent "pyramiding" (buying multiple positions in one direction), the script checks the current position_size before opening new entries.How to UseTimeframe: Optimized for 3-minute (3m) candles but can be tuned for 1m to 15m scalping.Settings: Use the Inputs panel to adjust HMA lengths based on the volatility of your specific asset (e.g., shorter for stable stocks, longer for volatile crypto).Visuals:Aqua Line: HMA 9Orange Line: HMA 50Green Background: Bullish RSI Momentum (> 50)Red Background: Bearish RSI Momentum (< 50)Risk DisclosureWhipsaws: This strategy is likely to underperform in sideways markets.Backtesting: Past performance does not guarantee future results. Always test this strategy in the Strategy Tester with appropriate commission and slippage settings before live use.