PROTECTED SOURCE SCRIPT
4-Week Return Columns

What it does
This indicator calculates the cumulative return over each 4-week block (4 weekly bars) for a selected security and plots the result as a column chart on the 4th week of each block.
How it works
Runs on Weekly timeframe (indicator is fixed to W).
For every 4 weekly candles:
Start = Week 1 close
End = Week 4 close
Return = (End / Start - 1) × 100 (if % enabled)
By default, it plots only at the end of Week 4 to keep the chart clean.
Inputs
Use chart symbol: Use the current chart’s symbol (default).
Security (if not using chart): Select a different ticker to calculate returns for.
Show %: Toggle between percent and decimal return.
Rolling 4W return (every week): If enabled, plots the rolling 4-week return on every week instead of only the 4th week.
Notes / limitations
“4-week” means 4 weekly bars, not “the 4th calendar week of the month.”
Weekly bars follow the exchange session calendar, so holidays can slightly shift how weeks align.
Use cases
Compare 4-week momentum across symbols
Spot acceleration/slowdown in trend strength
Identify choppy vs trending phases at a glance
Disclaimer
For educational purposes only. Not financial advice.
Table/Checklist
Suggested default settings
Use chart symbol: ✅ ON
Show %: ✅ ON
Rolling: ❌ OFF (cleaner “block-end” columns)
This indicator calculates the cumulative return over each 4-week block (4 weekly bars) for a selected security and plots the result as a column chart on the 4th week of each block.
How it works
Runs on Weekly timeframe (indicator is fixed to W).
For every 4 weekly candles:
Start = Week 1 close
End = Week 4 close
Return = (End / Start - 1) × 100 (if % enabled)
By default, it plots only at the end of Week 4 to keep the chart clean.
Inputs
Use chart symbol: Use the current chart’s symbol (default).
Security (if not using chart): Select a different ticker to calculate returns for.
Show %: Toggle between percent and decimal return.
Rolling 4W return (every week): If enabled, plots the rolling 4-week return on every week instead of only the 4th week.
Notes / limitations
“4-week” means 4 weekly bars, not “the 4th calendar week of the month.”
Weekly bars follow the exchange session calendar, so holidays can slightly shift how weeks align.
Use cases
Compare 4-week momentum across symbols
Spot acceleration/slowdown in trend strength
Identify choppy vs trending phases at a glance
Disclaimer
For educational purposes only. Not financial advice.
Table/Checklist
Suggested default settings
Use chart symbol: ✅ ON
Show %: ✅ ON
Rolling: ❌ OFF (cleaner “block-end” columns)
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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ã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể sử dụng tự do và không giới hạn – tìm hiểu thêm tại đây.
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.