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 indicator, select all of the template text and paste. Press Save and give it a name.
4Add it to the chartPress Add to chart, then adjust the settings with the gear icon next to its name.
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
ZeroDTE Backend Mirror watches an opening observation window, then flags directional entries when stochastic, RSI, trend, a VWAP alignment gate and a confluence count agree, within a set time window and cooldown. It also estimates option strike targets from realized volatility with a Black-Scholes model. Settings cover timing cutoffs, thresholds, wing width and a manual event mute. It is designed for a five-minute index chart.
Opening-range observation window
Confluence-gated directional signals with VWAP gate
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Observation window (min)
int
15
iObsMin
Volatile regime mult (obsRange/ATR_D1)
float
1.5
iVolMult
Cooldown bars (same direction)
int
6
iCooldown
No-new-entry hour (ET)
int
14
iCutoffH
No-new-entry minute (ET)
int
0
iCutoffM
Stoch high thr
int
80
iStochHi
Stoch low thr
int
20
iStochLo
Trend EMA-spread thr (%)
float
0.05
iTrendThr
Min confluence (of 4)
int
3
iConfMin
Conf RSI overbought
float
65
iRsiHi
Conf RSI oversold
float
35
iRsiLo
Conf near-EMA10 max ext (%)
float
0.30
iNearEmaPct
Show all 21 settings
Setting
Type
Default
Variable
Prime start hour (ET)
int
10
iPrimeStartH
Prime start min (ET)
int
30
iPrimeStartM
Prime end hour (ET)
int
13
iPrimeEndH
Prime end min (ET)
int
0
iPrimeEndM
VWAP alignment gate (mandatory)
bool
true
iVwapGate
Macro blackout today (mute signals)
bool
false
iMuteToday
Wing ($, SPX)
float
10.0
iWing
Premium mult (IV/RV)
float
1.20
iPremiumMult
TP % of credit
float
90
iTpPct
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 indicator plots auto trade signals for E-mini S&P 500 futures on the price chart. It computes an EMA200 filter along with day ETH RTH session levels and percentage-based entry zones. Signals trigger CALL or PUT cases when price crosses defined thresholds
Leptokurtic Directional Bias is an overlay indicator that measures kurtosis on a chosen source and marks directional bias on the price chart. The source can be a moving average, ATR, volume, close, or a Bollinger-band trend stop. Bias mode switches among RSI m
This overlay indicator plots a session VWAP that resets daily plus pivot-anchored VWAP highs and lows. It marks price crosses of those VWAPs, crosses between session and anchored VWAPs, and clusters where several VWAP lines sit close together. Display mode, cl
This indicator identifies long mean-reversion trade opportunities when price stretches significantly below the Volume Weighted Average Price (VWAP). It triggers a signal during regular trading hours when price moves a defined minimum number of ticks below VWAP
This indicator tracks the low of day and high of day during the specified RTH session hours in the New York timezone. It calculates the high at the current low of day (lod_h) and the low at the current high of day (hod_l). Horizontal lines are drawn at these l
This indicator plots entry signals and moving average lines for three Fibonacci-period strategies directly on the price chart: Momentum Breakout, Mean Reversion, and Fibonacci Retracement. Each strategy uses combinations of Fibonacci-length moving averages (su