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
Entries can require a full seven-point trend template, a VCP squeeze, a volume surge, and optional SmartMCDX banker bars. It plots the 21 EMA, the 50, 150 and 200 SMAs, base trend lines, and a status table. Exits use a percentage hard stop, a half-position partial target, a move to break-even, and a 21-EMA trail on the runner, plus an optional banker-drop exit. Default sizing uses the full equity.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Require Full TPR (7/7) for Entry
bool
true
req_tpr
Require VCP Squeeze for Entry
bool
false
req_vcp
Require Volume Surge on Breakout
bool
true
req_vol_surge
Volume Surge Multiplier
float
1.0
vol_mult
Initial Hard Stop Loss %
float
4.5
sl_pct
Take Partial Profit (Sell 50%)
bool
true
use_partial_tp
Partial TP Target %
float
5.0
partial_tp_pct
Move Stop to Break-Even
bool
true
use_breakeven
Break-Even Trigger %
float
4.0
be_trigger_pct
Use 21-EMA Trailing Stop for Runner
bool
true
use_trail
Activate Trail After % Profit
float
3.0
trail_activation
Require Banker (Red Bars) for Entry
bool
false
use_mcdx_entry
Show all 33 settings
Setting
Type
Default
Variable
Min Banker % for Entry
float
0.0
mcdx_entry_val
Smart Exit: Sell if Banker Drops
bool
false
use_mcdx_exit
Exit Danger Threshold %
float
0.0
mcdx_exit_val
21 EMA Length
int
21
len_ema21
50 SMA Length
int
50
len_sma50
150 SMA Length
int
150
len_sma150
200 SMA Length
int
200
len_sma200
21 EMA Color
color
color.new(color.yellow, 50)
c_ema21
50 SMA Color
color
color.blue
c_sma50
150 SMA Color
color
color.orange
c_sma150
200 SMA Color
color
color.red
c_sma200
Table Position
string
Top Right
table_pos_input
Table Size
string
Small
table_size_input
H1 Lookback (Bars)
int
21
h1_lookback
Sub-High Left Bars
int
3
h_pivot_left
Sub-High Right Bars
int
3
h_pivot_right
Max Base Depth %
float
35.0
max_depth_pct
Show Only Latest Line per Anchor
bool
true
keep_latest
VCP Squeeze Tightness %
float
2.5
vcp_thresh
Require Volume Contraction for VCP
bool
true
req_vol_contraction
Benchmark Symbol
symbol
SPY
bm_sym
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
This strategy executes trades based on crossovers between a 12-period and a 26-period exponential moving average (EMA). Long positions can be filtered by pivot resistance breakouts and RSI boundary ranges. For trade management, it provides two configurable par
This strategy trades long breakouts of a fast and a slow moving average on the price chart. It opens a long position when price crosses above either average, using a percentage of equity as size. It reduces the position by a set share when the high reaches the
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 trades longs and shorts on the price chart. Long entries require a close above the prior Donchian high, a close above a long-term SMA, and RSI above a threshold, with size set as a percentage of equity. Long exits use a stop at the prior Donchian
This strategy plots Donchian channels, trailing stops, and profit targets directly on the price chart. It enters breakout trades using a 55-bar Donchian channel and sizes positions according to an ATR-based risk percentage per unit. The system adds units as pr