1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
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
Alpy VIX plots the VIX Fix histogram and optional Bollinger and percentile bands in a separate pane. Long entries trigger when the oscillator cools down from extreme levels while price sits below the lower VWMA band, while short entries trigger near the upper band. Exits occur when consecutive neutral bars appear or when conditions meet custom bar index thresholds. The script lacks standard stop loss orders and recalculates on every tick.
Williams Vix Fix volatility oscillator
VWMA offset percentage bands
Configurable percentile and standard deviation thresholds
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
short_offset
float
3.0
upper_band_value
long_offset
float
3.5
lower_band_value
LookBack Period Standard Deviation High
int
22
pd
Bolinger Band Length
int
20
bl
Bollinger Band Standard Devaition Up
float
2.0
mu
Look Back Period Percentile High
int
50
lb
Highest Percentile - 0.90=90%, 0.95=95%, 0.99=99%
float
.85
ph
Lowest Percentile - 1.10=90%, 1.05=95%, 1.01=99%
float
1.01
pl
Show High Range - Based on Percentile and LookBack Period
bool
false
hp
Show Standard Deviation Line
bool
false
sd
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.
This strategy trades mean-reversion setups using the Bollinger Bands Percent Bandwidth (%B) oscillator plotted in a separate pane. It calculates upper and lower bands using a simple moving average and standard deviation multiplier. Long positions are entered w
This strategy combines Bollinger Bands, Bollinger Band Width, and the Relative Strength Index (RSI) for mean-reversion trades. It enters long when price crosses below the lower band with oversold RSI, or when band width contracts under low volatility. Short en
VT-Lite is a Pine Script v5 mean-reversion strategy that draws in a separate pane. It sizes equity-percent entries from a short-term EMA and ATR band distance, with a volatility EMA threshold and a choice of close, low, or ATR-band source. It can add reentries
This strategy plots Bollinger Bands on the price chart with adjustable length, standard deviation, and offset. It defines buy and sell zones using candle size percentage and body size thresholds. Long positions enter when the lower zone is breached without con
The Mean Reversion Strategy Template calculates a baseline mean using SMA, EMA, or VWAP alongside upper and lower deviation bands based on standard deviation, ATR, or percentage offsets. It generates long and short entries when price touches, bounces from, or
This strategy generates buy and sell signals based on Bollinger Band crossovers combined with a simple moving average trend filter. It enters a long position when price crosses above the lower band while trading above the SMA filter line, and enters a short po