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
A stack of optional filters must agree: VWAP, EMA, momentum, volume, a higher timeframe trend, a trend cloud, a VIX ceiling and a count of bullish or bearish large-cap tech stocks. Exits use an ATR stop, a partial first target and a main target. It limits trades per day and uses a fixed contract quantity. It draws on the price chart.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Pivot Touch Ticks
int
12
pivotTouchTicks
Stop ATR Multiplier
float
1.5
atrMultStop
TP1 ATR (partial)
float
1.0
atrMultTP1
TP2 ATR (main)
float
2.5
atrMultTP2
ATR Period
int
14
atrPeriod
Wick Ratio
float
0.50
wickRatio
Day Session (RTH)
session
0930-1600
sessionStart
VIX Max Level
float
30.0
vixMax
Min Mag 7 Bulls/Bears
int
4
mag7Min
Max Trades Per Day
int
8
maxTradesPerDay
Use VWAP Filter
bool
true
useVWAP
Use EMA Filter (hidden)
bool
true
useEMA
Show all 40 settings
Setting
Type
Default
Variable
Use Momentum Filter
bool
true
useMomentum
Use Volume Filter
bool
true
useVolume
Use Mag 7 Filter
bool
true
useMag7
Use VIX Filter
bool
true
useVIX
Use Higher TF Filter
bool
true
useHTF
Use Trend Cloud Filter
bool
true
useCloud
Fast EMA (logic only)
int
9
emaFast
Slow EMA (logic only)
int
21
emaSlow
Volume Multiplier
float
1.0
volMultiplier
Higher Timeframe
timeframe
60
htfPeriod
Show Trend Cloud
bool
true
showCloud
Cloud Fast Length
int
20
cloudFast
Cloud Slow Length
int
50
cloudSlow
Cloud Smoothing
int
3
cloudSmooth
Cloud Opacity (0-100)
int
75
cloudOpacity
Cloud Type
string
Hull MA
cloudStyle
Use Dynamic Touch Zones
bool
true
useDynamicZones
Lookback Bars
int
200
lookbackBars
Min Touches (was 3)
int
4
minTouches
Touch Zone Ticks
int
8
touchZoneTicks
Min Bars Between (was 5)
int
8
minBarsBetween
Zone Merge Ticks
int
10
zoneMergeTicks
Candidate Levels (recent bars)
int
50
zoneScanBars
Score Bonus at Zone
int
20
zoneRejectBonus
Premium Zone Touch Threshold
int
5
premiumThresh
Show Volume Profile
bool
true
showVP
VP Lookback Bars
int
78
vpLookback
VP Bins
int
40
vpBins
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 overlay strategy plots previous-day high and low, the daily open, and fair value gap zones on the price chart. It takes entries on a selectable timeframe when the FVG requirement and an optional session window allow them, then uses an ATR or fixed pip sto
This script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status
This overlay strategy targets one-minute ATOM scalps. It tracks pivot highs and lows as resistance and support, compares a three-period EMA with a multi-stage smoothed close, and flags long or short when price crosses that curve in the matching direction. Dail
P404 Smoke is a price-chart strategy that sequences an optional higher-timeframe EMA bias, a liquidity range from recent pivots, a sweep of buy-side or sell-side liquidity, and a market structure shift within a set bar window. Comments state it then looks for
This strategy plots a Fibonacci retracement of the previous day's high-low range on the price chart. It places a single long limit order at that level when the bar hour matches the chosen entry hour and the close is below the level. Position size follows the l
This intraday strategy implements session-based trading rules tailored for gold on short timeframes. It tracks the Asian session price range, VWAP, 20-period EMA, and previous day high and low levels to identify liquidity sweeps during London and New York trad