Supply And Demand

8 401
Supply And Demand shows you where price is most likely to react before it gets there. It draws four types of institutional price levels across seven timeframes, so the areas where the market's biggest players have been active are already marked on your chart and ready to trade.

Developed by Trend Friend, this indicator combines four level types that each track institutional activity from a different angle:
  • Higher Timeframe OHLC Levels - The high, low, open, close and 50% midlines of the most recent completed candle on seven timeframes, from hourly to yearly
  • Volume Spike Levels - Levels drawn from candles with unusually high volume, found by a custom adaptive detection system
  • Trading Session Levels - Tokyo, London and New York session opens, closes and full ranges, triggered from each market's local timezone
  • Dual VWAPs - Two independent volume weighted average price lines, each with its own reset timeframe and previous close levels


Every level type is fully customizable, every line can carry a price-tracking label so you always know exactly what you are looking at, and the indicator sends out a trend direction value that other indicators can read to filter their signals.

snapshot

-------------------------------------------------------------------

Why Trade With Supply And Demand Levels

One of the safest ways to trade is to wait for price to come to you. Supply and demand trading means waiting for price to reach an area where it reacted strongly before, then trading the reversal instead of chasing a move that already happened. These areas work because large orders cluster around them, and when price comes back, those orders come back into play. The reason all four level types live in one tool is that the strongest reversal areas are the ones where different level types stack near each other, and you can only see that confluence when everything is drawn on the same chart.

-------------------------------------------------------------------

Higher Timeframe OHLC Levels

The indicator plots levels from the most recent completed candle on each of these timeframes: 1 Hour, 4 Hour, Daily, Weekly, Monthly, Quarterly and Yearly. Price reacts to these levels over and over because so many traders and institutions watch them. Each timeframe has its own toggle for every line type:
  • High & Low Lines - The wick extremes of the previous candle
  • Open & Close Lines - Where the previous candle started and ended
  • Current Open Line - A dashed line at the open of the live, still forming candle. Price above it is a bullish bias for that timeframe, price below it is bearish
  • CB 50% Midline - The midpoint of the previous candle's body (open to close, wicks excluded)
  • HL 50% Midline - The midpoint of the previous candle's full range (high to low, wicks included)
  • Candle Body Color Fill - Shades the area between the previous candle's open and close lines like a see-through candle body. This works even with the Open & Close lines turned off, and the shade color and opacity are adjustable


The midlines are dynamic trend guides. When price is above a timeframe's midline, that timeframe is bullish until price holds below it, and price likes to travel between the higher timeframe midlines almost like a magnet, so make sure to pay close attention to them.

Each timeframe also has its own display controls:
  • Number Of Lines Back - How many previous candles stay drawn on the chart
  • Line Length Multiple - How long each candle's lines stay visible. The default of 2 keeps each set of lines on the chart for 2 sessions, 3 keeps them for 3, and so on. Current Open lines are the exception and always cover just the live session
  • Extend Lines Right - Daily, Weekly, Monthly, Quarterly and Yearly can extend their lines forever to the right edge of the chart instead of stopping at the next period
  • Display Anchor - Weekly, Monthly, Quarterly and Yearly can anchor their lines to a lower timeframe trigger so the levels load correctly on intraday charts, which works around TradingView's history limits


When the market gaps over a weekend or holiday, the most recent lines automatically extend across the gap so you still see the full number of sessions you asked for.

Keep in mind the 1 Hour, 4 Hour and Daily levels only display on intraday charts. Weekly and higher levels display on any chart timeframe.

snapshot

-------------------------------------------------------------------

Volume Spike Levels

When a candle prints far more volume than normal, that usually means large players were active at those prices, and those prices tend to act as support and resistance long after the candle closes. This indicator finds those candles for you on the 1 Hour, 4 Hour, Daily, Weekly and Monthly timeframes and draws levels from them.

The detection system compares each completed candle's volume against an adaptive average of recent volume. The custom averaging method blends multiple lookback windows and filters out outlier readings, so one massive print or a dead holiday session does not distort the baseline, and the system calibrates itself to each instrument and to changing volume trends without any manual tuning. When a candle's volume stands far enough above that adaptive average, it is marked as a spike candle and its price levels are drawn. The exact lookback lengths, weighting and trigger threshold are proprietary, but those are the things the calculation measures.

