OPEN-SOURCE SCRIPT
TopSetup Lite - Multi-TF Bias Dashboard

WHAT IT DOES
A compact dashboard that reads directional bias on three timeframes at once (15M / 5M / 1M) and shows whether they agree. It answers one question before you zoom in: which side of the market is currently favoured — and do the timeframes align?
HOW IT WORKS
• For each timeframe the script requests price data via request.security() and evaluates two conditions: the position of price relative to an EMA pair (20/50), and the alignment of those EMAs over a lookback window.
• Each timeframe is classified as Bull, Bear or Neutral. Neutral is returned when the conditions disagree — the script deliberately refuses to force a direction.
• The three results are combined into a confluence verdict: 3/3 (strong alignment), 2/3 (partial) or mixed (no alignment).
• Optional BOS / CHoCH labels mark structure breaks based on pivot highs/lows, so every bias reading can be verified directly on the chart.
SETTINGS
Pivot length, structure labels on/off, dashboard on/off, table position and size are configurable.
HOW TO USE IT
Treat the verdict as a filter, not a signal: look for setups only in the direction of 2/3 or 3/3 agreement, and stand aside on mixed readings. Built and tested on Gold and Bitcoin; works on any liquid symbol. The full logic can be read in the source code.
Educational tool only. No financial advice, no performance guarantees.
A compact dashboard that reads directional bias on three timeframes at once (15M / 5M / 1M) and shows whether they agree. It answers one question before you zoom in: which side of the market is currently favoured — and do the timeframes align?
HOW IT WORKS
• For each timeframe the script requests price data via request.security() and evaluates two conditions: the position of price relative to an EMA pair (20/50), and the alignment of those EMAs over a lookback window.
• Each timeframe is classified as Bull, Bear or Neutral. Neutral is returned when the conditions disagree — the script deliberately refuses to force a direction.
• The three results are combined into a confluence verdict: 3/3 (strong alignment), 2/3 (partial) or mixed (no alignment).
• Optional BOS / CHoCH labels mark structure breaks based on pivot highs/lows, so every bias reading can be verified directly on the chart.
SETTINGS
Pivot length, structure labels on/off, dashboard on/off, table position and size are configurable.
HOW TO USE IT
Treat the verdict as a filter, not a signal: look for setups only in the direction of 2/3 or 3/3 agreement, and stand aside on mixed readings. Built and tested on Gold and Bitcoin; works on any liquid symbol. The full logic can be read in the source code.
Educational tool only. No financial advice, no performance guarantees.
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.
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.
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.