1Copy the scriptPress Copy script above, or the copy button on the code below.
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
88 lines of Pine Script v5 from 15_London_Breakout/15_London_Breakout.pine, published under MPL-2.0 (file header). Keep the author's credit and licence lines when you reuse it.
During the London window it enters long when price closes above the range high plus a pip buffer, or short when it closes below the range low minus the buffer, while flat and under a daily trade limit. Stop loss is an ATR multiple and take profit uses a risk-to-reward ratio; remaining positions close outside the London and close windows. It draws the Asian range on the price chart. Entries use the live bar close, so they can change before the bar finishes.
The inputs you can change from the gear icon on the chart. Defaults are the author's.
Setting
Type
Default
Variable
Asian Range Session (UTC)
session
0000-0700
asianSession
London Trading Window (UTC)
session
0700-1100
londonSession
Close Window (UTC)
session
1100-1600
closeSession
Breakout Buffer (pips)
float
5
bufferPips
Pip Value
float
0.0001
pipValue
ATR Length
int
14
atrLength
ATR Multiplier for SL
float
1.5
atrMult
Risk:Reward Ratio
float
2.0
rrRatio
Max Trades Per Day
int
1
maxTrades
Show Asian Range Box
bool
true
showBox
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 strategy places buy-stop and sell-stop orders around the opening-session high and low, offset by a user-defined pip gap, and only allows those orders during a separate trading session. It exits with a fixed or ATR-based stop loss and a matching take-profi
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 strategy identifies volatility breakout opportunities by constructing dynamic ATR-based price boxes and detecting volatility squeezes. Trades are filtered using an exponential moving average trend condition and designated session hours. Entries trigger up
This overlay strategy builds independent timed session ranges and marks range, trendline, mean, VWAP, and high-low levels when those displays are enabled. It enters on range breakouts and exits with strategy exits, choosing among range, ATR, fixed-point, and r
This strategy builds the opening range high and low during the first configurable minutes of the New York regular session, then enters on a close break of that range. A long triggers when price crosses above the range high while flat; a short triggers on a cro
ORB Hunter is an Opening Range Breakout strategy that identifies price breakouts beyond a defined opening session window (such as 09:30 to 09:45 EST). It places long or short trades when price crosses the opening range bounds with buffer, confirmed by optional