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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。