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
Volume Spike Reversal triggers long entries when a volume spike occurs while price is below a 20-period simple moving average, combined with oversold RSI readings and bullish candlestick confirmation. Short entries occur under opposite conditions when price is above the moving average and RSI is overbought. Positions use dynamic stop losses based on Average True Range and take-profit targets derived from a user-defined risk-to-reward ratio. It plots signals, an SMA line, and spike highlights on the main price chart.
Volume spike detection via moving average multiplier
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Volume MA Length
int
20
volLen
Volume Spike Multiplier
float
2.5
volSpike
RSI Length
int
14
rsiLen
RSI Overbought
float
70
rsiOB
RSI Oversold
float
30
rsiOS
Use RSI Extreme Filter
bool
true
useRSI
Candle Confirmation
string
Reversal Candle
candleType
ATR Length
int
14
atrLen
ATR Multiplier (SL)
float
2.0
atrMult
Risk:Reward
float
2.5
rrRatio
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.
Mean Reversion Strategy is an overlay strategy that identifies pullbacks using a long-term EMA, RSI, and candlestick patterns. It generates long signals when a bullish engulfing candle forms below the EMA while RSI is oversold, and short signals when a bearish
This strategy enters long on an outside bar when the candle is bullish, the Klinger Volume Oscillator is positive, and price is above a Hull moving average. It enters short on an inside bar when the candle is bearish, the oscillator is negative, and price is b
This strategy draws on the price chart and identifies mean-reversion opportunities around daily volume-weighted average price (VWAP) bands. It enters long positions when the price crosses above the lower band while the Relative Strength Index indicates oversol
MomGulfing is a momentum strategy that identifies trade setups using multi-bar engulfing candlestick patterns paired with volume confirmation. It triggers long or short entries when price breaks key candle bounds across one to three bars while volume expands.
This strategy buys near a recent range low when a pin-like candle and a combined amplitude and volume score pass a threshold. Short moving averages with an ATR buffer detect a bearish stack, which raises the required score and tints the chart background. It op
Hammers and Stochastic Strategy overlays signals on the price chart by combining candlestick pattern detection with the Stochastic oscillator. It identifies standard hammer and inverted hammer candles and validates them with Stochastic oversold and overbought