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
Uabmeacd builds WaveTrend from a typical-price EMA channel, marks overbought and oversold bands, and flags WaveTrend crosses. Bollinger Bands and Keltner Channels detect squeeze states, and a linear-regression momentum value can be filtered by a minimum size. Inputs also set a backtest date window, fast and slow RSI lengths, and stop, take-profit, and trailing-stop distances. The provided code ends before any entry or exit orders appear.
WaveTrend oscillator with overbought and oversold levels
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Backtest Start Year
int
2021
fromYear
Backtest Start Month
int
5
fromMonth
Backtest Start Day
int
18
fromDay
Backtest Stop Year
int
2021
thruYear
Backtest Stop Month
int
12
thruMonth
Backtest Stop Day
int
30
thruDay
Channel Length
int
10
n1
Average Length
int
21
n2
Over Bought Level 1
int
70
obLevel1
Over Bought Level 2
int
53
obLevel2
Over Sold Level 1
int
-70
osLevel1
Over Sold Level 2
int
-53
osLevel2
Show all 23 settings
Setting
Type
Default
Variable
BB Length
int
12
length
BB MultFactor
float
2.0
mult
KC Length
int
16
lengthKC
KC MultFactor
float
1.5
mult_kc
Filter for Momenutum value
bool
false
useMomAverage
Min for momentum
int
20
MomentumMin
Stop Loss
int
600
stop_loss
Take Profit
int
1000
take_profit
Trailing Stop
int
20
trailing_stop
Length Fast RSI
int
5
len_fast
Length Slow RSI
int
14
len_slow
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.
A momentum strategy combining the TTM Squeeze oscillator with an RSI filter. It calculates linear regression momentum relative to Bollinger Bands and Keltner Channels alongside an RSI oscillator. Long signals trigger when momentum rises from below zero while R
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
This strategy combines an EMA ribbon with MACD confirmation and plots in a separate pane. It enters when ribbon alignment, optional MACD zero or signal crosses, volume, smart-money, and multi-timeframe filters agree, then exits with percentage stop loss and ta
This Pine Script strategy calculates Bayesian probabilities of price breaking up or down relative to Bollinger Bands and a Simple Moving Average. It plots these breakout and breakdown probability lines as oscillators in a separate pane. Long entries trigger wh
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
AwesomeADX is a Pine Script v4 strategy that combines an Awesome Oscillator, ADX directional movement, and Bollinger percent B with an optional four-length moving-average trend filter. It sizes each position as a percentage of equity and can limit trades to a