asami.Fib Zones & Multi-Market Open Lines with Alerts

**Summary**
This indicator automatically plots two Fibonacci retracement zones (23.6–38.2% and 61.8–76.4%) based on the prior day’s high/low, and draws horizontal lines at the market open price for Tokyo, London, and New York sessions, each in a distinct color. Optional features include calculating and labeling daily bias from Tokyo open, entry alerts when price first touches a fib zone, and cross markers when fib zones intersect market open lines.
---
### **Key Features**
* **Fib Zones**:
* Zone 1 (23.6–38.2%) and Zone 2 (61.8–76.4%) drawn as semi-transparent boxes
* **Market Open Lines**:
* Tokyo Open (JST 9:00) → Yellow
* London Open (BST/GMT+1 8:00) → Orange
* New York Open (EDT/GMT-4 9:30) → Purple
* **Daily Bias**: Percentage change from Tokyo open, shown as a chart label
* **Alerts**:
* One-time alert on first entry into a fib zone
* Cross markers when fib zones intersect market open lines
---
### **Inputs**
| Input Name | Type | Default | Description |
| :---- | :---- | :---- | :---- |
| Show Fib Zone 1 | bool | true | Toggle 23.6–38.2% zone |
| Zone 1 Color | color | blue | Color of shallow retracement box |
| Zone 1 Opacity (%) | int | 10 | Transparency (0–100%) |
| Show Fib Zone 2 | bool | true | Toggle 61.8–76.4% zone |
| Zone 2 Color | color | green | Color of deep retracement box |
| Zone 2 Opacity (%) | int | 10 | Transparency |
| Show Market Open Lines | bool | true | Toggle market open price lines |
| Tokyo Open Color | color | yellow | Color for Tokyo open horizontal line |
| London Open Color | color | orange | Color for London open horizontal line |
| NY Open Color | color | purple | Color for New York open horizontal line |
| Use Manual High/Low | bool | false | Use manual prior high/low for fib calculations |
| Manual High | float | 0.0 | Manual prior day high |
| Manual Low | float | 0.0 | Manual prior day low |
| Enable Entry Alert | bool | false | Alert when price first enters fib zone |
| Alert Message | string | “Price entered fib zone” | Custom alert message |
| Calculate Daily Bias | bool | false | Toggle daily bias calculation (vs Tokyo open) |
| Bias Threshold (%) | float | 0.5 | Minimum bias percentage to display |
| Highlight Cross | bool | false | Mark fib/open intersections |
---
### **How to Use**
1. Apply to any symbol and timeframe in TradingView.
2. Two fib zones based on prior day’s high/low appear automatically.
3. Horizontal lines at Tokyo, London, and NY open price are drawn in distinct colors.
4. Enable alerts, bias labels, or cross markers via inputs as needed.
---
### **Notes**
* Market opens are detected by local session times (handles daylight savings).
* Tokyo open uses the first 9:00 JST bar, not daily open.
* Fib zones default to prior day’s OHLC but support manual override.
The **asami.Fib Zones & Multi-Market Open Lines with Alerts** indicator plots two Fibonacci retracement zones based on the prior day’s high/low and draws horizontal open lines for the Tokyo, London, and New York markets. It also offers entry alerts when price touches those zones, helping you visualize key levels and market opens at a glance.
**Key Features**
1. **Fibonacci Retracement Zones**
* **Zone 1**: 23.6%–38.2%
* **Zone 2**: 61.8%–76.4%
* Automatically calculated from previous session’s high/low and displayed as semi-transparent boxes
2. **Multi-Market Open Lines**
* **Tokyo Open** at 09:00 JST
* **London Open** at 08:00 local time
* **New York Open** at 09:30 local time
* Plotted as horizontal lines extending to the right
3. **Entry Alerts**
* Single notification per bar when price enters a Fibonacci zone
4. **Daily Bias Label** (optional)
* Displays percentage bias vs. Tokyo open if above threshold
5. **Cross Highlight** (optional)
* Marks the points where price crosses a Fibonacci zone and a market open line
**Inputs & Settings**
* **Show Fib Zone 1/2**: Toggle each Fibonacci box
* **Zone Color & Opacity**: Customize zone colors and transparency
* **Show Market Open Lines**: Toggle open lines on/off
* **Tokyo/London/NY Open Color**: Choose line colors per market
* **Use Manual High/Low**: Override auto previous high/low
* **Enable Entry Alert**: Toggle Fibonacci zone alerts
* **Enable Daily Bias**: Toggle daily bias label
* **Highlight Cross**: Toggle cross-point markers
**How to Use**
1. Add the script to your TradingView chart.
2. Adjust colors and toggles to match your style.
3. Monitor Fibonacci retracement areas and market opens in real time.
4. Enable alerts to get notified when price enters a key zone, even when away from the screen.
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.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.
Penafian
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.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda — ketahui lebih lanjut di sini.