OPEN-SOURCE SCRIPT
4H & Daily Previous Candle + Fibonacci + OTE

# Multi-Timeframe OTE & Fibonacci Indicator (4H & Daily)
This Pine Script v5 indicator is designed for traders who utilize **Optimal Trade Entry (OTE)** zones and **Fibonacci retracements** based on higher timeframe market structures. It automatically identifies and plots key levels from the previous 4-hour and Daily candles to help find high-probability reversal zones.
## Key Features
### 1. Dual Timeframe OTE Zones
- **4H OTE Zone**: Automatically calculates and shades the Optimal Trade Entry area (default 61.8% - 78.6%) based on the previous 4-hour candle's range.
- **Daily OTE Zone**: Plots a secondary OTE zone based on the previous Daily candle, allowing for multi-timeframe confluence analysis.
- **Dynamic Adaptation**: The zones automatically flip based on whether the previous candle was bullish or bearish, ensuring you are always looking at the correct retracement levels.
### 2. Automated Market Structure
- **High/Low Tracking**: Plots clear horizontal lines for the previous 4H and Daily Highs and Lows.
- **Visual Distinction**: Daily levels are highlighted with thicker lines to distinguish them from 4H levels.
- **Price Labels**: Displays real-time price labels for all structural levels for quick reference.
### 3. Customizable Fibonacci Retracements
- **4H Fibonacci Levels**: Plots standard retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) for the 4H timeframe.
- **Fully Adjustable**: Users can input custom Fibonacci levels via the settings menu.
### 4. Real-Time Information Dashboard
- **Range Summary**: A clean table in the top-right corner displays the total pip/point range for both the previous 4H and Daily candles.
- **Clean UI**: All visual elements (colors, line widths, labels) can be toggled or customized to fit any chart theme.
## How to Use
This indicator is ideal for "Smart Money" or "ICT" style trading. Look for **confluence** where the 4H OTE zone overlaps with the Daily OTE zone or other key structural levels to identify high-precision entry points.
This Pine Script v5 indicator is designed for traders who utilize **Optimal Trade Entry (OTE)** zones and **Fibonacci retracements** based on higher timeframe market structures. It automatically identifies and plots key levels from the previous 4-hour and Daily candles to help find high-probability reversal zones.
## Key Features
### 1. Dual Timeframe OTE Zones
- **4H OTE Zone**: Automatically calculates and shades the Optimal Trade Entry area (default 61.8% - 78.6%) based on the previous 4-hour candle's range.
- **Daily OTE Zone**: Plots a secondary OTE zone based on the previous Daily candle, allowing for multi-timeframe confluence analysis.
- **Dynamic Adaptation**: The zones automatically flip based on whether the previous candle was bullish or bearish, ensuring you are always looking at the correct retracement levels.
### 2. Automated Market Structure
- **High/Low Tracking**: Plots clear horizontal lines for the previous 4H and Daily Highs and Lows.
- **Visual Distinction**: Daily levels are highlighted with thicker lines to distinguish them from 4H levels.
- **Price Labels**: Displays real-time price labels for all structural levels for quick reference.
### 3. Customizable Fibonacci Retracements
- **4H Fibonacci Levels**: Plots standard retracement levels (23.6%, 38.2%, 50%, 61.8%, 78.6%) for the 4H timeframe.
- **Fully Adjustable**: Users can input custom Fibonacci levels via the settings menu.
### 4. Real-Time Information Dashboard
- **Range Summary**: A clean table in the top-right corner displays the total pip/point range for both the previous 4H and Daily candles.
- **Clean UI**: All visual elements (colors, line widths, labels) can be toggled or customized to fit any chart theme.
## How to Use
This indicator is ideal for "Smart Money" or "ICT" style trading. Look for **confluence** where the 4H OTE zone overlaps with the Daily OTE zone or other key structural levels to identify high-precision entry points.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน