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.
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 strategy, select all of the template text and paste. Press Save and give it a name.
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.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Bias timeframe
timeframe
60
htfRes
Fast EMA
int
50
emaFastLen
Slow EMA
int
100
emaSlowLen
VWAP resets
string
Regular session (RTH)
vwapReset
Regular session (for RTH mode)
session
0930-1600
rthSess
Session timezone
string
America/New_York
sessTz
VWAP slope length (bars)
int
5
slopeLen
Only trade during a time window
bool
true
useWindow
Trade window
session
0930-1100
winSess
Max one trade per day
bool
false
oncePerDay
Only take ★ A+ (strong trend + stretched) trades
bool
true
onlyAplus
A+: min stretch from VWAP (ATR)
float
1.0
stretchMin
Show all 19 settings
Setting
Type
Default
Variable
ATR length
int
14
atrLen
Stop = ATR ×
float
0.5
stopMult
Target R:R
float
1.25
rr
Sizing
string
Fixed contracts
sizeMode
Fixed contracts
int
1
fixedQty
Risk per trade (%)
float
1.0
riskPct
$ per point (MNQ=2, NQ=20, MES=5, ES=50)
float
2.0
pointVal
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.
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
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
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
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
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
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