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)
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Można z tego korzystać swobodnie i bez żadnych ograniczeń — więcej informacji znajduje się tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt chroniony
Ten skrypt został opublikowany jako zamknięty kod źródłowy. Można z tego korzystać swobodnie i bez żadnych ograniczeń — więcej informacji znajduje się tutaj.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.