Strategy · Pine Script v6 · On the chart

VWAP Pullback Strategy MNQ

by jchi18

A strategy that rests a limit order at the session VWAP when a higher-timeframe 50 and 100 EMA stack shows an uptrend, VWAP is rising and price is above it, with the mirror image for shorts.

View on GitHub

GitHub stars1on the repository
Pine versionv6current
Lines of code174
Settings19inputs
LicenceNone stated
Last update4 months ago27 Jun 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

The stop is an ATR multiple beyond VWAP and the target is a fixed reward-to-risk ratio. It can limit trading to a morning window, require a stricter stretch grade, and size by fixed contracts or percent risk. Commission and slippage are preset for micro futures.

Details

Published by

jchi18 on GitHub

Draws

On the price chart

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
Bias timeframetimeframe60htfRes
Fast EMAint50emaFastLen
Slow EMAint100emaSlowLen
VWAP resetsstringRegular session (RTH)vwapReset
Regular session (for RTH mode)session0930-1600rthSess
Session timezonestringAmerica/New_YorksessTz
VWAP slope length (bars)int5slopeLen
Only trade during a time windowbooltrueuseWindow
Trade windowsession0930-1100winSess
Max one trade per dayboolfalseoncePerDay
Only take ★ A+ (strong trend + stretched) tradesbooltrueonlyAplus
A+: min stretch from VWAP (ATR)float1.0stretchMin
Show all 19 settings
SettingTypeDefaultVariable
ATR lengthint14atrLen
Stop = ATR ×float0.5stopMult
Target R:Rfloat1.25rr
SizingstringFixed contractssizeMode
Fixed contractsint1fixedQty
Risk per trade (%)float1.0riskPct
$ per point (MNQ=2, NQ=20, MES=5, ES=50)float2.0pointVal
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

4 stars

Lucid 100K is an automated evaluation strategy tailored for micro futures contracts such as MES, MGC, and MNQ on lower timeframes. It operates a two-phase state machine that moves from an initial risk-averse lock-in phase to an expanded payout phase once targe

Strategy v6 TrendMean reversion
Updated 2 days ago · None stated GitHub repository of Lucid 100K (MES/MGC/MNQ)
1 stars

This strategy enters long positions every Monday at 00:00 UTC on the 15-minute chart. It computes quantity as 10 percent of current equity divided by the bar close, rounded to three decimal places for stability. Market orders open the position and it flattens

Strategy v6 TrendMean reversion
Updated 6 days ago · Apache-2.0 GitHub repository of Parity probe 05 - small equity fraction

TnS_IctCombo_V6

by raybird
1 stars

This Pine Script strategy identifies high-confluence trading opportunities using ICT and SMC logic. It calculates a confluence score from HTF bias via EMA, FVG detection with lookback, liquidity sweep confirmation, market structure shift breaks, premium discou

Strategy v6 SMC / ICT / price actionTrend Repaints
Updated 2 months ago · None stated GitHub repository of TnS_IctCombo_V6
1 stars

A strategy that buys pullbacks in uptrends and sells rallies in downtrends. Trend comes from fast and slow EMAs with a minimum slope, an optional higher-timeframe EMA check defaulting to daily, and an ADX filter. A setup arms when price stretches an ATR distan

Strategy v6 Mean reversionTrend Repaints
Updated 7 days ago · GPL-3.0 GitHub repository of Trend-Aligned Mean Reversion Strategy

8 Whittle Down

by hasnocool
106 stars

This strategy executes short positions during the end-of-day session (14:29–15:00) when the price is below the 200-day simple moving average. If price moves higher against the initial short trade, it scales into the position by submitting a second short order

Strategy v4 TrendMoving averages
Updated 2 years ago · GPL-3.0 GitHub repository of 8 Whittle Down
330 stars

This strategy calculates Bollinger Bands and Aroon oscillator values to identify mean-reversion opportunities. It enters a long position using full equity when the closing price crosses below the lower Bollinger Band while Aroon Up remains above a user-specifi

Strategy v5 Mean reversionVolatility & bands
Updated 2 months ago · None stated GitHub repository of Bollinger bands + Aroon [Alorse]

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