OPEN-SOURCE SCRIPT

Multi-Time-Frame EMA Sampler (6-pack) [DarthSHO]

130
📈 Multi-Timeframe EMA Sampler (6-Pack)
Author: DarthSHO fpgrainger@gmail.com
Type: Overlay
Category: Moving Averages/Multi-Timeframe Analysis
License: Open-source

This script plots up to six EMAs calculated from a higher timeframe of your choice (e.g., 1H, Daily) and samples them at a user-defined update interval (e.g., every 5 or 15 minutes). The result is a precise, non-repainting display of higher-timeframe EMAs — visible on any chart, including lower timeframes.

🔧 Features
✅ Choose the source timeframe for EMA calculations (e.g., 1H, Daily)
✅ Set a custom update interval (sampling timeframe)
✅ Plot up to 6 EMAs, each with:
  • Individual length
  • Color customization
  • On/off visibility toggle

✅ Fully overlays on current chart timeframe
✅ Updates on bar close of your chosen sampling interval (no repainting)

🧠 Use Cases
See key EMAs from higher timeframes without switching charts
Lock in values only once per sampling interval (e.g., only update 1H EMAs every 15min)
Avoid noisy intra-bar flicker or repainting
Combine with price action or support/resistance for confluence setups

⚙️ Example Settings
EMA Calculation Timeframe: 1H
Update/Sampling Timeframe: 15m
Chart Timeframe: Any (1m, 5m, 1H, etc.)

🚫 No Repainting
This script uses lookahead=barmerge.lookahead_on to ensure EMAs are stable and only update at the end of each sampling bar.

💡 Tip
Use the shorter sampling_tf (like 5 or 15) to keep your EMA lines responsive but reliable — or set it equal to the calculation TF to see them step only once per bar.

✨ Created by Darth SHO
Helping traders "Escape the Matrix" with clarity and confluence.
Discord, education, alerts, and more.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。