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.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน