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
In Sweeps mode it looks for a wick beyond a finished session level that closes back inside; Breakouts mode looks for a close beyond it. Optional EMA 200 and MA 22 filters apply. Trades use an ATR buffer, a reward-to-risk target and a daily trade cap, and a risk-reward box projects each idea. It also shows multi-timeframe RSI marks, a stats table and alerts.
Asia, London and New York session high and low levels
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Asia Session (Vienna Time)
session
0200-0800
asiaSess
London Session (Vienna Time)
session
0900-1200
londonSess
New York Session (Vienna Time)
session
1530-1900
nySess
Show Asia H/L
bool
true
showAsia
Show London H/L
bool
true
showLondon
Show NY H/L
bool
true
showNY
MA Length
int
22
maLen
Use EMA22 (else SMA)
bool
true
useEMA22
Trend EMA Len
int
200
trendLen
Show Trade Idea Projection
bool
true
showTrades
Use RR Box (cleaner than 3 lines)
bool
true
useRRBox
RR (TP = RR * Risk)
float
3.0
rr
Show all 27 settings
Setting
Type
Default
Variable
ATR Len
int
14
atrLen
ATR Buffer Mult
float
0.5
atrBufMult
Projection bars
int
150
projBars
Trend filter EMA200
bool
true
useTrendFil
MA22 filter
bool
false
useMA22Fil
Signal Mode
string
Sweeps
signalMode
Only on 15m Timeframe
bool
false
tf15mOnly
Enable strategy orders (backtest)
bool
true
enableOrders
Max trades per day
int
2
maxTradesPerDay
Show stats table (wins/losses)
bool
true
showStatsTable
Show RSI Buy/Sell Signals
bool
true
showRsiSignals
RSI Length
int
14
rsiLen
RSI Timeframe (Candle Period)
timeframe
15
rsiTf
RSI Oversold Level (Buy)
int
20
rsiOversold
RSI Overbought Level (Sell)
int
70
rsiOverbought
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.
This script monitors opening gap conditions and breakout behavior relative to the first candle's range across up to twenty configurable stock tickers. It detects whether following bars remain inside the opening range before breaking out, displaying the status
This strategy enters long or short on the price chart when price is on the correct side of a 200-period EMA, MACD agrees, RSI is not at the opposing extreme, ADX exceeds a threshold, volume beats a 20-bar average, and close breaks the recent high or low. A tim
This strategy enters long when price closes above the prior Donchian high and short when it closes below the prior Donchian low, only while flat and inside a Taipei-hour window. It exits on a MACD histogram reversal or through an ATR stop and a percentage take
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
This strategy tracks an opening session time range to establish directional bias and triggers pullback trades using Stochastic RSI. Once price breaks out of the initial range, it establishes a directional bias and enters when the Stochastic RSI crosses over in
This strategy evaluates breakout and trend opportunities on the price chart using a weighted composite score of volume, trend, and candlestick structure. It tracks volume spikes, fast and slow EMAs, higher-timeframe EMA trend alignment, opening ranges, and ses