OPEN-SOURCE SCRIPT
Open Basis

This indicator tracks and evaluates institutional market direction by analyzing the relative price hierarchy of **three key session open times** (configured in Central Time):
### 1. The Three Session Anchors
* **5:00 PM CT (Globex Open):** Marks the start of the new global trading day and resets the cycle. Plotted as a pink/magenta line.
* **11:00 PM CT (MNO / Midnight ET):** Captures the structural shift into the late-night session. Plotted as a white line.
* **8:30 AM CT (New York Cash Open):** The primary cash session open (9:30 AM ET). Plotted as a yellow line.
---
### 2. The Scoring & Trend Logic
At the exact moment the **8:30 AM CT** open prints, the indicator compares the three prices to determine market bias:
* **Bulls Strong (`Score = +2`):** Triggered when prices step cleanly upward across the sessions ($5\text{pm} < 11\text{pm} < 8:30\text{am}$). This indicates strong, structured upward momentum.
* **Bears Strong (`Score = -2`):** Triggered when prices step cleanly downward across the sessions ($5\text{pm} > 11\text{pm} > 8:30\text{am}$). This indicates sustained downward pressure.
* **Mixed / No Edge (`Score = 0`):** Triggered when the levels overlap or do not form a clean sequential hierarchy, signaling a choppy or rotational environment.
---
### 3. Chart Visuals
* **Right-Margin Labels:** Small text tags sit at the far right edge of your chart next to each respective line (`5:00pm CT`, `11:00pm CT`, `8:30am CT`) so you can instantly identify them without tracing across the screen.
* **NY Open Event Label:** At 8:30 AM CT, a detailed text box prints on the chart displaying the final bias (`Bulls Strong`, `Bears Strong`, or `Mixed`) along with the exact fractional price of each open.
* **Alerts:** Built-in alert conditions trigger automatically at the NY Open to notify you whether market structure is trending or mixed.
### 1. The Three Session Anchors
* **5:00 PM CT (Globex Open):** Marks the start of the new global trading day and resets the cycle. Plotted as a pink/magenta line.
* **11:00 PM CT (MNO / Midnight ET):** Captures the structural shift into the late-night session. Plotted as a white line.
* **8:30 AM CT (New York Cash Open):** The primary cash session open (9:30 AM ET). Plotted as a yellow line.
---
### 2. The Scoring & Trend Logic
At the exact moment the **8:30 AM CT** open prints, the indicator compares the three prices to determine market bias:
* **Bulls Strong (`Score = +2`):** Triggered when prices step cleanly upward across the sessions ($5\text{pm} < 11\text{pm} < 8:30\text{am}$). This indicates strong, structured upward momentum.
* **Bears Strong (`Score = -2`):** Triggered when prices step cleanly downward across the sessions ($5\text{pm} > 11\text{pm} > 8:30\text{am}$). This indicates sustained downward pressure.
* **Mixed / No Edge (`Score = 0`):** Triggered when the levels overlap or do not form a clean sequential hierarchy, signaling a choppy or rotational environment.
---
### 3. Chart Visuals
* **Right-Margin Labels:** Small text tags sit at the far right edge of your chart next to each respective line (`5:00pm CT`, `11:00pm CT`, `8:30am CT`) so you can instantly identify them without tracing across the screen.
* **NY Open Event Label:** At 8:30 AM CT, a detailed text box prints on the chart displaying the final bias (`Bulls Strong`, `Bears Strong`, or `Mixed`) along with the exact fractional price of each open.
* **Alerts:** Built-in alert conditions trigger automatically at the NY Open to notify you whether market structure is trending or mixed.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.