For each spike candle you can draw its High & Low lines, Open line, Close line (on by default, since the close is where the heavy activity settled) and both 50% midlines. Spike lines stay on the chart for a set stretch of time based on their timeframe, then end:
  • 1 Hour spike levels display for 1 day
  • 4 Hour spike levels display for 3 days
  • Daily spike levels display for 1 week
  • Weekly spike levels display for 1 month, drawn thicker to show their importance
  • Monthly spike levels display for 1 quarter, drawn thicker to show their importance


The 1 Hour, 4 Hour and Daily spike levels only work on intraday charts. Weekly and Monthly spike levels work on any chart timeframe.

snapshot

-------------------------------------------------------------------

Trading Session Levels

Market makers around the world position themselves at specific times of day, so the session levels of the three major markets get respected over and over. The indicator tracks the Tokyo, London and New York sessions using each market's own local clock: Tokyo always triggers at 9:00 AM Tokyo time, London at 8:00 AM London time and New York at 9:30 AM New York time, no matter how daylight saving shifts line up between regions.

For each session you can turn on:
  • Session Open Boxes - A box drawn from the body of the first 1 minute candle of the session, with lines at that candle's high and low
  • Session Close Boxes - The same thing for the final 1 minute candle of the session, drawn with a thicker border
  • Session High & Low Lines - The full range of the completed session, drawn the moment the session ends


You control how many previous sessions stay on the chart, and each session element can show a label (NY Open, London Close, Tokyo High and so on) so you always know which market left the level behind. Sessions only display on intraday charts and hide automatically on the Daily chart and above.

snapshot

-------------------------------------------------------------------

Dual VWAPs With Previous Close Levels

The VWAP (Volume Weighted Average Price) is the average price paid for an asset, weighted by volume. Institutions grade and hedge their own positions against it, so price reacts to VWAP levels constantly, especially in the first hour after a market opens.

This indicator gives you two fully independent VWAPs. Each one has its own reset timeframe (4H, 12H, 1D, 1W, 1M, 3M or 12M), its own line thickness and color, and its own previous close levels. The previous close levels capture the final VWAP value of each completed period and draw it as a horizontal line across the next period, and these are some of the strongest reaction levels on the chart, so make sure to watch how price behaves around them. The defaults give you a daily reset VWAP and a weekly reset VWAP so you can track short term and longer term positioning at the same time.

VWAPs only display on intraday charts.

snapshot

-------------------------------------------------------------------

External Indicator Filter Trend Output

The indicator sends out a trend direction value named Trend Direction To Send To External Indicators: 1 for bullish, -1 for bearish and 0 for neutral. Any indicator that can read an external source can use this value as a signal filter, so your signal indicators only fire in the direction of the Supply And Demand trend.

You define what counts as the trend with up to four filters:
  • VWAP #1 and VWAP #2 - Price above the VWAP counts bullish, price below counts bearish. These filters work even when that VWAP's display is turned off
  • Two OHLC Filters - Each one compares price to a level type you choose (High and Low, Open and Close, Candle Body 50%, High Low 50% or Current Open) on a timeframe you choose, from 1 Hour up to Yearly. For the two-value level types, price must clear the upper value to count bullish or the lower value to count bearish, and price between the two counts neutral


The output only flips to 1 or -1 when every enabled filter agrees. Anything less reads 0, so the trend value stays conservative and keeps you out of trades when your chosen levels disagree.

-------------------------------------------------------------------

Price-Tracking Labels & Warning Table

Every level type can show a label that follows the right edge of the chart at the line's price, so you can identify any line at a glance without a reference table:
  • Labels read like Prev 1D High, 1W Vol Close or VWAP 1D, so the timeframe and level type are always in the name
  • When the Line Length Multiple keeps several sessions of lines alive at once, the older live lines get an age marker, like Prev[1] 1D High for one session back and Prev[2] 1D High for two, so overlapping sessions never get confusing
  • When a line reaches the end of its display length, its label freezes in place at that line and drops the marker
  • The label distance from the live bar is adjustable in the settings
  • 1 Hour levels do not use labels on purpose, since up to 24 sets of hourly labels would bury the chart


A warning table at the top center of the chart tells you if a Display Anchor needs to be lowered for higher timeframe levels to load, or if your settings have more lines turned on than TradingView's 500 line cap allows. The warnings clear themselves as soon as the problem is fixed, and the table can be turned off.

-------------------------------------------------------------------

