Indicator · Pine Script v6 · On the chart

Dip Mafia Timed HODL vs SIP

by 0xCaretaker

A simulation indicator that adds a fixed monthly contribution to a cash pool and compares two ways of investing it on one symbol.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code188
Settings14inputs
LicenceNone stated
Last update2 days ago27 Oct 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new indicator, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.

Source Code

The code stays on GitHub. The author has not published this script under an open licence, so ForexR does not show its code. Copy script reads the file straight from GitHub into your clipboard, so you can still try it on your own chart. Ask the author before reusing the code anywhere else.

Overview

The timed approach buys on Bollinger and MACD dip signals, or after idle cash waits a set number of bars. The regular approach invests each month's amount immediately. A table compares final values, with slippage as an input. It marks buys on the price chart and never sells.

Details

Published by

0xCaretaker on GitHub

Type

Indicator, Pine Script v6

Draws

On the price chart

Category

Mean reversion, Screeners & dashboards

Markets

Stocks

Timeframes

H4 and above

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Topics

bollinger-bandsgithub-actionsmacdnsetelegram-bot

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Monthly contribution (₹)float20000monthlyAmt
Deploy idle cash after N barsint21idleThresh
Slippage (bps)float5slipBps
Bollinger lengthint200bbLength
Bollinger std devfloat2.0bbStdDev
Watch lookback (bars)int60watchLookback
Require close < BB midlinebooltruerequireBelowMid
Impulse MA lengthint34impLenMA
Impulse signal lengthint9impSig
MACD fast EMAint12macdFast
MACD slow EMAint26macdSlow
MACD signal EMAint9macdSig
Show all 14 settings
SettingTypeDefaultVariable
MACD triggerstringImpulsesignalSrc
Plot Timed/SIP value curvesboolfalseshowRace
Third-party code. ForexR did not write, test or endorse this script, and the summary above was generated automatically from its code and README. Indicators describe the past, and a strategy's backtest can look better than live trading, especially when a script repaints. Check it in the Strategy Tester and on a demo account before you rely on it.

Similar Pine Scripts

TylerG FVG BB Reversal

by TradersPost
218 stars

This indicator identifies mean-reversion setups by combining Bollinger Bands with Fair Value Gaps (FVGs). It tracks FVGs that print outside the upper or lower Bollinger Bands and counts them toward an alert threshold. Signals trigger upon gap mitigation (by to

Indicator v6 SMC / ICT / price actionVolatility & bands
Updated 3 months ago · None stated GitHub repository of TylerG FVG BB Reversal
46 stars

Leptokurtic Directional Bias is an overlay indicator that measures kurtosis on a chosen source and marks directional bias on the price chart. The source can be a moving average, ATR, volume, close, or a Bollinger-band trend stop. Bias mode switches among RSI m

Indicator v5 Volatility & bandsMean reversion
Updated 7 weeks ago · None stated GitHub repository of Leptokurtic Directional Bias

Commodity Heat Reversal plots score-based mean-reversion reversal markers on the price chart for commodity futures, aimed at the four-hour timeframe. It builds separate long and short heat scores from ATR distance to a mean moving average, ATR expansion, RSI e

Indicator v6 Mean reversionVolatility & bands
Updated 2 days ago · MIT GitHub repository of Commodity Heat Reversal [WavesUnchained]
4 stars

This indicator plots directional trade signals, ATR-based target and stop-loss boxes, and SuperSmoother reversal bands directly on the price chart. It evaluates market conditions across selectable technical strategies, displaying confidence scores alongside an

Indicator v6 Screeners & dashboardsTrend Repaints
Updated yesterday · None stated GitHub repository of Elton's Predictions Decision Engine
3 stars

This overlay indicator recreates short-setup conditions and audits their later outcomes on the price chart. It scores optional percent-surge, RSI overbought rollover, Bollinger exhaustion, volume spike, and EMA trend filters, then marks BASE or STRONG signals

Indicator v6 Oscillators & momentumVolatility & bands
Updated 1 year ago · None stated GitHub repository of Hedge Short Setup Outcome Auditor

More indicators

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers