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 de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Symbiosis XGBoost is a Python XGBoost model natively built to run on Pine Script.
🔷 XGBoost: symbiosis.thequantscience.com
🔷 Access: patreon.com/c/xgboost_symbiosis
🔷 The Quant Science: thequantscience.com
🔷 XGBoost: symbiosis.thequantscience.com
🔷 Access: patreon.com/c/xgboost_symbiosis
🔷 The Quant Science: thequantscience.com
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Symbiosis XGBoost is a Python XGBoost model natively built to run on Pine Script.
🔷 XGBoost: symbiosis.thequantscience.com
🔷 Access: patreon.com/c/xgboost_symbiosis
🔷 The Quant Science: thequantscience.com
🔷 XGBoost: symbiosis.thequantscience.com
🔷 Access: patreon.com/c/xgboost_symbiosis
🔷 The Quant Science: thequantscience.com
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.