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
The trader selects a primary and a secondary source from Guppy moving averages, VWAP, an opening-range breakout, Supertrend, or CPR, and can add WaveTrend, stochastic, a range filter, small-candle checks, and weekly or monthly opens and pivots. An EMA 200 filter and a reverse-entry switch change direction logic. It allows many stacked positions and a daily profit cap. The excerpt does not show a stop loss.
Guppy, VWAP, ORB, Supertrend and CPR entry choices
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
maximumProfitPerDay
int
10
maxProfit
Reverse Entry
bool
false
rev
first_entry
string
None
first_entry
secondary_entry
string
None
second_entry
Guppy EMA
bool
false
check_guppy
VWAP
bool
false
check_vwap
ORB
bool
false
check_orb
Supertrend
bool
false
check_st
CPR
bool
false
check_cpr
WaveTrend
bool
false
check_wa
weekly open line
bool
false
co6
monthly open line
bool
false
co7
Show all 40 settings
Setting
Type
Default
Variable
weekly Pivot
bool
false
co8
Monthly pivot
bool
false
co9
Small Candles
bool
false
co24
Stochastic
bool
false
co25
C-125-Range Filter
bool
false
co26
Use alternate Anchor TimeFrame (0=none, max=1440 (mins,D,W)
int
0
anchor
EMA 200 Filter
bool
false
emaFilter
Give Only Fast+Slow Confluence Alerts
bool
false
ShowCon
Add Bar Colour Changes to Swing Alerts
bool
false
uOCCswing
Alert Lookback Length
int
6
Lookback
VWAP Source
source
close
VWAPSource
ORB total time (minutes)
int
15
inputMax
Session Time
session
0000-0015
sess
Factor
float
2.0
InputFactor
Lenght
int
10
InputLength
Source
source
close
srcrf
Sampling Period
int
100
per
Range Multiplier 1
float
2.0
mult_
Range Multiplier 2
float
4.0
mult2
Range Multiplier 3
float
6.0
mult3
Trade Filters (Open)
int
2
open_cond
Trade Filters (Close)
int
2
close_cond
%K Length
int
8
periodK
%K Smoothing
int
3
smoothK
%D Smoothing
int
5
periodD
Sell Above
float
70.0
stoch_ul
Buy Below
float
30.0
stoch_ll
barHeight
int
34
barHeight
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 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
Breakout Trend Follower is a price-chart strategy that enters long when price breaks a recent swing high. It places the stop at the recent swing low and trails that stop upward as higher lows form, exiting when a higher low is breached. A pivot lookback sets h
This strategy executes trades on short-term cryptocurrency charts using a combination of pivot support and resistance levels and a multi-pole smoothed trend filter. Entries trigger when price crosses the smoothed trend line and confirms above or below a short-
This strategy identifies trend retracements and breakout entries using an adjustable moving average ribbon alongside higher-timeframe anchored moving averages, fractal pivots, and support and resistance level extensions. Bar colors can be customized using a 3-
The Pivot Trendlines strategy identifies swing pivots on the price chart using a configurable swing lookback period and draws trendlines connecting these pivots. It generates buy and sell signals based on three-move patterns with user-defined move sizes, filte
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