Strategy · Pine Script v5 · On the chart

ICT ORB Strategy

by alboogycOdR

This strategy backtests opening-range breakouts on the price chart for New York, London, Asia, or a custom session.

View on GitHub

Repaints

GitHub stars6on the repository
Pine versionv5runs as is
Lines of code929
Settings40inputs
LicenceNone stated
Last update7 months ago16 Mar 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

Simple mode follows the opening-range direction when relative volume is high enough. ICT mode can require a fair value gap, displacement, and an order block, with a market-structure swing length. Size is set from account risk, capped by equity, with optional Kelly sizing, a daily trade limit, and a daily loss cap. Stops use a share of ATR and targets use a fixed method. A date window limits the test. Higher-timeframe reads use lookahead.

Details

Published by

alboogycOdR on GitHub

Type

Strategy, Pine Script v5

Draws

On the price chart

Category

Breakout, SMC / ICT / price action, Sessions & time, Volume

Markets

Any symbol

Timeframes

M15-H1

Risk Notes

  • Reads higher-timeframe data with lookahead on, so the history can show signals that were not there in real time

Settings

The inputs you can change from the gear icon on the chart. Defaults are the author's.

SettingTypeDefaultVariable
Backtest Start Datetimetimestamp("2023-01-01")startDate
Backtest End Datetimetimestamp("2025-12-31")endDate
🎯 Strategy ProfilestringResearch ModestrategyProfile
📚 Use Simple Mode (Research Based)booltrueuseSimpleMode
Risk Per Trade (%)float1.0accountRiskPercent
Max Position Size (% of equity)float25.0maxPositionSize
Use Kelly CriterionboolfalseuseKellyFormula
Max Trades Per Dayint3maxDailyTrades
Max Daily Loss (%)float3.0maxDailyLoss
Session TypestringNew YorkorbSessionType
ORB Duration (minutes)int15ORB Duration (minutes)
Custom Start Hourint9orbStartTimeHour
Show all 40 settings
SettingTypeDefaultVariable
Custom Start Minuteint30orbStartTimeMinute
Follow Opening Range Direction OnlybooltruefollowOpeningBias
Simple Mode RVol Thresholdfloat2.0Simple Mode RVol Threshold
Stop Loss (% of ATR)float10.0Stop Loss (% of ATR)
🔬 Use Enhanced RVolbooltrueuseEnhancedRVol
RVol Lookback Daysint14rvolLookbackDays
Require Minimum RVolbooltruerequireMinRVol
Minimum RVolfloat1.0minRVolThreshold
Trade Only Top 20 by RVolboolfalseonlyTopStocks
Entry Method (ICT Mode)stringFVGexecutionType
Require DisplacementbooltruerequireDisplacement
Require Order BlockbooltruerequireOBConfluence
MSS Swing Lengthint10mssOffset
Enable Range FilterbooltrueuseRangeFilter
Narrow Range (% of ATR)float0.5narrowRangeATR
Wide Range (% of ATR)float1.5wideRangeATR
Avoid Wide RangesbooltrueavoidWideRanges
Target MethodstringFixedtargetMethod
Target R:R Ratiofloat2.0Target R:R Ratio
Use Partial TPbooltrueusePartialTakeProfit
Partial TP %float50.0partialTPPercent
Partial TP at Rfloat1.0partialTPRatio
Move to BreakevenbooltruemoveToBreakeven
Breakeven at Rfloat1.0breakevenRatio
Use Trailing StopboolfalseuseTrailingStop
Trailing Stop (ATR)float2.0trailingStopATR
Close at End of DaybooltruecloseEndOfDay
Use HTF BiasbooltrueuseHTFBias
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

39 stars

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

Strategy v6 BreakoutSessions & time Repaints
Updated 4 days ago · MIT GitHub repository of Futures Intraday Pro (ES/NQ) Strategy
23 stars

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

Strategy v6 TrendVolume Repaints
Updated 3 weeks ago · Custom licence GitHub repository of TradingAlpha Point-Clip Strategy

This strategy tracks GBP/USD market structure by storing confirmed pivot highs and lows. It enters long when price crosses above the last pivot high while above a trend EMA, and short when price crosses below the last pivot low while below that EMA. Entries oc

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · MIT GitHub repository of GBP/USD Market Structure [trugurpala]

PropFirm Elite Strategy - QuantAlgo

by thesenegalesehitch
4 stars

This price-chart strategy scores Smart Money Concepts setups from break of structure, fair value gaps, order blocks, and volume spikes. A minimum score, optional London and New York killzones, and four-hour plus daily bias filter entries. Position size uses a

Strategy v6 SMC / ICT / price actionSessions & time
Updated 4 months ago · Custom licence GitHub repository of PropFirm Elite Strategy - QuantAlgo

FYP Bot 1

by aleks-drozy
2 stars

This strategy executes trades based on a combination of Smart Money Concepts, including Inverse Fair Value Gaps (IFVG) and Change in State of Delivery (CISD) structure breaks. Entries require confluence between IFVG flips, structural CISD breaks, a 20-period e

Strategy v6 SMC / ICT / price actionTrend
Updated 2 months ago · MIT GitHub repository of FYP Bot 1

Smart Money Breakouts strategy

by wynnforthework
2 stars

Smart Money Breakouts strategy is a price-chart overlay strategy that detects breakouts using volume-adjusted swing highs and lows. It calculates candle wicks or bodies, applies ATR-based adjustment for targets, and supports limit-order entries with coefficien

Strategy v5 SMC / ICT / price actionBreakout Repaints
Updated 1 year ago · None stated GitHub repository of Smart Money Breakouts strategy

More strategys

Trade Your Charts With a Regulated Broker

Compare brokers that connect to TradingView, with spreads, minimum deposits and leverage side by side.

Compare brokers