Strategy · Pine Script v6 · Own pane

BTC Cycle RSI + LinReg Bands DCA Strategy

by eddiebelaval

This strategy calculates a smoothed Relative Strength Index and plots self-adjusting linear regression bands with overbought and oversold boundaries in a separate pane.

View on GitHub

GitHub stars7on the repository
Pine versionv6current
Lines of code564
Settings24inputs
LicenceNone stated
Last update3 months ago24 Jul 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 strategy, select all of the template text and paste. Press Save and give it a name.
  4. 4Add it to the chartPress Add to chart. The trades and results appear in the Strategy Tester tab; adjust the settings with the gear icon.

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

BTC Cycle RSI + LinReg Bands DCA Strategy enters long positions through dollar-cost averaging orders scaled across market phases and supported by an optional yield pool. Exits occur via sequential sell orders triggered after RSI peaks and midline breakdowns. Key settings adjust the RSI lookback, regression length, deviation multiplier, DCA allocation, and yield deployment rates. The strategy operates without a default stop-loss mechanism.

Details

Published by

eddiebelaval on GitHub

Type

Strategy, Pine Script v6

Draws

Separate pane below the chart

Category

Oscillators & momentum, Volatility & bands, Mean reversion

Markets

Crypto

Timeframes

H4 and above

Risk Notes

  • The strategy enters trades without a stop loss

Settings

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

SettingTypeDefaultVariable
Use start date filterbooltrueuseStartDate
Start Yearint2013startYear
Start Monthint1startMonth
Start Dayint1startDay
RSI Sourcesourceclosersi_src_
RSI Lengthint50len
LinReg Periodint200period
Deviationfloat2.0deviations
Overboughtint65obLevel
Oversoldint35osLevel
Base DCA Amount (1x, USD)float100baseDCA
Require prior RSI > Overbought for sell signals?booltrueuseFalseFilter
Show all 24 settings
SettingTypeDefaultVariable
Enable DCA buysbooltrueenableDCA
Enable sequential sellsbooltrueenableSells
Yield basket APR (%)float11.0yieldApr
Starting yield basket balance (USD)float0.0startingYieldBalance
Enable yield-funded DCAbooltrueyieldDCAEnabled
Deep bear: target % of starting yield to keepfloat20.0deepBearTargetFrac
Max deploy per week (% of yield pool)float4.0hybridMaxPctPool
Deploy % of remaining pool per weekfloat25.0hybridDeployPct
Weeks to ramp to full capacityfloat25.0hybridRampWeeks
Starting capacity (%)float10.0hybridStartCapacity
Drawdown scaling exponentfloat3.0hybridDrawdownPower
Show sell signal iconsbooltrueshowSellIcons
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

This strategy combines Larry Williams' Vix Fix synthetic volatility indicator with Bollinger Bands. It calculates standard and inverted Williams Vix Fix metrics, displaying them as histogram columns with standard deviation bands in a separate pane. Long entrie

Strategy v4 Volatility & bandsOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Williams Vix Fix Strategy [Alorse]

2xTP, SL to Entry

by hasnocool
106 stars

This strategy executes mean-reversion trades based on Bollinger Bands and the Stochastic Oscillator. Long orders trigger when price dips below the lower band alongside a bullish Stochastic crossover, with an optional oversold threshold. Short orders execute on

Strategy v5 Mean reversionOscillators & momentum
Updated 2 years ago · GPL-3.0 GitHub repository of 2xTP, SL to Entry

Greeffer BB Strategy

by SammyEnigma
18 stars

This strategy fades Bollinger Band extremes using the close. It enters short when price crosses above the upper band and the 14-period RSI is above 70, and enters long when price crosses below the lower band and RSI is below 30. It closes half of an open short

Strategy v4 Volatility & bandsOscillators & momentum
Updated 6 years ago · None stated GitHub repository of Greeffer BB Strategy
104 stars

This strategy combines Bollinger Bands with a short RSI to fade moves that leave the bands and then return. A long requires the prior bar below the lower band and oversold, then a close back inside the band while RSI is between 30 and 50. Shorts mirror that at

Strategy v5 Oscillators & momentumVolatility & bands
Updated 3 years ago · MIT GitHub repository of Bollinger Bands and RSI Strategy
13 stars

This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi

Strategy v5 Sessions & timeOscillators & momentum
Updated 8 months ago · Custom licence GitHub repository of ClaudeHedge - DAX Session Strategy

Calculates a combination of the Relative Strength Index, MACD histogram, and Bollinger Bands contraction to identify long trade entries. The strategy signals a long position on a bullish bar when the MACD histogram turns upward while negative, RSI remains belo

Strategy v4 Oscillators & momentumVolatility & bands
Updated 3 years ago · Apache-2.0 GitHub repository of RSI + MACD + BB Long Strategy (Not Good)

More strategys

Trade Your Charts With a Regulated Broker

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

Compare brokers