OPEN-SOURCE SCRIPT
Custom Session ORB Breakout Strategy for Crypto

🧠 Strategy Logic Overview
Session Setup:
You define the start time (hour + minute in UTC) and duration (default 30 minutes).
The indicator tracks the high and low of that time window.
Breakout Detection (on 5-minute chart):
After the session window ends, the script looks for the first 5-minute candle that closes above or below the defined range.
The direction of the close determines the trade direction (Buy or Sell).
Entry & Risk Management:
Buy Signal: 5-min candle closes above session high.
Sell Signal: 5-min candle closes below session low.
TP = 2× the size of the session range
SL = 1× the size of the session range
These are fully adjustable via inputs.
🔍 Key Features
Feature Description
Works 24/7 Designed for crypto's non-stop trading hours
Custom Session Time Define your own range window (e.g. 00:00–00:30 UTC)
Breakout Entry Triggered by a candle close outside the range
Risk/Reward Built-In Automatically draws TP/SL based on session size
Clear Visuals Green line = session high, Red = session low, Blue = TP, Orange = SL
One Trade Per Session Script waits for exit before re-entering
🧩 User Inputs:
Take Profit Multiplier (default: 2.0× range)
Stop Loss Multiplier (default: 1.0× range)
Session Hour / Minute (UTC) – defines when to track the range
Session Duration – default is 30 minutes
Session Setup:
You define the start time (hour + minute in UTC) and duration (default 30 minutes).
The indicator tracks the high and low of that time window.
Breakout Detection (on 5-minute chart):
After the session window ends, the script looks for the first 5-minute candle that closes above or below the defined range.
The direction of the close determines the trade direction (Buy or Sell).
Entry & Risk Management:
Buy Signal: 5-min candle closes above session high.
Sell Signal: 5-min candle closes below session low.
TP = 2× the size of the session range
SL = 1× the size of the session range
These are fully adjustable via inputs.
🔍 Key Features
Feature Description
Works 24/7 Designed for crypto's non-stop trading hours
Custom Session Time Define your own range window (e.g. 00:00–00:30 UTC)
Breakout Entry Triggered by a candle close outside the range
Risk/Reward Built-In Automatically draws TP/SL based on session size
Clear Visuals Green line = session high, Red = session low, Blue = TP, Orange = SL
One Trade Per Session Script waits for exit before re-entering
🧩 User Inputs:
Take Profit Multiplier (default: 2.0× range)
Stop Loss Multiplier (default: 1.0× range)
Session Hour / Minute (UTC) – defines when to track the range
Session Duration – default is 30 minutes
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.