Strategy · Pine Script v6 · On the chart

ES Professional Fade (Execution Gap Modeled)

by knectardev

This strategy fades opening gaps on ES during the New York regular session and draws on the price chart.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code196
Settings16inputs
LicenceNone stated
Last update9 months ago14 Jan 2026

Add It to Your TradingView Chart

  1. 1Copy the scriptPress Copy script above. It reads the file straight from GitHub.
  2. 2Open the Pine EditorOpen a TradingView chart and choose Pine Editor at the bottom of the screen.
  3. 3Paste over the templateCreate a new strategy, select all of the template text and paste. Press Save and give it a name.
  4. 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.

Details

Published by

knectardev on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Mean reversion, Sessions & time, Volatility & bands, Breakout

Markets

Indices

Timeframes

M1-M5, M15-H1

Risk Notes

No repainting, lookahead or stacked entries were found in its code or README. That says nothing about how well it works: test it first.

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Backtest Start Datetimetimestamp("2025-10-01 00:00")startDateInput
Backtest End Datetimetimestamp("2026-01-08 23:59")endDateInput
Min Gap %float0.20gapMinPctInput
Opening Range (Min)intOR_LENGTH_15MINopeningRangeLengthInput
Breadth Filter (TICK extreme)intDEFAULT_TICK_FILTERtickFilterInput
TICK veto lookback (bars)intDEFAULT_TICK_LOOKBACKtickLookbackInput
TICK veto countintDEFAULT_TICK_VETO_COUNTtickVetoCountInput
Max Hold (Bars, 5m)intDEFAULT_MAX_HOLD_BARSmaxHoldBarsInput
Max Trades Per DayintDEFAULT_MAX_TRADES_DAYmaxTradesDayInput
Use ATR gap filterbooltrueuseAtrFilterInput
ATR Length (chart TF)intDEFAULT_ATR_LENGTHatrLengthInput
Min Gap in ATRsfloatDEFAULT_GAP_ATR_MULTgapAtrMultInput
Show all 16 settings
SettingTypeDefaultVariable
Min Gap PointsfloatDEFAULT_MIN_GAP_POINTSminGapPointsInput
Apply execution penalty near openbooltrueuseExecPenaltyInput
Penalty window after open (mins)intDEFAULT_EXEC_WINDOWexecWindowMinsInput
Execution penalty (ES points)floatDEFAULT_EXEC_PENALTYexecPenaltyPointsInput
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.

Similar Pine Scripts

106 stars

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

Strategy v5 Sessions & timeBreakout Repaints
Updated 2 years ago · GPL-3.0 GitHub repository of 50 Pips A Day Strategy - Kaspricci

Turtle MACD Time-Zone Filter

by skywalker0803r
42 stars

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

Strategy v5 BreakoutOscillators & momentum
Updated 2 months ago · None stated GitHub repository of Turtle MACD Time-Zone Filter
13 stars

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

Strategy v5 Sessions & timeOscillators & momentum
Updated 8 months ago · Custom licence GitHub repository of ClaudeHedge - DAX Session Strategy

ORION: Hybrid Strategy

by eddiebelaval
7 stars

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

Strategy v5 Volatility & bandsBreakout
Updated 3 months ago · None stated GitHub repository of ORION: Hybrid Strategy

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers