OPEN-SOURCE SCRIPT
TradeShaper Supply & Demand

TradeShaper Supply & Demand
An inside-bar zone indicator that marks the supply and demand areas created when
price coils and then breaks — the inside candle's range becomes the zone, and the
zone stays live only until price returns to touch it.
The inside-candle formation this script keys off of is based on the supply and
demand methodology taught by Tr3ndy Jon (Jonathan McKeever). This is an
independent implementation of the concept, not affiliated with or endorsed by him.
HOW A ZONE IS BUILT
Three candles define the setup:
1. INITIAL — the candle that establishes the range.
2. INSIDE — the first candle whose close lands inside the initial candle's body.
Price may keep coiling for several bars, but the zone always anchors to this
first inside candle.
3. CONFIRMATION — a candle that closes beyond the initial candle. Close above the
initial high creates a DEMAND zone; close below the initial low creates a
SUPPLY zone. The confirming candle does not have to be the very next one; the
setup stays armed for a configurable number of bars.
The zone itself is the inside candle's full high-to-low range, wicks included.
READING THE ZONE
The EDGE is the side price approaches from — the low of a supply zone, the high of
a demand zone. Internal levels are drawn as a percentage of zone depth measured
inward from that edge, so 25% is always a shallow tag and 75% always deep,
regardless of which side you're on.
A zone is consumed the moment any later candle's wick enters it. Only untouched
zones stay on the chart. Zones project forward a fixed number of bars and stop
extending once a newer zone forms.
SETTINGS
Formation — inside-candle definition (close-inside-body or full inside bar), what
the confirming candle must close beyond, and how long a coiling setup stays armed.
Zone — forward projection, what happens when a wick enters a zone (delete or gray
out), and how many zones to keep per side.
Internal levels — any percentages you want (25/50/75 by default, or 38.2/50/61.8
for Fibonacci ratios), each with its own color.
Debug — marks the initial and inside candles and draws the exact levels a candle
must close beyond to confirm. Useful for verifying the logic against your own
reading of the chart.
Alerts fire when price tags a virgin supply or demand edge.
An inside-bar zone indicator that marks the supply and demand areas created when
price coils and then breaks — the inside candle's range becomes the zone, and the
zone stays live only until price returns to touch it.
The inside-candle formation this script keys off of is based on the supply and
demand methodology taught by Tr3ndy Jon (Jonathan McKeever). This is an
independent implementation of the concept, not affiliated with or endorsed by him.
HOW A ZONE IS BUILT
Three candles define the setup:
1. INITIAL — the candle that establishes the range.
2. INSIDE — the first candle whose close lands inside the initial candle's body.
Price may keep coiling for several bars, but the zone always anchors to this
first inside candle.
3. CONFIRMATION — a candle that closes beyond the initial candle. Close above the
initial high creates a DEMAND zone; close below the initial low creates a
SUPPLY zone. The confirming candle does not have to be the very next one; the
setup stays armed for a configurable number of bars.
The zone itself is the inside candle's full high-to-low range, wicks included.
READING THE ZONE
The EDGE is the side price approaches from — the low of a supply zone, the high of
a demand zone. Internal levels are drawn as a percentage of zone depth measured
inward from that edge, so 25% is always a shallow tag and 75% always deep,
regardless of which side you're on.
A zone is consumed the moment any later candle's wick enters it. Only untouched
zones stay on the chart. Zones project forward a fixed number of bars and stop
extending once a newer zone forms.
SETTINGS
Formation — inside-candle definition (close-inside-body or full inside bar), what
the confirming candle must close beyond, and how long a coiling setup stays armed.
Zone — forward projection, what happens when a wick enters a zone (delete or gray
out), and how many zones to keep per side.
Internal levels — any percentages you want (25/50/75 by default, or 38.2/50/61.8
for Fibonacci ratios), each with its own color.
Debug — marks the initial and inside candles and draws the exact levels a candle
must close beyond to confirm. Useful for verifying the logic against your own
reading of the chart.
Alerts fire when price tags a virgin supply or demand edge.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
TradeShaper — your private trading mentor. A decision-grading journal for options swing traders. tradeshaper.co/tour?utm_source=tradingview&utm_campaign=pine_signature
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
TradeShaper — your private trading mentor. A decision-grading journal for options swing traders. tradeshaper.co/tour?utm_source=tradingview&utm_campaign=pine_signature
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。