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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
🔥 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
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
🔥 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
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.