OPEN-SOURCE SCRIPT

Bias Detector Terminal [The Quant Science]

1 229
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:
  1. Bullish Ratio: The number of bullish sessions (close > open) relative to total historical bars for each day of the week (Monday to Sunday).
  2. Session Win Rate: The exact percentage of positive closes for every trading day.
  3. 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%
  4. Visual Flow Profile: An inline progress bar for instant visual assessment of buy/sell pressure.
  5. 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.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน