Strategy · Pine Script v6 · On the chart

AlgoBot VWAP Mean Reversion Strategy

by ghostnathan30-ops

A futures strategy for 30-minute charts that fades extreme moves away from a daily-reset VWAP.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code141
Settings11inputs
LicenceNone stated
Last update6 months ago26 Apr 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

AlgoBot VWAP Mean Reversion Strategy looks for price beyond a configurable number of standard deviations from VWAP, a short RSI in oversold or overbought territory, and an ADX reading below a maximum to confirm a non-trending market. Entries are at the bar close between 10:00 and 14:30 New York time, with the stop at a wider deviation band, the target at VWAP, and positions flat before the close. Webhook alert fields are included.

Details

Published by

ghostnathan30-ops on GitHub

Type

Strategy, Pine Script v6

Draws

On the price chart

Category

Mean reversion, Support & resistance, Volume

Markets

Indices, Gold, Oil & commodities

Timeframes

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
Webhook SecretstringCHANGE_ME_RANDOM_SECRET_HEREwebhook_secret
MarketstringNQmarket
Risk Modestringsaferisk_mode
Max Contractsint1max_cts
Size Multiplierfloat1.0size_mult
RSI Long Threshold (oversold)int25rsi_long_thresh
RSI Short Threshold (overbought)int75rsi_short_thresh
Max ADX (non-trending)float25.0max_adx
Entry SD Levelfloat2.0sd_entry
Stop SD Levelfloat3.0sd_stop
GLS Scoreint70gls_score
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

Wyckoff Phase

by muammeryldrm42
7 stars

This strategy identifies Wyckoff consolidation ranges directly on the price chart to trade potential spring and upthrust events. It calculates highest highs and lowest lows over a customizable lookback period, filtering setups by average volume spikes and ATR

Strategy v5 SMC / ICT / price actionSupport & resistance
Updated 3 months ago · MIT GitHub repository of Wyckoff Phase
1 stars

This strategy identifies Initial Balance periods on NQ and ES futures charts using user-defined start and end hours in Eastern Time. It classifies days as narrow or wide based on average range lookback and skips narrow or trending days per settings. Entries tr

Strategy v6 Mean reversionSupport & resistance
Updated 7 months ago · MIT GitHub repository of IB Mean Reversion Fade

SMC + VWAP Edge Strategy

by StockPro-AI
1 stars

This strategy combines Smart Money Concepts with Order Blocks and Fair Value Gaps alongside multiple VWAP levels including session, weekly, monthly, and anchored variants. It detects confluence zones to generate long and short entry signals on the price chart.

Strategy v6 SMC / ICT / price actionSupport & resistance
Updated 6 months ago · None stated GitHub repository of SMC + VWAP Edge Strategy

Talons Wyckoff Phase

by muammeryldrm42
1 stars

A strategy that looks for spring and upthrust patterns inside a consolidation range. A spring is a high-volume bar that dips below the recent range low, closes back above it and closes up. An upthrust is the mirrored move above the range high. A range counts a

Strategy v5 Support & resistanceMean reversion
Updated 5 months ago · None stated GitHub repository of Talons Wyckoff Phase
330 stars

This strategy divides a fixed price range between an upper and a lower limit into equally spaced grid levels and plots them on the price chart. It marks a buy when price crosses down through a grid and a sell when price crosses up through a grid, using either

Strategy v5 Support & resistanceMean reversion Repaints
Updated 2 months ago · None stated GitHub repository of Grid Bot Simulator [Alorse]

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