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
Fractal patterns confirm reversals with upFractal and downFractal signals based on high and low price swings over multiple bars. A time window filter restricts trading to specified hours and a test period in 2021. Additional inputs control oscillator levels, fractal periods, and band offsets. Trades draw directly on the price chart with overlay mode. No default stop loss or exit rules are defined beyond fractal and oscillator conditions. It supports pyramiding and repaints on the live bar.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
fromMonth
int
1
fromMonth
fromDay
int
1
fromDay
thruMonth
int
12
thruMonth
thruDay
int
30
thruDay
fromYear
int
2021
fromYear
thruYear
int
2021
thruYear
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 18 settings
Setting
Type
Default
Variable
Periods
int
2
n
Short Offset
int
2
upperBandValue
Long Offset
int
2
lowerBandValue
Target Profit %
float
0.50
tp
tp
float
0.05
_tp_long
tp
float
0.05
_tp_short
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 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.
This trend-following strategy executes a classic Donchian channel breakout system designed to cross-validate backtest results against external framework benchmarks. It triggers a long entry when the closing price breaks above the highest high of the prior entr
This strategy plots running pivot highs as red R circles and pivot lows as blue S circles directly on the price chart. It computes an EMA 3 and a Cto trend line from close prices, then generates long signals on upward EMA-Cto crossovers combined with price pos
The Chained Linear Regression Reversal Strategy plots linear regression channels with upper and lower standard deviation bands directly on the price chart across a user-defined time window. When price breaks out of the static channel for a confirmed number of
Calculates multi-period logarithmic regression trend channels and deviation bands across up to twenty selectable lookback lengths directly on the price chart. It evaluates channel slopes and Pearson's correlation coefficient to detect market trends and generat
This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim