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
Traders can select between EMA Pullback, Opening Range Breakout, or Liquidity Sweep setups with user-defined New York trading sessions. It handles position sizing derived from monetary risk allowances and incorporates fixed, ATR, or swing-based stop losses with matched risk-reward targets. The script also monitors strict risk parameters including daily loss thresholds, total loss cutoffs, and maximum trade frequency per day directly on the price chart.
Three selectable models: EMA Pullback, Opening Range, and Liquidity Sweep
Configurable stop-loss methods using fixed points, ATR, or swing levels
Account-level risk rules with daily drawdown limits and max trades
Fixed commission and tick-slippage modeling for micro and E-mini contracts
Session time filtering restricted to New York trading hours
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Instrument
string
MNQ
instrument
Strategy
string
EMA Pullback
model
Long signals
bool
true
enableLong
Short signals
bool
true
enableShort
Signal session (New York)
session
0930-1600
sessionInput
Fast EMA
int
9
fastLength
Slow EMA
int
21
slowLength
Trend EMA
int
50
trendLength
Opening range minutes
int
15
orMinutes
Swing bars each side
int
3
swingN
Stop methodology
string
Fixed
stopMethod
Fixed stop points
float
10
fixedPoints
Show all 23 settings
Setting
Type
Default
Variable
ATR SMA period
int
14
atrLength
ATR multiplier
float
1.5
atrMult
Maximum risk USD (cost reserve included)
float
50
risk
Risk:Reward
float
2
rr
Daily realized loss allowance
float
150
dailyLimit
Static realized loss allowance
float
1000
totalLimit
Maximum entries per NY day
int
3
maxTrades
Maximum consecutive losses per NY day
int
2
maxLosses
Commission per side (match Properties)
float
1
commissionReserve
Slippage ticks (match Properties)
int
1
slipTicks
Enable setup alerts (manual paper research)
bool
false
enableAlerts
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.
Ultimate PropFirm Strategy - QuantAlgo is an intraday trading system that combines Smart Money Concepts with exponential moving averages and volume filters on the main price chart. It identifies trend setups using Break of Structure, Fair Value Gaps, and order
This futures trading strategy combines Fair Value Gap (FVG) detection filtered by Average True Range (ATR) with multi-timeframe Exponential Moving Averages (8, 55, and 165 lengths). It identifies entry setups during a defined intraday trading session window wh
This intraday strategy implements Mark Fisher's Opening Range Breakout (ORB) methodology tailored for index futures like ES and NQ. It calculates session opening ranges, volume z-scores, and VWAP bands to plot support, resistance, and confirmation levels on th
P404 Smoke is a price-chart strategy that sequences an optional higher-timeframe EMA bias, a liquidity range from recent pivots, a sweep of buy-side or sell-side liquidity, and a market structure shift within a set bar window. Comments state it then looks for
This strategy trades Nikkei 225 futures during a configurable overnight session, defaulting to 19:00–03:00 ET. It builds long and short trend conditions from an 8/21 EMA pair and a 200-period SMA, with RSI, momentum, an ATR-scaled breakout range, and a volume
This strategy calculates the distance between the current price and the opposite end of a recent price gap. It trades against gap completion under the assumption that price will resume the prevailing trend after a partial gap fill. Take profit and stop loss va