OPEN-SOURCE SCRIPT
PokoTrader - SMC + Supertrend Confluence

This indicator combines LuxAlgo's Smart Money Concepts market-structure toolkit with the
classic Supertrend trend filter, then adds a confluence layer that highlights the moments
where the two agree.
CREDITS & LICENSE
- Smart Money Concepts logic is © LuxAlgo, published under CC BY-NC-SA 4.0. This script is
a derivative work released under the same license (open-source, non-commercial, share-alike).
- The Supertrend component is ported to Pine v5 from the widely used Pine v4 "Supertrend"
by KivancOzbilgic.
All original work belongs to those authors; this publication only adds the integration layer
described below.
WHAT IT DRAWS
- Full SMC suite: internal & swing structure (BOS / CHoCH), order blocks, fair value gaps,
equal highs/lows, strong/weak swing points, premium-discount zones and multi-timeframe levels.
- Supertrend trend line, buy/sell flip markers and trend highlighter.
WHAT THIS MASHUP ADDS (original contribution)
1. Confluence engine - a star marker prints only when a Supertrend flip lines up with a recent
CHoCH/BOS, an order-block tap, or a fresh fair value gap. A single dynamic alert reports which
components agreed (e.g. "LONG confluence: Supertrend flip + Structure OB").
2. Trend filter - structure breaks that fire against the Supertrend direction are automatically
faded, so with-trend breaks stand out from counter-trend noise.
3. Dashboard - a compact panel showing Supertrend direction, the live stop price and % distance
to it, swing bias, internal bias, and the nearest order block above and below price.
4. Repaint guard - the combined alert can be restricted to confirmed bar closes.
HOW TO USE
- Bias with the Supertrend direction; treat the star confluence marks as higher-conviction
entries where market structure, an order block, or an FVG agrees with a fresh trend flip.
- Use the dashboard "To Stop %" as a ready-made trailing-stop reference.
- In the Confluence settings group, set the structure lookback window and choose which
components count (structure / order block / FVG). Adjust the counter-trend fade to taste.
SETTINGS GROUPS
Smart Money Concepts, Real Time Internal/Swing Structure, Order Blocks, EQH/EQL, Fair Value
Gaps, Highs & Lows MTF, Premium & Discount Zones, Supertrend, Confluence, Dashboard.
NOTES
For education and research only - not financial advice. Some SMC elements (FVG, MTF levels)
use higher-timeframe lookahead for display and can repaint on the forming bar; the combined
alert is gated to confirmed bars by default to avoid acting on that.
classic Supertrend trend filter, then adds a confluence layer that highlights the moments
where the two agree.
CREDITS & LICENSE
- Smart Money Concepts logic is © LuxAlgo, published under CC BY-NC-SA 4.0. This script is
a derivative work released under the same license (open-source, non-commercial, share-alike).
- The Supertrend component is ported to Pine v5 from the widely used Pine v4 "Supertrend"
by KivancOzbilgic.
All original work belongs to those authors; this publication only adds the integration layer
described below.
WHAT IT DRAWS
- Full SMC suite: internal & swing structure (BOS / CHoCH), order blocks, fair value gaps,
equal highs/lows, strong/weak swing points, premium-discount zones and multi-timeframe levels.
- Supertrend trend line, buy/sell flip markers and trend highlighter.
WHAT THIS MASHUP ADDS (original contribution)
1. Confluence engine - a star marker prints only when a Supertrend flip lines up with a recent
CHoCH/BOS, an order-block tap, or a fresh fair value gap. A single dynamic alert reports which
components agreed (e.g. "LONG confluence: Supertrend flip + Structure OB").
2. Trend filter - structure breaks that fire against the Supertrend direction are automatically
faded, so with-trend breaks stand out from counter-trend noise.
3. Dashboard - a compact panel showing Supertrend direction, the live stop price and % distance
to it, swing bias, internal bias, and the nearest order block above and below price.
4. Repaint guard - the combined alert can be restricted to confirmed bar closes.
HOW TO USE
- Bias with the Supertrend direction; treat the star confluence marks as higher-conviction
entries where market structure, an order block, or an FVG agrees with a fresh trend flip.
- Use the dashboard "To Stop %" as a ready-made trailing-stop reference.
- In the Confluence settings group, set the structure lookback window and choose which
components count (structure / order block / FVG). Adjust the counter-trend fade to taste.
SETTINGS GROUPS
Smart Money Concepts, Real Time Internal/Swing Structure, Order Blocks, EQH/EQL, Fair Value
Gaps, Highs & Lows MTF, Premium & Discount Zones, Supertrend, Confluence, Dashboard.
NOTES
For education and research only - not financial advice. Some SMC elements (FVG, MTF levels)
use higher-timeframe lookahead for display and can repaint on the forming bar; the combined
alert is gated to confirmed bars by default to avoid acting on that.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน