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)
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.