Indicators · Support and resistance on the price chart · explained simply

AreaTarget 1.3.2

Copy the full Pine script and paste it into TradingView’s Pine Editor. Or copy this explanation, open Grok, and paste it with your question.

Open Grok ↗

AreaTarget draws support and resistance boxes from swing highs and lows, and marks a momentum shift (MS) when market structure changes. A small corner table shows the structure trend and a Tetrad meter. It is a chart-reading tool: it does not mark buys or sells. It works on any timeframe—minutes, hours, daily, weekly, or monthly—and follows the chart you put it on.

AreaTarget 1.3.2 and AreaTarget H 1.1.1 example on a BTCUSDT 30-minute chart, with support and resistance boxes on price and the AreaTarget H pane below; historical screenshot, not live data.
Example screenshot—not live data. BTCUSDT 30-minute chart with AreaTarget 1.3.2 on price and AreaTarget H 1.1.1 in the pane below. Select the image to open full size.

Six questions this page answers

Use the guide below the same way you would judge any tool on a chart:

  • What state is the market in?
  • What should I do, and at exactly what price?
  • How sure is it?
  • What proves it wrong?
  • Has it worked before on this chart?
  • What can’t it tell me?

What it tells you

What state is the market in? AreaTarget maps nearby support and resistance and whether structure has flipped. What should I do, and at exactly what price? It does not tell you to buy or sell, and it does not pick an entry price. Use the boxes and marks as a map, not as orders.

A swing high is a bar whose high stands above a set number of bars on both sides of it (the default is 20). A swing low is the mirror. The script uses TradingView’s built-in high and low tests, so a swing is only known that many bars after it forms. Once it appears, the pivot and its zone level do not repaint.

Each confirmed swing makes one zone. The box runs from the pivot bar’s wick to its body edge. Depth is capped at the “Zone depth cap” in ATR (default 0.5) and is at least 0.1 ATR thick. The zone’s level is the real wick price, and that level never moves.

If a later swing lands inside a zone, or within “Merge within” ATR of it (default 0.5), it joins that zone as a touch (x2, x3, and so on) instead of making a new box. When more than one zone is in reach, the swing joins the nearest one. Inside a zone counts as distance 0. A tie goes to the nearer wick.

Zone color follows live price:

  • Red: the zone is above price (resistance).
  • Green: the zone is below price (support).
  • Gold: price is inside the zone.

A close through a zone is counted when price finishes on the other side of it. With the default “Delete a zone after this many closes through it” of 2, the first close through flips the zone (resistance becomes support, or the reverse) and the box becomes dashed. The second close through deletes it. Set this to 1 to delete on the first close through, with no flips. A zone with no touch or flip for “Forget after” bars (default 300) is deleted. At most 100 zones are kept.

The chart draws the nearest “Zones each side of price” (default 3) above and below, plus any zone price is inside. Boxes extend to the right. Price labels (on by default) print the wick price, a touch count when there is more than one touch, and the word “flip” after a zone has flipped.

The default swing length of 20 is a good starting point on daily and intraday charts. On weekly charts, try 8 to 10 for the MS swing length.

The MS marks

MS markers print on confirmed closes only. The default source is structure:

  • Green MS under a bar: the close crossed above the last swing high while structure was bearish. That is a change of character (CHoCH) to the upside.
  • Red MS over a bar: the close crossed below the last swing low while structure was bullish. That is a CHoCH to the downside.

Breaks in the direction of the existing trend (BOS) are not marked. You can also set the MS source to a PMO cross (the same 35 / 20 momentum line used in PrimoX, crossing its 10-bar signal) or turn the marks off. The MS swing length is separate from the zone swing length; both default to 20.

The table

The header shows “AreaTarget 1.3.2” and the two swing lengths in use (zones and MS).

  • Structure: BULLISH, BEARISH, or a dash if the trend is not set yet. This reads the last closed bar only, like the MS markers.
  • Tetrad: Tetrad 1.3’s meter at factory settings. It is meant to be read from about −5 (stretched down, green) to +5 (stretched up, red).

Optional lines

Strong / weak high and low lines are off by default. When turned on, dotted trail lines mark the current strong or weak high and low from the last confirmed MS swing. The high is labeled “Strong High” when structure on the last closed bar is bearish, and “Weak High” otherwise. The low is labeled “Strong Low” when structure is bullish, and “Weak Low” otherwise.

Settings

Swings and zones: swing length (default 20), zones each side of price (default 3), zone depth cap (default 0.5 ATR), merge within (default 0.5 ATR), delete after this many closes through (default 2), forget after (default 300 bars), price labels (on), and “Draw zones from”: Swing (default, the box starts at the swing bar) or Confirmation (where AreaTarget first knew the zone).

Momentum shift: MS source (Structure, PMO cross, or Off), MS swing length (default 20), and the optional strong / weak lines.

Corner table: on by default, position Bottom Right.

With AreaTarget H

AreaTarget is the overlay: zones, MS labels, and the structure / Tetrad table sit on the price chart. AreaTarget H is the lower pane: it plots the PMO, learned high and low lines, the same MS markers as triangles, and optional PMO divergences. H also reprints structure, the last MS, and the nearest support and resistance in its own table.

To keep the two in step, match MS source and MS swing length, and match the zone settings (swing length, depth cap, merge, delete, and forget). Both scripts work on any timeframe. Default 20 / 20 on both is a good starting point on daily and intraday charts.

Alerts

  • MS up: a momentum shift up at the confirmed close.
  • MS down: a momentum shift down at the confirmed close.
  • Zone flip: a confirmed close through a zone that flipped it (the zone was not deleted).

The Data Window also lists the last MS (1 up, −1 down), structure (1 bull, −1 bear), the Tetrad meter, and the build number 1.32.

What it can’t tell you

How sure is it? There is no confidence score. What proves it wrong? A zone can flip or vanish after closes through it, and an MS the other way can change the structure reading. Has it worked before? This script keeps no scorecard or pretend account. Nothing in it is tested as a trading edge.

  • A swing zone is not known until “Swing length” bars after the pivot, because the built-in test uses that many bars on both sides. Once that confirmation prints, the pivot and its zone level do not repaint.
  • An MS structure pivot is not known until “MS swing length” bars after the pivot, for the same reason. Because 1.3.2 now uses bars on both sides, MS markers can land a bar or so differently than they did in 1.3.1.
  • MS markers, the Structure row, zone creates, merges, flips, deletes, and the Zone flip alert all wait for a confirmed close.
  • Zone colors, price labels, and the Tetrad reading in the table update on the last bar as price moves, so those visuals can change until the bar closes.
  • “Draw zones from: Swing” starts the box at the historical swing bar. That is a drawing choice. The script did not know the zone until the confirmation bar.
  • Breaks of structure in the trend’s direction (BOS) are not marked. Only a change of character is.
  • AreaTarget is a TradingView indicator. MystTrades does not show live AreaTarget readings.

Version

AreaTarget 1.3.2 by TheurgyLabs (build of Nov 22, 2026). This build uses TradingView’s built-in swing pivots, with bars on both sides, for the MS marks and the optional strong / weak lines. MS markers can land a bar or so differently than they did in 1.3.1. Zones, merges, and alerts are the same as 1.3.

← All indicators