OPEN-SOURCE SCRIPT

Mswing Homma

4 203
The Mswing is a momentum oscillator that calculates the rate of price change over 20 and 50 periods (days/weeks). Apart from quantifying momentum, it can be used for assessing relative strength, sectoral rotation & entry/exit signals.
Quantifying Momentum Strength
The Mswing's relationship with its EMA (e.g., 5-period or 9-period) is used for momentum analysis:
• M Swing >0 and Above EMA: Momentum is positive and accelerating (ideal for entries).
• M Swing >0 and Below EMA: Momentum is positive but decelerating (caution).
• M Swing <0 and Above EMA: Momentum is negative but improving (watch for reversals).
• M Swing <0 and Below EMA: Momentum is negative and worsening (exit or avoid).
Relative Strength Scanning (M Score)
Sort stocks by their M Swing using TradingView’s Pine scanner.
Compare the Mswing scores of indices/sectors to allocate capital to stronger groups (e.g., renewables vs. traditional energy).
Stocks with strong Mswing scores tend to outperform during bullish phases, while weak ones collapse faster in downtrends.
Entry and Exit Signals
Entry: Buy when Mswing crosses above 0 + price breaks key moving averages (50-day SMA). Use Mswing >0 to confirm valid breakouts. Buy dips when Mswing holds above EMA during retracements.
Exit: Mswing can be used for exiting a stock in 2 ways:
• Sell in Strength: Mswing >4 (overbought).
• Sell in Weakness: Mswing <0 + price below 50-day SMA.
Multi-Timeframe Analysis
• Daily: For swing trades.
• Weekly: For trend confirmation.
• Monthly: For long-term portfolio adjustments.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.