OPEN-SOURCE SCRIPT
5 MAs

Title: 5 MAs — Key Moving Averages + 2h Trend Filter
Description:
This indicator plots five essential moving averages used for identifying market structure, momentum shifts, and trend confirmation across multiple timeframes. It’s designed for traders who blend intraday price action with higher-timeframe context.
Included Averages:
200 SMA (red): Long-term trend direction and dynamic support/resistance.
50 SMA (blue): Medium-term trend guide, often used for pullbacks or structure shifts.
21 EMA (purple): Shorter-term momentum guide — commonly used in trending strategies.
10 EMA (green): Fast momentum line for scalping, intraday setups, or crossover signals.
2h 20 EMA (orange): Higher-timeframe trend filter pulled from the 2-hour chart — adds confluence when trading lower timeframes (e.g., 5m, 15m).
How to Use:
Use the alignment of these MAs to confirm market bias (e.g., all pointing up = strong bullish structure).
Watch for crossovers, price interaction, or dynamic support/resistance at key levels.
The 2h 20 EMA adds a higher timeframe filter to avoid counter-trend trades and spot reversals early.
Best Used For:
Scalping, intraday trading, swing entries, or trend-following systems.
Description:
This indicator plots five essential moving averages used for identifying market structure, momentum shifts, and trend confirmation across multiple timeframes. It’s designed for traders who blend intraday price action with higher-timeframe context.
Included Averages:
200 SMA (red): Long-term trend direction and dynamic support/resistance.
50 SMA (blue): Medium-term trend guide, often used for pullbacks or structure shifts.
21 EMA (purple): Shorter-term momentum guide — commonly used in trending strategies.
10 EMA (green): Fast momentum line for scalping, intraday setups, or crossover signals.
2h 20 EMA (orange): Higher-timeframe trend filter pulled from the 2-hour chart — adds confluence when trading lower timeframes (e.g., 5m, 15m).
How to Use:
Use the alignment of these MAs to confirm market bias (e.g., all pointing up = strong bullish structure).
Watch for crossovers, price interaction, or dynamic support/resistance at key levels.
The 2h 20 EMA adds a higher timeframe filter to avoid counter-trend trades and spot reversals early.
Best Used For:
Scalping, intraday trading, swing entries, or trend-following systems.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
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.