OPEN-SOURCE SCRIPT
Statistical Bias [Oracle]

WHAT THIS INDICATOR DOES

Statistical Bias is a multi-asset, multi-timeframe directional bias engine that determines market direction by analysing reversal and continuation candle patterns across your entire correlated triad. Rather than reading bias from a single chart, it checks whether all three correlated assets agree on direction — and optionally requires alignment across two timeframe levels — before declaring a bias.
It then tracks whether that bias was historically correct and displays a running accuracy percentage, giving you a statistical gauge of how reliable the triad's consensus signal has been on your chosen timeframe.
This is an analysis and narrative tool. It does not generate buy or sell signals.
THE CONCEPTS — WHAT EACH ONE IS AND HOW IT IS CALCULATED
Candle-Based Bias Detection
The indicator determines directional bias on each asset by analysing how the previous candle interacted with the candle before it. It checks for two types of events:

Either condition triggers a bias update. If a bullish sweep or bullish continuation close occurs, the asset's bias is set to bullish. If a bearish sweep or bearish continuation close occurs, it is set to bearish. The bias persists until a new opposing event occurs — it does not reset each candle.
This logic runs independently on all three assets in the triad, producing three separate bias readings.
Multi-Timeframe Bias Validation
The indicator supports two validation modes for each asset's bias:
This means in LTF + HTF mode, a single asset must show the same directional pattern on both the bias timeframe and the timeframe above before its individual bias is considered valid.
Triad Bias Consensus
After each asset's individual bias is determined, the indicator applies a configurable consensus rule across the triad to produce the final triad bias:
The triad bias is the final output — it represents the consensus view of the entire correlated group, not just your single chart.
Accuracy Tracking
When the bias timeframe matches your chart timeframe, the indicator tracks historical accuracy. On each new bias-timeframe candle, it checks whether the previous triad bias correctly predicted the subsequent candle's direction:
The accuracy percentage is displayed in the table as a running total across all historical bars. This gives you a statistical measure of how reliable the triad consensus has been on your specific asset and timeframe combination — not a theoretical backtest, but actual historical performance of the bias logic on your chart.
Draw on Liquidity (DOL)
When the bias timeframe is different from your chart timeframe, the indicator draws a Draw on Liquidity line showing the expected target level based on the triad bias:
The DOL line extends forward as long as it has not been reached. Once price trades through it, the line stops extending. This gives you a concrete price target derived from the triad's consensus direction.
Bias Table Display
A table in the corner of the chart displays the current state of the entire bias system. Two display modes are available:
The table updates at the start of each new bias-timeframe candle.
HOW THE CONCEPTS WORK TOGETHER
These are not independent readings stacked in a table. They form a hierarchical filtering system where each layer narrows the bias output:
The workflow flows from raw candle patterns, through timeframe alignment, through cross-asset consensus, through statistical validation, to a concrete price target. Each layer increases the quality of the output.
WHY IS THIS INDICATOR WORTH USING?/b]

Without this indicator, building a multi-asset, multi-timeframe statistical bias requires a trader to:
This process is tedious and error-prone even for a single timeframe check. Doing it across three assets and two timeframes simultaneously in real time is not practical manually.
The indicator automates the full pipeline — independent bias detection on three assets across two timeframes, configurable consensus rules, historical accuracy tracking with a running percentage, and DOL visualization — into a single overlay with a clean table display.
Several features are entirely original to this script:
No existing TradingView indicator combines multi-asset candle pattern bias detection, multi-timeframe validation, configurable consensus rules, statistical accuracy tracking, and draw-on-liquidity targeting in a single tool. These features cannot be replicated by combining existing public scripts because they require cross-asset bias comparison logic that single-asset indicators do not have.
HOW TO USE IT

AUTO TRIAD
The indicator automatically assigns the correct correlated triad based on your chart ticker:
For unsupported tickers, manual configuration is available.
SETTINGS OVERVIEW
INDICATOR SETTINGS/FILTERS
Here is an inside look of how the Statistical Bias [Oracle] looks:

DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves substantial risk of loss. Always use proper risk management and conduct your own analysis.
CREDITS
Developed by Danielliuks and Bucko. Conceptual framework based on ICT (Michael Huddleston)
Open Sourced For all.
Enjoy.
Statistical Bias is a multi-asset, multi-timeframe directional bias engine that determines market direction by analysing reversal and continuation candle patterns across your entire correlated triad. Rather than reading bias from a single chart, it checks whether all three correlated assets agree on direction — and optionally requires alignment across two timeframe levels — before declaring a bias.
It then tracks whether that bias was historically correct and displays a running accuracy percentage, giving you a statistical gauge of how reliable the triad's consensus signal has been on your chosen timeframe.
This is an analysis and narrative tool. It does not generate buy or sell signals.
THE CONCEPTS — WHAT EACH ONE IS AND HOW IT IS CALCULATED
Candle-Based Bias Detection
The indicator determines directional bias on each asset by analysing how the previous candle interacted with the candle before it. It checks for two types of events:
- Sweep and reclaim — The previous candle's low swept below the prior candle's low, but then closed back above it. This is a bullish sweep — price took out a low and rejected, indicating buyers stepped in. The bearish equivalent is when the previous candle's high swept above the prior high, but closed back below it.*
* - Continuation close — The previous candle closed above the prior candle's high (bullish continuation) or below the prior candle's low (bearish continuation). Price committed beyond the previous range entirely.
Either condition triggers a bias update. If a bullish sweep or bullish continuation close occurs, the asset's bias is set to bullish. If a bearish sweep or bearish continuation close occurs, it is set to bearish. The bias persists until a new opposing event occurs — it does not reset each candle.
This logic runs independently on all three assets in the triad, producing three separate bias readings.
Multi-Timeframe Bias Validation
The indicator supports two validation modes for each asset's bias:
- LTF Only — The asset's bias is determined solely from the selected bias timeframe. If the bias timeframe is set to 15m, only 15m candle patterns are analyzed.
- LTF + HTF — The asset's bias must agree across two timeframe levels. The indicator automatically maps your bias timeframe to the next higher timeframe (1m maps to 5m, 5m to 15m, 15m to 1H, 1H to 4H, 4H to 1D, 1D to 1W, 1W to 1M). The same sweep/reclaim and continuation close logic runs on both timeframes independently. An asset's bias is only confirmed when both timeframes agree on direction. If they disagree, the asset's bias is set to neutral.
This means in LTF + HTF mode, a single asset must show the same directional pattern on both the bias timeframe and the timeframe above before its individual bias is considered valid.
Triad Bias Consensus
After each asset's individual bias is determined, the indicator applies a configurable consensus rule across the triad to produce the final triad bias:
- Current Asset — The triad bias simply follows whichever asset you are charting. The other two assets are displayed for reference but do not affect the final bias output.
- Majority — At least 2 out of 3 assets must agree on direction. If two are bullish and one is bearish, the triad bias is bullish. If no majority exists, the bias is neutral.
- All 3 — All three assets must show the same directional bias. If even one asset disagrees or is neutral, the triad bias is neutral. This is the strictest mode and produces the fewest signals but the highest conviction.
The triad bias is the final output — it represents the consensus view of the entire correlated group, not just your single chart.
Accuracy Tracking
When the bias timeframe matches your chart timeframe, the indicator tracks historical accuracy. On each new bias-timeframe candle, it checks whether the previous triad bias correctly predicted the subsequent candle's direction:
- A bullish triad bias is counted as correct if the next candle made a higher high than the previous candle.
- A bearish triad bias is counted as correct if the next candle made a lower low than the previous candle.
- Neutral bias candles are excluded from the count entirely.
The accuracy percentage is displayed in the table as a running total across all historical bars. This gives you a statistical measure of how reliable the triad consensus has been on your specific asset and timeframe combination — not a theoretical backtest, but actual historical performance of the bias logic on your chart.
Draw on Liquidity (DOL)
When the bias timeframe is different from your chart timeframe, the indicator draws a Draw on Liquidity line showing the expected target level based on the triad bias:
- Bullish bias — A horizontal line is drawn at the previous bias-timeframe candle's high. This represents the most recent liquidity pool above that the market is expected to draw toward.
- Bearish bias — A horizontal line is drawn at the previous bias-timeframe candle's low. This represents the liquidity pool below.
The DOL line extends forward as long as it has not been reached. Once price trades through it, the line stops extending. This gives you a concrete price target derived from the triad's consensus direction.
Bias Table Display
A table in the corner of the chart displays the current state of the entire bias system. Two display modes are available:
- Full mode — Shows a grid with each asset across the top, LTF and HTF bias rows, the final triad bias, and the accuracy percentage. You can see at a glance which assets agree, which timeframes align, and how accurate the consensus has been historically.
- Compact mode — Shows just the asset names colored by their individual bias direction and the final triad bias. Minimal screen space for traders who only need the bottom-line output.
The table updates at the start of each new bias-timeframe candle.
HOW THE CONCEPTS WORK TOGETHER
These are not independent readings stacked in a table. They form a hierarchical filtering system where each layer narrows the bias output:
- Candle pattern detection identifies raw direction per asset. Sweep-and-reclaim and continuation close patterns are detected on each of the three triad assets independently. This is the raw signal layer — each asset reports its own directional bias based on how its candles interacted with prior ranges.
- Multi-timeframe validation filters false signals. In LTF + HTF mode, each asset's bias must be confirmed across two timeframe levels. A 15m bullish sweep that contradicts a 1H bearish pattern gets neutralized. This eliminates bias signals that only exist on a single timeframe — the direction must be consistent across the time structure.
- Triad consensus filters further. After individual asset biases are validated, the consensus rule determines whether the group agrees. In All 3 mode, every asset must independently arrive at the same directional conclusion through its own candle patterns on its own price data. A bullish bias on NQ means nothing if ES and YM are not also bullish. This cross-asset agreement is the strongest filter — it requires the entire correlated group to show the same directional commitment.
- Accuracy tracking validates the system. The running accuracy percentage tells you whether this filtering process actually works on your specific asset and timeframe. Rather than trusting the logic theoretically, you can see its historical hit rate directly on your chart. This closes the feedback loop — you are not just following a bias, you know how often that bias has been correct.
- DOL provides the target. Once the triad agrees on direction, the Draw on Liquidity line gives you a specific price level the market is expected to draw toward. This transforms a directional bias into an actionable target level.
The workflow flows from raw candle patterns, through timeframe alignment, through cross-asset consensus, through statistical validation, to a concrete price target. Each layer increases the quality of the output.
WHY IS THIS INDICATOR WORTH USING?/b]
Without this indicator, building a multi-asset, multi-timeframe statistical bias requires a trader to:
- Open three charts and manually check whether the previous candle on each asset swept a prior low/high and reclaimed, or closed beyond the prior range
- Repeat this analysis on the next higher timeframe for each asset to check alignment
- Mentally aggregate whether the majority or all three assets agree
- Keep a manual tally of how often this consensus was historically correct
- Identify and track the DOL level based on the consensus direction
This process is tedious and error-prone even for a single timeframe check. Doing it across three assets and two timeframes simultaneously in real time is not practical manually.
The indicator automates the full pipeline — independent bias detection on three assets across two timeframes, configurable consensus rules, historical accuracy tracking with a running percentage, and DOL visualization — into a single overlay with a clean table display.
Several features are entirely original to this script:
- Cross-asset sweep/reclaim and continuation close consensus with configurable agreement rules (Current, Majority, All 3)
- Automatic LTF + HTF alignment validation per asset before consensus is applied
- Built-in historical accuracy tracking that measures actual prediction performance on the current chart
- DOL line derived from triad consensus direction rather than single-asset analysis
No existing TradingView indicator combines multi-asset candle pattern bias detection, multi-timeframe validation, configurable consensus rules, statistical accuracy tracking, and draw-on-liquidity targeting in a single tool. These features cannot be replicated by combining existing public scripts because they require cross-asset bias comparison logic that single-asset indicators do not have.
HOW TO USE IT
- Add the indicator to your chart. It will automatically detect your asset triad or use your manual configuration.
- Select your bias timeframe — this is the timeframe on which candle patterns are analyzed. If your chart is 5m and your bias TF is 15m, the indicator checks 15m candle patterns on all three assets.
- Choose your validation mode — LTF Only for single-timeframe bias, or LTF + HTF for dual-timeframe alignment per asset.
- Choose your consensus rule — Current Asset for single-asset bias, Majority for 2-of-3 agreement, or All 3 for unanimous consensus.
- Read the table: each asset shows BULL, BEAR, or neutral. The TRIAD row shows the final consensus output. The ACC row shows historical accuracy.
- Use the DOL line as your directional target when the triad agrees on bias.
- Combine with other Quarterly Theory tools — use the triad bias to frame your LTF entries. A bullish triad bias means you look for bullish SSMTs, bullish PSPs, and bullish tCISDs on lower timeframes.
AUTO TRIAD
The indicator automatically assigns the correct correlated triad based on your chart ticker:
- Index Futures: NQ / ES / YM (+ micro variants MNQ / MES / MYM)
- Forex: EURUSD / GBPUSD / DXY
- Crypto: BTCUSD / ETHUSD / DXY via Kraken
For unsupported tickers, manual configuration is available.
SETTINGS OVERVIEW
- Asset Selection — Auto triad toggle, manual ticker inputs for three assets
- Bias Timeframes — Custom bias TF toggle, bias timeframe selector
- Bias Logic — Asset validation mode (LTF Only / LTF + HTF), triad consensus rule (Current Asset / Majority / All 3)
- Visual Output — Table mode (Full / Compact), DOL line toggle
- Color Customisation — Bullish, bearish, and neutral colours
- DOL Styling — Line colour, text colour
INDICATOR SETTINGS/FILTERS
Here is an inside look of how the Statistical Bias [Oracle] looks:
DISCLAIMER
This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves substantial risk of loss. Always use proper risk management and conduct your own analysis.
CREDITS
Developed by Danielliuks and Bucko. Conceptual framework based on ICT (Michael Huddleston)
Open Sourced For all.
Enjoy.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
For access to my invite only indicators, visit oraclesinsights.com/
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
For access to my invite only indicators, visit oraclesinsights.com/
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.