OPEN-SOURCE SCRIPT
AutoDay MA (Session-Normalized)

📊 AutoDay MA (Session-Normalized Moving Average)
⚡ Daily power, intraday precision.
AutoDay MA automatically converts any N-day moving average into the exact equivalent on your current intraday timeframe.
🛠 How it works
✅ Why use it
📈 Examples
⚡ Daily power, intraday precision.
AutoDay MA automatically converts any N-day moving average into the exact equivalent on your current intraday timeframe.
💡 Concept inspired by Brian Shannon (Alphatrends) – mapping daily MAs onto intraday charts by normalizing session minutes.
🛠 How it works
- Set Days (N) (e.g., 5, 10, 20).
- Define Session Minutes per Day (⏱ 390 = US RTH, 🌍 1440 = 24h).
- The indicator detects your chart’s timeframe and computes:
Length = (Days × SessionMinutes) / BarMinutes - Applies your chosen MA type (📐 SMA / EMA / RMA / WMA) with rounding (nearest, up, down).
- Displays all details in a clear corner info panel.
✅ Why use it
- Consistency 🔄: Same 5-day smoothing across all intraday charts.
- Session-aware 🕒: Works for equities, futures, FX, crypto.
- Transparency 🔍: Always shows the math & final MA length.
- Alerts built-in 🔔: Cross up/down vs. price.
📈 Examples
- 5-Day on 1m → 1950-period MA
- 5-Day on 15m → 130-period MA
- 5-Day on 65m → 30-period MA
- 10-Day on 24h/15m (crypto) → 960-period MA
סקריפט קוד פתוח
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
סקריפט קוד פתוח
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.