OPEN-SOURCE SCRIPT
Key-Levels - D/W/M High-Low + Fib + MA

🧭 Key-Levels – D/W/M High-Low + Fibonacci + Moving Averages
A complete multi-timeframe analysis toolkit that combines Daily, Weekly, and Monthly high/low levels, Fibonacci retracements, and customizable moving averages — all in one clean, efficient display.
Ideal for traders who want to identify key reaction zones, retracement levels, and trend alignment across multiple timeframes.
🔹 Features
1. Prior High/Low Levels
Plots Daily (PDH/PDL), Weekly (PWH/PWL), and Monthly (PMH/PML) key levels
Adjustable colors, styles (Solid / Dashed / Dotted), and line widths
Optional midline display for each timeframe
Displays live labels with price values and % difference from current close
Extend lines rightward to project future price interactions
2. Fibonacci Retracement
Auto-detects swing highs/lows using configurable pivot lengths
Smart pivot logic prioritizes major swings based on % span
Auto-orients retracements depending on trend direction
Customizable visibility and color for each Fibonacci level
Supports 0.236 → 1.618 levels, with optional auto-extension in uptrend scenarios
Displays ratio + price for each level label
3. Pivot Labels
Optionally show pivot high/low labels with customizable text and background colors
Independent control of left/right length and label style
4. Moving Averages
Up to three customizable MAs (default: 8 EMA, 21 EMA, 50 SMA)
Choose between EMA or SMA for each
Toggle individual or all moving averages
Adjustable lengths, colors, and line widths
5. Alerts
Built-in alert condition for price crossing a user-defined level
Clean alert message format with ticker symbol and live price
⚙️ Customization
Flexible style controls for lines, labels, and colors
Adjustable right-extension length for projecting levels
Font size and visibility toggles for all elements
Smart grouping for intuitive settings management
📈 Ideal For
Identifying key reversal or breakout zones
Spotting Fibonacci confluence between retracements and prior highs/lows
Tracking trend structure via multi-timeframe MAs
Swing traders, intraday traders, and technical analysts
💡 Summary
Key-Levels – D/W/M High-Low + Fib + MA is a professional-grade indicator designed to simplify complex multi-timeframe analysis.
It helps you see the bigger picture, find actionable zones, and trade with confidence.
🧩 Compatible with any market and timeframe.
A complete multi-timeframe analysis toolkit that combines Daily, Weekly, and Monthly high/low levels, Fibonacci retracements, and customizable moving averages — all in one clean, efficient display.
Ideal for traders who want to identify key reaction zones, retracement levels, and trend alignment across multiple timeframes.
🔹 Features
1. Prior High/Low Levels
Plots Daily (PDH/PDL), Weekly (PWH/PWL), and Monthly (PMH/PML) key levels
Adjustable colors, styles (Solid / Dashed / Dotted), and line widths
Optional midline display for each timeframe
Displays live labels with price values and % difference from current close
Extend lines rightward to project future price interactions
2. Fibonacci Retracement
Auto-detects swing highs/lows using configurable pivot lengths
Smart pivot logic prioritizes major swings based on % span
Auto-orients retracements depending on trend direction
Customizable visibility and color for each Fibonacci level
Supports 0.236 → 1.618 levels, with optional auto-extension in uptrend scenarios
Displays ratio + price for each level label
3. Pivot Labels
Optionally show pivot high/low labels with customizable text and background colors
Independent control of left/right length and label style
4. Moving Averages
Up to three customizable MAs (default: 8 EMA, 21 EMA, 50 SMA)
Choose between EMA or SMA for each
Toggle individual or all moving averages
Adjustable lengths, colors, and line widths
5. Alerts
Built-in alert condition for price crossing a user-defined level
Clean alert message format with ticker symbol and live price
⚙️ Customization
Flexible style controls for lines, labels, and colors
Adjustable right-extension length for projecting levels
Font size and visibility toggles for all elements
Smart grouping for intuitive settings management
📈 Ideal For
Identifying key reversal or breakout zones
Spotting Fibonacci confluence between retracements and prior highs/lows
Tracking trend structure via multi-timeframe MAs
Swing traders, intraday traders, and technical analysts
💡 Summary
Key-Levels – D/W/M High-Low + Fib + MA is a professional-grade indicator designed to simplify complex multi-timeframe analysis.
It helps you see the bigger picture, find actionable zones, and trade with confidence.
🧩 Compatible with any market and timeframe.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。