OPEN-SOURCE SCRIPT
Key Swing Levels

Key Swing Levels (KSL) plots higher-timeframe reference levels — Weekly High/Low, Monthly High/Low, Previous Day High/Low, Weekly & Monthly Open, and configurable round numbers — on any chart, any timeframe.
A proximity dashboard in the top-right corner shows real-time distance in pips to each level, with cells highlighting red when price comes within range.
Features:
Auto-detects pip size for JPY pairs, other forex, metals, indices, and crypto — no manual configuration
Current week & month levels (solid) and previous week & month levels (dashed) for AMD / SMC analysis
Round number plotting with optional 50-pip half levels
Configurable label offset so levels don't cover forming candles
Built-in alerts when price approaches any major level
How to use:
Use it as a daily/weekly bias map. Levels mark areas where price is likely to react — sweeps, rejections, or breaks. Particularly useful for session-based traders watching for liquidity grabs at PDH/PDL or weekly extremes during London/NY opens.
Open-source. Feedback and forks welcome.
A proximity dashboard in the top-right corner shows real-time distance in pips to each level, with cells highlighting red when price comes within range.
Features:
Auto-detects pip size for JPY pairs, other forex, metals, indices, and crypto — no manual configuration
Current week & month levels (solid) and previous week & month levels (dashed) for AMD / SMC analysis
Round number plotting with optional 50-pip half levels
Configurable label offset so levels don't cover forming candles
Built-in alerts when price approaches any major level
How to use:
Use it as a daily/weekly bias map. Levels mark areas where price is likely to react — sweeps, rejections, or breaks. Particularly useful for session-based traders watching for liquidity grabs at PDH/PDL or weekly extremes during London/NY opens.
Open-source. Feedback and forks welcome.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.