Implements a rule-based momentum trading strategy that detects Bollinger Band challenges followed by synchronized trendline or range breakouts on the price chart.
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
Entries trigger under configurable strictness modes using multi-timeframe Tide and Wave alignment, RSI thresholds, EMA crossovers, and DMI/ADX directional strength. Exits and risk levels are determined by ATR-buffered support and resistance stops alongside Fibonacci extension targets. Settings allow fine-tuning of indicators, pivot lookbacks, signal modes, and timeframe hierarchies.
Bollinger Band challenge with trendline breakout detection
Multi-timeframe Tide and Wave directional alignment
RSI, DMI, ADX, and EMA crossover confirmation filters
Configurable signal strength modes: Fast, Balanced, and Strict PDF
ATR-buffered stops with Fibonacci extension profit targets
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Timeframe mapping
string
PDF Auto
timeframeMode
Manual Tide timeframe, blank = chart
timeframe
tideTfInput
Manual Wave timeframe, blank = chart
timeframe
waveTfInput
Use PDF line 2 MTF refinement
bool
true
useLine2Mtf
Signal only after candle close
bool
true
confirmOnClose
Signal strength
string
Balanced
signalMode
Bollinger Band length
int
20
bbLength
Bollinger Band deviation
float
2.0
bbMult
RSI length
int
14
rsiLength
Buy RSI threshold
float
50.0
rsiLongBase
Sell RSI threshold
float
50.0
rsiShortBase
Better buy RSI cross
float
60.0
rsiStrongLong
Show all 35 settings
Setting
Type
Default
Variable
Better sell RSI cross
float
40.0
rsiStrongShort
TI fast EMA
int
13
tiFast
TI slow EMA
int
26
tiSlow
Required Better rows
int
0
minBetterConfirmations
Trendline pivot left
int
5
pivotLeft
Trendline pivot right
int
5
pivotRight
Trendline fallback range
int
20
breakoutLookback
BB challenge and trend break sync bars
int
3
syncBars
Average volume length
int
20
volumeLength
EMA cross lookback
int
3
emaCrossLookback
DI length
int
14
dmiLength
ADX smoothing
int
14
adxSmoothing
ADX minimum
float
15.0
adxFloor
ATR length
int
14
atrLength
Stop ATR buffer
float
0.0
stopAtrBuffer
Major support/resistance lookback
int
100
majorSrLookback
Immediate S/R distance in ATR
float
1.0
majorSrMinAtr
Fibonacci target swing lookback
int
80
targetLookback
Target 1 Fibonacci extension
float
0.618
fibTarget
Show BUY/SELL labels
bool
true
showSignals
Show active stop/target lines
bool
false
showTradeLevels
Show Bollinger Bands
bool
false
showBands
Plot BUY/SELL 1 candle earlier
bool
false
plotOneCandleEarly
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 Donchian channel breakouts on the price chart and exits on a shorter Donchian channel. It sizes each unit from a percentage of equity and an ATR-based initial stop, then adds units as price moves a set ATR distance, up to a maximum unit co
This breakout strategy identifies trade entries when price breaks above recent swing highs or below swing lows. Entries are verified through optional filters, including a 233 EMA trend filter, ATR volatility threshold, volume multiplier confirmation, RSI bound
This strategy enters multi-order long positions during volatility expansions when price breaks above the upper Bollinger Band. Entries require price alignment above Parabolic SAR, a 100 EMA, and a 200 EMA trend filter, alongside mid-range RSI and elevated ATR.
This strategy evaluates multi-factor breakout confluence using a customized scoring system on the price chart. It checks Minervini-style Volatility Contraction Pattern trend templates, TTM squeeze volatility compression, volume dry-up with OBV accumulation, mo
This strategy identifies breakouts using Keltner Channels combined with volume spike filters, ADX trend strength, RSI thresholds, and an optional EMA trend direction filter. It triggers long entries when price crosses above the upper channel and short entries
This strategy identifies high-volatility expansion bars by comparing the high-low range to a moving average plus standard deviation threshold. When range expansion occurs, it checks momentum over a specified lookback period. It opens a long position if the cur