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
Inputs set the RSI thresholds for opening, adding and closing, the lookback of the two rolling ranges, a maximum number of adds, a minimum percentage gain before closing and a trailing stop percentage. It can add to positions several times. A code comment says it suits very long timeframes and struggles with shorts and heavy dips.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Max Days Back to Test
int
18
daysBackMax
Hi Low Long
int
420
hiLowSlow
Hi Low Super Long
int
7200
hiLowSuperSlow
Open Long Zone RSI
int
54
openLongZoneRsi
Open Short Zone RSI
int
30
openShortZoneRsi
Add Long Zone RSI
int
46
addLongZoneRsi
Add Short Zone RSI
int
40
addShortZoneRsi
Close Long Zone RSI
int
73
rsiCloseLongZone
Close Short Zone RSI
int
75
rsiCloseShortZone
Max Adds
int
4
maxAdds
Close Long Min (%)
float
1.6
closeLongPerc
Long Trail Stop (%)
float
6.2
longTrailPerc
Show all 15 settings
Setting
Type
Default
Variable
Add % Diff
float
0.16
addPercDiff
Show Slow
bool
true
showSlow
Fast Macd Longs
bool
true
allowFastMacdLongs
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 plots on the price chart and enters when three smoothed moving averages are aligned, RSI is on the matching side of 50, and a Williams fractal appears. An upward stack with RSI above 50 and a down fractal opens a long; the opposite setup opens a
This strategy plots the previous daily high and low on the price chart and calculates the Andean oscillator bull and bear components with an exponential moving average signal. It looks for a bull or bear cross of that signal, then confirms the setup against re
This strategy trades 1-minute futures contracts on Binance. It plots pivot high and low resistance and support levels on the price chart, along with an EMA and a custom Cto indicator. Long and short entries trigger on EMA and Cto crossovers combined with price
KC15 is a price-chart strategy that configures two moving averages, a Bollinger Band Width Percentile filter, and PMARP entry and exit thresholds for long and short trades. Users can switch each average between SMA and EMA, set lengths and colors, and toggle l
This strategy identifies reversal opportunities based on liquidity sweeps and multi-gate confluence scoring. It evaluates setups using mandatory conditions such as swing sweeps, body and ATR filters, and dual EMA higher-timeframe trend alignment, alongside opt
This strategy plots dynamic pivot-based support and resistance trendlines on the price chart and trades breakouts beyond those lines. By default it allows longs only when EMA 50 is above EMA 200 and an RSI-SMA momentum filter is met, with an ATR entry buffer.