A futures strategy that bundles five entry styles, pivot rejection, dynamic zone rejection, opening range breakout, VWAP rejection and EMA bounce, each of which can be switched on or off.
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
Trades pass optional filters for VWAP, EMA, RSI momentum, volume, a VIX ceiling, large-cap tech breadth, a higher timeframe and a trend cloud. Risk uses an ATR stop and final target, with a staged trailing stop that moves to breakeven at 1R and then locks in gains at higher R levels. It limits trades per day.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
ATR Period
int
14
atrPeriod
Stop ATR Multiplier
float
1.5
atrMultStop
Final TP ATR
float
3.0
atrMultTP
Wick Ratio
float
0.50
wickRatio
RTH Session
session
0930-1600
sessionFilter
Max Trades / Day
int
4
maxTrades
VIX Max
float
30.0
vixMax
Min Mag7 Bulls/Bears
int
4
mag7Min
Enable Trailing Stop
bool
true
useTrailing
Move to Breakeven at 1R
bool
true
beAt1R
Lock 1R profit at 2R
bool
true
lockAt2R
Lock 2R profit at 3R
bool
true
lockAt3R
Show all 40 settings
Setting
Type
Default
Variable
Lock 3R profit at 4R
bool
true
lockAt4R
Pivot Rejection
bool
true
usePivot
Dynamic Zone Rejection
bool
true
useZones
Opening Range Breakout
bool
true
useORB
VWAP Rejection
bool
true
useVWAPRej
EMA Bounce
bool
true
useEMABnce
VWAP Filter
bool
true
useVWAP
EMA Filter
bool
true
useEMA
Momentum (RSI)
bool
true
useMom
Volume Filter
bool
true
useVol
Mag7 Filter
bool
true
useMag7
VIX Filter
bool
true
useVIX
Higher TF Filter
bool
true
useHTF
Trend Cloud Filter
bool
true
useCloud
Fast EMA
int
9
emaFast
Slow EMA
int
21
emaSlow
Volume Multiplier
float
1.0
volMult
Higher Timeframe
timeframe
60
htfTF
Pivot Touch Ticks
int
12
pivotTicks
Min Score
int
55
minScore
ORB Minutes (from open)
int
30
orbMins
ORB Volume Multiplier
float
1.3
orbVolMult
ORB TP (× range)
float
1.5
orbTpMultiple
VWAP Touch Tolerance (ATR)
float
0.35
vwapTolAtr
VWAP Volume Multiplier
float
1.2
vwapVolMult
EMA Touch Tolerance (ATR)
float
0.4
emaTolAtr
EMA Volume Multiplier
float
1.0
emaVolMult
Use Dynamic Zones
bool
true
useDynZones
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 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 tracks the high and low of a user-defined London session and plots the previous session levels as support and resistance. It flags a break beyond a level when price closes past an ATR buffer, then waits a set number of bars for a retest w
This strategy combines Opening Range Breakout (ORB) mechanics with Inner Circle Trader (ICT) concepts like Fair Value Gaps, Order Blocks, and liquidity grabs. It identifies session opening ranges and generates signals when price breaks out with supporting rela
This strategy detects Opening Range Breakouts in a specified session. It calculates the high and low of the opening range bar then plots these levels on the price chart and fills the area between them. Candles are colored based on their relation to the ORB hig
A strategy-type script for the price chart that marks the high, low and midpoint of the first part of each session, set by start hour and minute inputs, and alerts when price crosses above the high or below the low. It also plots VWAP and a 50-period EMA, pivo
A strategy built around the first regular-session candle of the US day in New York time, together with rejection levels collected from wicks formed during pre-market and after-hours sessions. Rejection levels within a tolerance percentage are grouped. Options