Indicator · Pine Script v5 · On the chart

ZeroDTE Wave v1

by xynkro

An overlay that marks reversal entries and exits for same-day index option trades on five-minute bars.

View on GitHub

GitHub stars1on the repository
Pine versionv5runs as is
Lines of code585
Settings40inputs
LicenceNone stated
Last updateyesterday28 Oct 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 indicator, select all of the template text and paste. Press Save and give it a name.
  4. 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

Entries need a stochastic reversal cross, an EMA trend filter, a cooldown and a time window, and must pass a confluence score, a VIX stand-aside gate, an optional VWAP gate and a daily trade cap. Exits are labelled for stop, take profit, time or end of day, with paired numbered labels. Settings cover thresholds, volatility-scaled targets and manual event blackout. It is a visual mirror of the author's backend logic.

Details

Published by

xynkro on GitHub

Draws

On the price chart

Markets

Indices

Timeframes

M1-M5

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
Min confluence score (out of 6)int3minConfluence
Full-size threshold (out of 6)int4fullSizeConf
Max trades per dayint3maxTradesPerDay
Macro blackout (FOMC/CPI day)boolfalsemanualBlackout
VIX symbolstringCBOE:VIX1DvixSymbol
VIX stand-aside thresholdfloat22.0vixStandAside
Max extension from EMA10 (%)float0.30extensionPct
Vol-scaled TP (ATR-based)booltrueuseVolScaledTp
TP = N x ATR(D1)float0.4tpAtrMult
Same-bar exit guard (TP/TIME)booltruesameBarGuard
Mid-session vol re-gatebooltruemidSessionRegate
Mid-session vol multiplierfloat2.0midVolMult
Show all 40 settings
SettingTypeDefaultVariable
VWAP gate (canonical mean-rev)booltrueuseVwapGate
Prime window start hour ETint10primeWinStartH
Prime window start min ETint30primeWinStartM
Prime window end hour ETint13primeWinEndH
Prime window end min ETint0primeWinEndM
Suppress counter-trend signalsbooltrueuseTrendFilter
EMA fast lengthint10emaFastLen
EMA slow lengthint30emaSlowLen
Trend spread threshold (pct)float0.05trendThresholdPct
Stoch %K lengthint14stochKLen
Stoch %D smoothingint3stochDLen
Stoch high threshold (CALL)int75stochHighThr
Stoch low threshold (PUT)int25stochLowThr
Cooldown bars (same direction)int6cooldownBars
Session start hour ETint9sessionStartH
Session start min ETint30sessionStartM
Observation window length (min)int15obsWindowMin
No-new-entry hour ETint14noNewEntryH
No-new-entry min ETint0noNewEntryM
RSI lengthint14rsiLen
RSI overbought (CALL conf)int65rsiCallThr
RSI oversold (PUT conf)int35rsiPutThr
WVF periodint22wvfPeriod
WVF BB multiplierfloat2.0wvfBbMult
Strike distance pct OTMfloat1.5strikeDistancePct
TP favorable move pctfloat0.3favMovePct
TIME stop min before closeint30timeStopMin
STOP requires bar CLOSE through strikebooltruestopRequiresBarClose
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

257 stars

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

Indicator v6 TrendSupport & resistance
Updated 6 weeks ago · None stated GitHub repository of Auto Trade Futures ES
46 stars

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

Indicator v5 Volatility & bandsMean reversion
Updated 7 weeks ago · None stated GitHub repository of Leptokurtic Directional Bias

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

Indicator v6 VolumeSessions & time
Updated 2 days ago · MIT GitHub repository of VWAP Cross Visuals [WavesUnchained]
5 stars

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

Indicator v5 Mean reversionVolume
Updated 5 months ago · Custom licence GitHub repository of Path B — VWAP Reversion (Demo)
3 stars

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

Indicator v5 Sessions & timeSupport & resistance
Updated 5 months ago · None stated GitHub repository of Day Trading Reversal System

More Mean reversion scripts

Related on ForexR

Trade Your Charts With a Regulated Broker

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

Compare brokers