How To Trade With This Indicator

  • Wait for price to reach a level, then watch for the reaction: rejection wicks, price struggling to break through, or reversal candles right at the level. Enter on the reversal and target the next major level.
  • The strongest zones are where levels stack. When a volume spike close, a higher timeframe midline and a VWAP level sit close together, that confluence area matters far more than any single line on its own.
  • Thicker lines and higher timeframe lines are the most important levels on the chart, so give them the most respect.
  • Use the midlines for trend direction. Price above a timeframe's midline is bullish for that timeframe. The 1 Hour and 4 Hour midlines give you short term direction, and the Daily and higher midlines give you longer term direction and price targets.
  • Use the Current Open lines as a live bias check. Above the daily open is bullish for the day, below it is bearish, and the same idea works on every timeframe.
  • For scalping, turn on more of the lower timeframe and session levels so there are always nearby levels to trade between.
  • For swing trading, turn off the lower timeframe and session levels and keep the Daily and higher OHLC levels, the midlines and the Weekly and Monthly volume spikes. Then swing the reversals from one major level to the next.
  • Feed the trend output into your signal indicators so entries only fire with the higher timeframe trend.


-------------------------------------------------------------------

Higher Timeframe Data, Level Confirmation and Repainting

Every drawn level comes from completed data and never repaints. All OHLC levels, midlines and volume spike levels are calculated from the most recent fully completed candle of their timeframe. Once a line is drawn, its price never changes, moves or repaints, and a level only shifts to a new price when the next candle of that timeframe fully completes and a new line is drawn for it. Old lines only leave the chart when they reach the end of their display length or roll off past your Number Of Lines Back setting. The script does not use lookahead to read future data anywhere.

Current Open lines. These use the open price of the live candle, which is locked in the moment that candle starts, so the line never moves. When a new period begins, a new Current Open line is drawn at the new open.

Session levels. Session boxes are drawn from already completed 1 minute candles at fixed session times, and the session high and low lines are drawn the moment a session ends, from that session's completed range. None of them change after they are drawn.

Live VWAPs. The two live VWAP plots update in real time on the open bar, the same way any standard VWAP does. Each VWAP's previous close level is only captured after its period fully completes, so those lines are locked historical values that never change.

-------------------------------------------------------------------

Settings Overview

  • OHLC Levels (one group per timeframe) - Master toggle, number of lines back, Line Length Multiple, a toggle for each line type, Candle Body Color Fill, labels, Extend Lines Right on Daily and up, and Display Anchor on Weekly and up
  • Sessions - Open boxes, close boxes, session high & low lines, number of sessions back, individual toggles for Tokyo, London and New York, and session labels
  • VWAP #1 & VWAP #2 - On/off, reset timeframe, previous close levels, number of close lines, line thickness and labels for each VWAP
  • Volume Spike Levels (one group per timeframe) - Master toggle, number of spikes back, a toggle for each line type, and labels
  • External Indicator Filter Trend Settings - Toggles for all four filters plus the level type and timeframe for each OHLC filter
  • Visual Settings - Label offset distance and the warning table toggle
  • Colors - Every color lives in four groups at the bottom of the panel (OHLC, Volume Spike, Session, VWAP) so the day to day toggles stay clean, and every input has a tooltip explaining exactly what it does


-------------------------------------------------------------------

Markets and Timeframes

This indicator works on any market with price data, including stocks, crypto, forex and futures, and on all chart timeframes. The default settings are a balanced starting point for intraday trading, so make sure to fine tune which levels are on to suit your trading style: add lower timeframe and session levels for scalping, or strip them off and keep the higher timeframe levels for swing trading.

The volume spike levels and VWAPs need volume data to calculate, so symbols with no volume data, such as some indices, will not produce those levels. All of the OHLC and session levels still work on those symbols.

-------------------------------------------------------------------

Important Notes and Limitations

  • The 1 Hour, 4 Hour and Daily OHLC levels, the 1 Hour, 4 Hour and Daily volume spike levels, all session levels and both VWAPs display on intraday charts only. On the Daily chart and above you still get the Weekly, Monthly, Quarterly and Yearly OHLC levels plus the Weekly and Monthly volume spikes.
  • TradingView caps every script at 500 lines on the chart. The default settings sit comfortably under that cap, but turning on every line type on every timeframe with high line counts can exceed it. The warning table will alert you if that happens, and lowering the number of lines on the timeframes you watch least fixes it.
  • If Weekly or higher levels do not appear on your chart, check the warning table and lower that timeframe's Display Anchor. As a starting point, set the Weekly and Monthly anchors to 1D on intraday charts.
  • Symbols without volume data will not produce volume spike levels or VWAP levels.
  • These levels mark areas where price is likely to react, not guarantees that it will. No indicator is right all of the time and past results never guarantee future performance, so always confirm the reaction, use your own judgment and manage your risk on every trade.

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.