OPEN-SOURCE SCRIPT
Atualizado FlowDesk SMC

# FlowDesk SMC
### SMC / ICT Toolkit + HTF Zones + Orderflow
A single, unified Smart-Money-Concepts / ICT analysis overlay that brings the
levels you actually trade from — multi-timeframe zones, fair-value gaps,
structure, key levels, and a synthesizing dashboard — onto one clean chart.
This is not a collection of separate scripts stacked together. The components
share one design goal: show the strongest, most relevant levels and hide the
noise, so the chart stays readable while still being structurally complete.
---
## What it draws
**HTF Supply/Demand Zones & Fair-Value Gaps**
Up to four independently configurable higher-timeframe slots, each with its own
timeframe, S/D and FVG toggles, and colors. Zones are detected from impulsive
order-block moves (with a volume filter and a range-based fallback for symbols
without reliable volume) and from 3-candle FVGs.
**Timeframe-rank precedence (HTF wins).** When two zones overlap, the
higher-timeframe one takes priority — a 4H zone wins over a 1H zone in the same
area — so you never see redundant stacked boxes. A global cap keeps only the
most relevant zones per side.
**Touched vs untouched.** Untouched zones show a solid border; once price wicks
into a zone it switches to a dashed border and is kept on the chart until it is
fully broken (price closes/wicks beyond its far edge). This gives an instant
read of which levels are fresh versus already tested.
**Sub-timeframe hiding.** On a 4H chart, 1H zones and rails are sub-structure
and are hidden automatically (toggleable), keeping each timeframe's view clean.
**Previous Day / Week / Month highs & lows** anchored to the exact wick candle
that printed them, with selectable style and color.
**Premium / Discount / Equilibrium** zones from a trailing swing range.
**Orderflow ZigZag + Structure.** HH/LH/HL/LL swing labeling with BOS / CHoCH
detection and directional coloring, plus an optional live developing swing.
**HTF Swing Rails.** Up to five higher-timeframe swing-high/low levels extended
to the right as horizontal rails.
**ICT Killzones** with a selectable session timezone, and **liquidity-sweep**
markers for stop-hunt detection.
---
## The Dashboard
A compact, multi-section panel that reads everything above and synthesizes it:
- **Decision** — a conservative BUY / SELL / WAIT read that requires structure
and location to agree, with a plain-language reason and conflict flags.
- **Bias (Orderflow)** — HTF, MTF and chart-structure direction. The HTF and MTF
timeframes are user-selectable; the bias is non-repainting by default.
- **Location** — premium/discount, and the nearest zone with its type,
fresh/tested state, and price range.
- **Zones** — counts of demand / supply / bull-FVG / bear-FVG, how many are
fresh, and which timeframes they come from.
- **Swings** — nearest swing above and below price, with the source timeframe.
Fully styleable (position, size, colors) and can be set fully transparent so
only the text floats over the chart.
---
## Repainting
HTF zones, FVGs, previous-period levels and swing rails use non-lookahead
higher-timeframe data and do not repaint. The dashboard HTF/MTF bias defaults to
the last *closed* bar's reading (non-repainting); an optional "live" mode uses
the forming bar for a more current read that can update intrabar. The orderflow
structure confirms on swing pivots.
---
## Notes / Disclaimer
The dashboard's "Action" line and all bias and decision output are an automated
reading of price structure, provided for study and trade planning only. They are
**not** trade signals, recommendations, or financial advice. Trading carries
risk and you are solely responsible for your own decisions. Test on your own
market and timeframe before relying on any output.
### SMC / ICT Toolkit + HTF Zones + Orderflow
A single, unified Smart-Money-Concepts / ICT analysis overlay that brings the
levels you actually trade from — multi-timeframe zones, fair-value gaps,
structure, key levels, and a synthesizing dashboard — onto one clean chart.
This is not a collection of separate scripts stacked together. The components
share one design goal: show the strongest, most relevant levels and hide the
noise, so the chart stays readable while still being structurally complete.
---
## What it draws
**HTF Supply/Demand Zones & Fair-Value Gaps**
Up to four independently configurable higher-timeframe slots, each with its own
timeframe, S/D and FVG toggles, and colors. Zones are detected from impulsive
order-block moves (with a volume filter and a range-based fallback for symbols
without reliable volume) and from 3-candle FVGs.
**Timeframe-rank precedence (HTF wins).** When two zones overlap, the
higher-timeframe one takes priority — a 4H zone wins over a 1H zone in the same
area — so you never see redundant stacked boxes. A global cap keeps only the
most relevant zones per side.
**Touched vs untouched.** Untouched zones show a solid border; once price wicks
into a zone it switches to a dashed border and is kept on the chart until it is
fully broken (price closes/wicks beyond its far edge). This gives an instant
read of which levels are fresh versus already tested.
**Sub-timeframe hiding.** On a 4H chart, 1H zones and rails are sub-structure
and are hidden automatically (toggleable), keeping each timeframe's view clean.
**Previous Day / Week / Month highs & lows** anchored to the exact wick candle
that printed them, with selectable style and color.
**Premium / Discount / Equilibrium** zones from a trailing swing range.
**Orderflow ZigZag + Structure.** HH/LH/HL/LL swing labeling with BOS / CHoCH
detection and directional coloring, plus an optional live developing swing.
**HTF Swing Rails.** Up to five higher-timeframe swing-high/low levels extended
to the right as horizontal rails.
**ICT Killzones** with a selectable session timezone, and **liquidity-sweep**
markers for stop-hunt detection.
---
## The Dashboard
A compact, multi-section panel that reads everything above and synthesizes it:
- **Decision** — a conservative BUY / SELL / WAIT read that requires structure
and location to agree, with a plain-language reason and conflict flags.
- **Bias (Orderflow)** — HTF, MTF and chart-structure direction. The HTF and MTF
timeframes are user-selectable; the bias is non-repainting by default.
- **Location** — premium/discount, and the nearest zone with its type,
fresh/tested state, and price range.
- **Zones** — counts of demand / supply / bull-FVG / bear-FVG, how many are
fresh, and which timeframes they come from.
- **Swings** — nearest swing above and below price, with the source timeframe.
Fully styleable (position, size, colors) and can be set fully transparent so
only the text floats over the chart.
---
## Repainting
HTF zones, FVGs, previous-period levels and swing rails use non-lookahead
higher-timeframe data and do not repaint. The dashboard HTF/MTF bias defaults to
the last *closed* bar's reading (non-repainting); an optional "live" mode uses
the forming bar for a more current read that can update intrabar. The orderflow
structure confirms on swing pivots.
---
## Notes / Disclaimer
The dashboard's "Action" line and all bias and decision output are an automated
reading of price structure, provided for study and trade planning only. They are
**not** trade signals, recommendations, or financial advice. Trading carries
risk and you are solely responsible for your own decisions. Test on your own
market and timeframe before relying on any output.
Notas de Lançamento
UpdatesScript de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.