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
Alper calculates fast and slow RSI values, alongside WaveTrend channel lines and overbought or oversold thresholds. Long positions trigger when the fast WaveTrend line sits above the slow line while the fast RSI exceeds the slow RSI within a configurable date window. Short entries execute on the inverse condition. The script colors bars upon WaveTrend crossovers and configures trailing stops for position risk management.
WaveTrend oscillator with overbought and oversold thresholds
Dual RSI differential divergence calculation
Configurable backtest date filter window
Trailing stop loss parameters for long and short trades
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
fromMonth
int
5
fromMonth
fromDay
int
24
fromDay
thruMonth
int
12
thruMonth
thruDay
int
22
thruDay
fromYear
int
2021
fromYear
thruYear
int
2021
thruYear
Length Fast RSI
int
5
len_fast
Length Slow RSI
int
14
len_slow
Channel Length
int
11
n1
n2
int
21
n2
Over Bought Level 1
int
70
obLevel1
Over Bought Level 2
int
53
obLevel2
Show all 16 settings
Setting
Type
Default
Variable
Over Sold Level 1
int
-70
osLevel1
Over Sold Level 2
int
-53
osLevel2
Trailing Stop Loss
int
600
inpTrailStopL
Trailing Stop Loss
int
600
inpTrailStopS
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.
MACD + Divergences [Alorse] is a momentum strategy that calculates the MACD oscillator and identifies regular and hidden divergences using pivot high and low points. It filters trade signals with dual Exponential Moving Averages (EMA 150 and 600) to ensure tra
The Stochastic Divergence Strategy calculates the Stochastic oscillator (%K and %D) to identify regular bullish and bearish divergence patterns against price pivots. It plots the oscillator and divergence lines in a separate indicator pane. Entries trigger on
This strategy implements Bill Williams' Awesome Oscillator (AO) calculated as the difference between two simple moving averages of the median price. It generates long and short entries using three classic signal triggers: zero-line crossovers, twin peaks diver
This strategy calculates regular and hidden divergences across selectable momentum oscillators, including RSI, CCI, and MFI, and plots volatility-based divergence zones. It displays oscillator dynamics in a separate pane while projecting support and resistance
A trading strategy that uses an RSI state machine tracking 50-level crossovers, pullbacks, and hidden divergences. Entries require confirmation from optional confluence filters, including an EMA touch, Fibonacci retracement zones, and Ichimoku cloud conditions
This strategy calculates a normalized quantum momentum score from Hilbert transform, ROC, MACD, and Stochastics data, blended with volatility estimates from Keltner bands and GARCH. It generates bullish and bearish signals based on adaptive thresholds and conf