PROTECTED SOURCE SCRIPT
O.C. buy/sell by maliwru + TP & SL + Table

O.C. Buy/Sell + TP/SL + Table — by maliwru
This indicator detects trade entry signals based on the Opening Candle strategy using the first bar of the trading session.
🔍 Key Features:
Automatic session time detection (Saudi, US, or Custom)
Visual Buy/Sell signals
Auto-calculated and drawn Take Profit 1/2/3 and Stop Loss
SL can be set by % or points
Supports VWAP and EMA200 overlays
Real-time chart labels and lines
Trade summary table showing last 2 trades with TP/SL status
💡 Best for:
Intraday traders
Session range-based setups
Open range breakout strategies
📋 Customizable Settings:
Session time
Colors
Candle duration (in ms)
SL/TP modes and levels

📘 User Guide:
O.C. Buy/Sell + TP/SL + Table — by maliwru
Open Candle Session Breakout Indicator with Auto TP/SL and Trade Summary Table
🔎 What is this indicator?
This indicator detects high-probability Buy/Sell signals based on the first (Opening) candle of a trading session. It is built for intraday traders who want to capitalize on early session breakouts with predefined TP and SL levels, along with clear visual feedback.
🧠 How it works:
Opening Candle (O.C.):
At the start of the selected session (e.g. Saudi, US, or Custom), the first candle is marked as the reference or opening candle.
Signal Generation:
Buy signal is triggered when price breaks above the high of the opening candle.
Sell signal is triggered when price breaks below the low of the opening candle.
Take Profits & Stop Loss:
TP1, TP2, and TP3 are automatically plotted using customizable multipliers.
SL is calculated based on % risk, point distance, or a fixed method — all adjustable in settings.
Trade Summary Table:
The indicator displays the last 2 signals with:
Direction (Buy/Sell)
Entry Price
TP/SL levels
TP/SL hit status (real-time update)
⚙️ Settings Overview
Category Description
Session Type Choose between Saudi, US, or Custom. Automatically adjusts to session start times.
Custom Session Time If Custom is selected, manually set start hour & minute.
VWAP / EMA200 Toggle overlays for VWAP and EMA200 for confluence analysis.
SL Mode Select from % of entry, fixed points, or auto from O.C. range.
TP Multipliers Set levels for TP1, TP2, TP3 (e.g. 1.0x, 1.5x, 2.0x of O.C. range).
Colors & Style Customize candle colors, TP/SL lines, signal arrows, and table style.
Candle Duration (ms) Optional — for tick-based setups or special sessions.
✅ Benefits
🔄 Automatic session detection: Works out of the box for Saudi and US markets.
🎯 Precise entry logic: Based on real breakout of the first session candle.
📉 Risk management built-in: SL and TP levels auto-calculated.
📊 Visual clarity: Real-time labels, arrows, and TP/SL lines on chart.
📈 VWAP & EMA200 filters: Help avoid false breakouts.
📋 Compact trade summary: Table shows entry, outcome, and hit levels.
🔧 Fully customizable: Adjust almost every aspect to fit your strategy.
💡 Tips for Best Use
Use it on 5m to 30m charts for intraday setups.
Combine with volume spikes, VWAP, or EMA200 for confirmation.
Avoid trading during low liquidity or high-impact news releases.
Experiment with different TP/SL multipliers depending on market volatility.
Use table status to review recent trade performance at a glance.

📌 Example Workflow
Set session type = US Market
Wait for the first candle to complete after market open
If price breaks above candle high → Buy
If price breaks below candle low → Sell
SL and TP levels are drawn automatically
Track results in the live table

This indicator detects trade entry signals based on the Opening Candle strategy using the first bar of the trading session.
🔍 Key Features:
Automatic session time detection (Saudi, US, or Custom)
Visual Buy/Sell signals
Auto-calculated and drawn Take Profit 1/2/3 and Stop Loss
SL can be set by % or points
Supports VWAP and EMA200 overlays
Real-time chart labels and lines
Trade summary table showing last 2 trades with TP/SL status
💡 Best for:
Intraday traders
Session range-based setups
Open range breakout strategies
📋 Customizable Settings:
Session time
Colors
Candle duration (in ms)
SL/TP modes and levels
📘 User Guide:
O.C. Buy/Sell + TP/SL + Table — by maliwru
Open Candle Session Breakout Indicator with Auto TP/SL and Trade Summary Table
🔎 What is this indicator?
This indicator detects high-probability Buy/Sell signals based on the first (Opening) candle of a trading session. It is built for intraday traders who want to capitalize on early session breakouts with predefined TP and SL levels, along with clear visual feedback.
🧠 How it works:
Opening Candle (O.C.):
At the start of the selected session (e.g. Saudi, US, or Custom), the first candle is marked as the reference or opening candle.
Signal Generation:
Buy signal is triggered when price breaks above the high of the opening candle.
Sell signal is triggered when price breaks below the low of the opening candle.
Take Profits & Stop Loss:
TP1, TP2, and TP3 are automatically plotted using customizable multipliers.
SL is calculated based on % risk, point distance, or a fixed method — all adjustable in settings.
Trade Summary Table:
The indicator displays the last 2 signals with:
Direction (Buy/Sell)
Entry Price
TP/SL levels
TP/SL hit status (real-time update)
⚙️ Settings Overview
Category Description
Session Type Choose between Saudi, US, or Custom. Automatically adjusts to session start times.
Custom Session Time If Custom is selected, manually set start hour & minute.
VWAP / EMA200 Toggle overlays for VWAP and EMA200 for confluence analysis.
SL Mode Select from % of entry, fixed points, or auto from O.C. range.
TP Multipliers Set levels for TP1, TP2, TP3 (e.g. 1.0x, 1.5x, 2.0x of O.C. range).
Colors & Style Customize candle colors, TP/SL lines, signal arrows, and table style.
Candle Duration (ms) Optional — for tick-based setups or special sessions.
✅ Benefits
🔄 Automatic session detection: Works out of the box for Saudi and US markets.
🎯 Precise entry logic: Based on real breakout of the first session candle.
📉 Risk management built-in: SL and TP levels auto-calculated.
📊 Visual clarity: Real-time labels, arrows, and TP/SL lines on chart.
📈 VWAP & EMA200 filters: Help avoid false breakouts.
📋 Compact trade summary: Table shows entry, outcome, and hit levels.
🔧 Fully customizable: Adjust almost every aspect to fit your strategy.
💡 Tips for Best Use
Use it on 5m to 30m charts for intraday setups.
Combine with volume spikes, VWAP, or EMA200 for confirmation.
Avoid trading during low liquidity or high-impact news releases.
Experiment with different TP/SL multipliers depending on market volatility.
Use table status to review recent trade performance at a glance.
📌 Example Workflow
Set session type = US Market
Wait for the first candle to complete after market open
If price breaks above candle high → Buy
If price breaks below candle low → Sell
SL and TP levels are drawn automatically
Track results in the live table
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
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 dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya dengan percuma dan tanpa had – ketahui lebih lanjut di sini.
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.