OPEN-SOURCE SCRIPT
Bias Detector Terminal [The Quant Science]

Bias Detector Terminal is a quantitative analysis tool designed to identify day-of-week statistical bias and seasonality. By calculating the historical frequency of bullish closes for each trading day, the terminal provides a clear picture of directional market probabilities.


🔷 What it does
The indicator analyzes daily price history to calculate:
🔷 How to use it
🔷 Interface Customization
Through the indicator settings you can:

🔷 Use Cases
🔷 Target Audience
🔷 What it does
The indicator analyzes daily price history to calculate:
- Bullish Ratio: The number of bullish sessions (close > open) relative to total historical bars for each day of the week (Monday to Sunday).
- Session Win Rate: The exact percentage of positive closes for every trading day.
- Smart Bias Signals: Categorizes each session based on statistical thresholds:
- 🟢 [ BULLISH ]: Win Rate >= 55%
- 🔴 [ BEARISH ]: Win Rate <= 45%
- ⚪ [ NEUTRAL ]: Win Rate between 45% and 55%
- Visual Flow Profile: An inline progress bar for instant visual assessment of buy/sell pressure.
- Composite Metrics: A summary row showing the cumulative baseline for all historical data analyzed.
🔷 How to use it
- Chart Application: Add the script to the chart of your chosen asset (Stocks, Crypto, Forex, Indices).
- Timeframe Setting: Make sure the chart is set to the Daily (1D/Daily) timeframe. The script includes a built-in check that will trigger an error if applied to lower timeframes.
🔷 Interface Customization
Through the indicator settings you can:
- Change the console position on screen (Top Right, Top Left, Bottom Right, Bottom Left, Center).
- Modify the terminal font size (Small, Normal, Large).
🔷 Use Cases
- Weekly Operational Planning: Identify in advance which days of the week historically favor buyers or sellers from a statistical standpoint.
- Confluence Filter: Avoid opening short positions on days with a historically high bullish win rate (and vice versa), raising the overall quality of your trade setups.
- Seasonality Analysis: Determine if a specific asset exhibits recurring statistical patterns (e.g., Turnaround Tuesday or Friday weakness).
🔷 Target Audience
- Quant & Systematic Traders: For those who base their decisions on statistical data rather than gut feeling.
- Day Traders & Swing Traders: Useful for aligning intraday operations with the statistical trend of the current day.
- Market Analysts: For those who want to integrate high-level visual reporting and quantitative metrics into their TradingView analysis.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
🔥 Unlock the power of Symbiosis, the first Python XGBoost model natively built for Pine Script. Grab the last available spots on Patreon: patreon.com/c/xgboost_symbiosis
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
🔥 Unlock the power of Symbiosis, the first Python XGBoost model natively built for Pine Script. Grab the last available spots on Patreon: patreon.com/c/xgboost_symbiosis
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.