HMA 9/50 Crossover + RSI 50 Filter — Strategy by justincheong06

By justincheong06

Performance Metrics

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.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView