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
ES Professional Fade (Execution Gap Modeled) checks the gap against a minimum percentage, a minimum point size, and an optional ATR multiple, then uses a five-, fifteen-, or thirty-minute opening range. A NYSE TICK extreme filter can veto entries after repeated extremes. Near the open it can apply an execution penalty and uses stop orders. Exits include a take-profit or stop-loss, a bar-count timeout, and an end-of-day close, with a daily trade limit.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Backtest Start Date
time
timestamp("2025-10-01 00:00")
startDateInput
Backtest End Date
time
timestamp("2026-01-08 23:59")
endDateInput
Min Gap %
float
0.20
gapMinPctInput
Opening Range (Min)
int
OR_LENGTH_15MIN
openingRangeLengthInput
Breadth Filter (TICK extreme)
int
DEFAULT_TICK_FILTER
tickFilterInput
TICK veto lookback (bars)
int
DEFAULT_TICK_LOOKBACK
tickLookbackInput
TICK veto count
int
DEFAULT_TICK_VETO_COUNT
tickVetoCountInput
Max Hold (Bars, 5m)
int
DEFAULT_MAX_HOLD_BARS
maxHoldBarsInput
Max Trades Per Day
int
DEFAULT_MAX_TRADES_DAY
maxTradesDayInput
Use ATR gap filter
bool
true
useAtrFilterInput
ATR Length (chart TF)
int
DEFAULT_ATR_LENGTH
atrLengthInput
Min Gap in ATRs
float
DEFAULT_GAP_ATR_MULT
gapAtrMultInput
Show all 16 settings
Setting
Type
Default
Variable
Min Gap Points
float
DEFAULT_MIN_GAP_POINTS
minGapPointsInput
Apply execution penalty near open
bool
true
useExecPenaltyInput
Penalty window after open (mins)
int
DEFAULT_EXEC_WINDOW
execWindowMinsInput
Execution penalty (ES points)
float
DEFAULT_EXEC_PENALTY
execPenaltyPointsInput
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 on the price chart and combines an opening-range breakout with gap-fill logic. It builds the range from a fixed 9:30 start for a user-set number of minutes, then marks breaks of the range high or low. Gaps are classed as full or partial fro
Calculates standard Bollinger Bands and identifies band expansion breakouts where upper and lower bands move in opposite directions. It enters long positions when price breaks above the upper band with a high candle body percentage, and enters short positions
This strategy places buy-stop and sell-stop orders around the opening-session high and low, offset by a user-defined pip gap, and only allows those orders during a separate trading session. It exits with a fixed or ATR-based stop loss and a matching take-profi
This strategy enters long when price closes above the prior Donchian high and short when it closes below the prior Donchian low, only while flat and inside a Taipei-hour window. It exits on a MACD histogram reversal or through an ATR stop and a percentage take
This strategy overlays the price chart to trade DAX futures during European market hours. It calculates exponential and simple moving averages, RSI, MACD, Bollinger Bands, ATR, and realized volatility to simulate VIX levels. Trades execute when session time fi
This strategy identifies volatility breakout opportunities by constructing dynamic ATR-based price boxes and detecting volatility squeezes. Trades are filtered using an exponential moving average trend condition and designated session hours. Entries trigger up