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 metrics alongside WaveTrend indicator lines to identify momentum shifts. The strategy enters long positions when WaveTrend crosses upward while RSI divergence is positive, and enters short positions when WaveTrend crosses downward while RSI divergence is negative. Position exits occur on opposite crossover conditions within a configurable date window.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
fromMonth
int
3
fromMonth
fromDay
int
1
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
1500
inpTrailStop
Trailing Stop Loss Offset
int
0
inpTrailOffset
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
This strategy combines the ATR-banded Q-Trend indicator with the Klinger Volume Oscillator (KVO) to execute confluence trades. It enters long when a Q-Trend buy trigger aligns with a positive KVO value and a bullish candle confirmation, taking short trades und
This strategy calculates the Moving Average Convergence Divergence indicator and plots the MACD line, signal line, and histogram in a separate pane. It enters long positions when the MACD line crosses above the signal line and enters short positions when it cr
This strategy estimates price behavior using ordinary least squares regression between higher-timeframe data and a generated dataset, smoothed by a Karobein oscillator. It enters long positions when the oscillator turns upward and short positions when it turns
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 calculates a 20-period Relative Strength Index (RSI) and generates entry orders based on crossovers and crossunders of the 50 level. When RSI crosses above 50, it places a long stop entry at the current high price with a custom alert message. Whe