OPEN-SOURCE SCRIPT

SIV Savings Plan

947
SIV Savings Plan is a long-term regime indicator designed to support systematic savings plan and cost-averaging decisions across different asset classes.

Instead of focusing on short-term trading signals, this tool aims to classify the broader market environment into a simple 5-color framework and translate it into practical allocation guidance.

The indicator can be used for:

ETF savings plans
long-term stock accumulation
broad index investing
crypto accumulation with adapted logic
Core idea

The script combines higher-timeframe trend and regime filters to answer one practical question:

Should a savings plan currently be increased, continued, paused, reduced, or stopped?

5-color allocation framework
Dark Green = Increase savings plan
Light Green = Keep savings plan running
Yellow = Pause or keep only a reduced base plan running
Orange = Reduce savings plan
Red = Stop savings plan and reduce positions
Asset modes

The script supports different market structures through separate presets:

ETF
Stock
Index
Crypto
Included preset groups

ETF presets

MSCI World
FTSE All-World
S&P 500
Nasdaq 100
Stoxx Europe 600
Emerging Markets
Sector

Stock presets

US
Europe
APAC

Index presets

US
Europe
APAC

Crypto presets

Bitcoin
Altcoin
Logic overview

Depending on the selected asset mode and preset, the script evaluates a combination of:

long-term weekly trend regime
monthly trend filter
monthly slope
deviation from long-term monthly trend
drawdown-based risk scoring

For Bitcoin, the script uses a dedicated structure:

21-week EMA
20-month trend filter

This reflects Bitcoin’s different long-term behavior compared to traditional ETF or index markets.

Allocation concept

The indicator converts regime conditions into a practical allocation suggestion:

Dark Green default: 125%
Light Green default: 100%
Yellow default: 50% in Soft Yellow Mode
Orange default: 25%
Red default: 0%

This is not meant as a prediction tool, but as a structured framework for more disciplined long-term accumulation.

Alerts

The script includes a unified state-change alert via alert().

When the regime changes, the alert message includes:

new state
allocation percentage
score
ticker
timeframe

To use alerts in TradingView, select:

Condition → Any alert() function call

Notes
This indicator is intentionally designed for higher-timeframe, strategic decision support
It is not intended for short-term trading or market timing in the classic sense
Monthly confirmation can be enabled to reduce noise
Presets are heuristic and designed to be robust rather than overly optimized
Open-source philosophy

This script is published as open source to encourage transparency, discussion, and further development.

Use it as a framework, adapt it to your own risk tolerance, and improve it where needed.

Concept & Design: Richie Ryna (Founder, SmartInVisions GmbH)
Code Generation with ChatGPT v5.3

Disclaimer

This indicator is for educational and informational purposes only.
It does not constitute investment advice or a recommendation to buy or sell any financial instrument.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.