OPEN-SOURCE SCRIPT
Weekly MA60 (Show on Any Chart)

📘 Description: Weekly MA60 (Show on Any Chart)
This indicator displays the 60-period Moving Average (MA) calculated on the weekly timeframe, regardless of which chart timeframe you’re currently viewing (for example, it shows the weekly MA60 even on a daily chart).
It’s useful for traders who want to keep track of higher-timeframe trend direction while analyzing lower-timeframe price action.
⸻
🧩 How It Works
• The script uses the request.security() function to fetch data from the weekly timeframe.
• It then calculates either a Simple Moving Average (SMA) or an Exponential Moving Average (EMA) over 60 periods.
• The resulting value is plotted directly on your active chart (daily, 4H, etc.), allowing you to visualize the long-term trend without switching timeframes.
⸻
⚙️ Settings
• Period: default = 60
• Source: default = close
• Type: choose between SMA or EMA
⸻
💡 Use Cases
• Identify whether the current price is above or below the weekly trend while working on lower-timeframe setups.
• Combine with daily MAs or shorter EMAs for multi-timeframe confluence.
• Great for swing traders and position traders who monitor long-term momentum while refining entries on the daily or 4H chart.
⸻
🛠 Technical Notes
• Built in Pine Script® v6 for full compatibility.
• Uses barmerge.gaps_off and barmerge.lookahead_off for accurate data alignment.
• Minimal and optimized for overlay display (no separate window).
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
오픈 소스 스크립트
진정한 트레이딩뷰 정신에 따라 이 스크립트 작성자는 트레이더가 기능을 검토하고 검증할 수 있도록 오픈소스로 공개했습니다. 작성자에게 찬사를 보냅니다! 무료로 사용할 수 있지만 코드를 다시 게시할 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.