OPEN-SOURCE SCRIPT

4H & Daily Previous Candle + Fibonacci + OTE

67
# 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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.