TradingView chart patterns

Double bottom pattern: when a W becomes a confirmed setup

A double bottom pattern is a possible bullish reversal after a decline: price makes a low, rebounds, tests a similar low, then rises again. This creates the W chart pattern. The intermediate high defines the neckline. TradingView treats the pattern as formed after a close above that level; two similar lows alone leave the reversal unconfirmed.

See the decision guide

Define the lows, spacing and rebound before searching

For a repeatable double bottom chart pattern, label the first low L1, the second low L2 and the highest high strictly between them N. The following custom specification is illustrative. Its thresholds are neither recommended settings nor a reproduction of the TradingView detector. Use ordinary price candles and evaluate the latest two confirmed lows when no candidate is active.

  • The fixed rebound threshold belongs to this numerical example. It has a different meaning on a $5 stock and a $500 stock. A percentage or volatility-based alternative needs its own definition.
  • The prior-decline filter is a measurable choice, not proof of a persistent downtrend. Changing that filter changes the candidate sample.
  • Keep a candidate active for 20 completed bars starting with L2 confirmation. Freeze L1, L2 and N for that window; do not keep raising N as later highs appear.
DecisionIllustrative ruleWhat it excludes
Prior declineThe close immediately before L1 is at least 8% below the close 20 bars before L1A W inside a flat range that lacks this chosen reversal context
Distinct lowsEach low has three bars on each side with strictly higher lows; reject tiesA low still waiting for its three right-side bars
Low toleranceAbsolute difference between L1 and L2 divided by L1 is at most 1%; require positive pricesA second low outside the permitted band
Spacing10 to 40 bars between the selected low bars, inclusiveNeighboring candles that belong to one test, or a stale pairing
Rebound heightN exceeds the higher of L1 and L2 by at least 3.5 price unitsA shallow bounce between otherwise similar lows

Follow a W that has not broken its neckline

Assume a hypothetical stock has passed the prior-decline rule. L1 is $50.00 at bar 20, L2 is $50.30 at bar 38, and N is $54.00 at bar 29. The low difference is 0.6%, the separation is 18 bars and the rebound above the higher low is $3.70. Those values pass the custom geometry rules. They do not yet create a breakout.

  • Read each row using only the information available then. At bar 43, a future close at $54.40 cannot justify labeling the earlier W confirmed.
  • This detector accepts the first eligible close above N, including at bar 41 if it is already above N. It does not require a fresh crossing from below. A fresh-crossing detector is a different specification.
  • A double bottom stock chart pattern also needs a fixed session and price-adjustment convention when comparing charts. Keep those settings unchanged through the review.
TimeAvailable observationDecision
Bar 38The second low prints at $50.30Provisional low; its right-side bars do not exist yet
Close of bar 41Bars 39 through 41 have higher lows, confirming L2Candidate becomes eligible; freeze the $54 neckline
Bar 42High $54.20; close $53.70Wick exceeds N, but the closing rule has not passed
Bar 43Close $53.90Still an unconfirmed candidate
Bar 44, possible continuationClose $54.40, with no earlier invalidationFirst eligible close above N confirms the example

Distinguish no breakout from a failed breakout

These alternative paths start from the same eligible candidate. For this example, invalidate before confirmation if a completed bar has a low below min(L1, L2) minus $0.50, which is $49.50. Check that condition before the closing breakout condition on the same bar. This is a custom buffer, not an official pattern requirement.

  • The neckline-failure definition is an early warning chosen for this example. It is not a claim that price cannot recover, and it is not the same as a stop order below a bottom.
  • A W trading pattern can look clear without ever confirming. Do not count an expired candidate as a losing trade when the strategy never entered.
  • Preserve the original confirmation when a later failure occurs. Erasing failed drawings makes a historical chart look more selective than the detector was.
Alternative pathClassificationReason
Every eligible close through bar 60 stays at or below $54; no low breaches $49.50Expired without confirmationThe 20-bar window ends without a qualifying close
Before any qualifying close, a completed bar has a $49.40 lowInvalidated candidateThe support buffer fails even if that bar later closes above $54
Bar 44 closes at $54.40, then bar 46 closes at $53.60Confirmed breakout followed by a neckline failureFor this review, the first later close below N marks failure

A price projection does not complete the trading rules

An illustrative measured move uses height H = N - min(L1, L2), then projects N + H. With the hypothetical prices above, H is $4 and the reference level is $58. This is geometry, not an estimate of the probability of reaching $58. An entry above $54 also leaves less distance to that reference than an entry exactly at the neckline.

  • Choose whether to enter after a qualifying close or wait for a separately defined retest. A retest rule can miss a rally that never returns to the neckline.
  • Specify the stop, position size, maximum holding time and costs before treating the setup as a strategy. A detector that marks a W does not define any of these.
  • TradingView strategies normally create orders after a bar closes and fill a market order at the next available tick, commonly the next historical bar open. A closing signal at $54.40 is not proof of a fill at $54.40.
  • Keep commissions, slippage and gaps in the test. No success rate, best timeframe or profitable parameter set is established by this example.

Record when the low became knowable

TradingView documents 5/5 pivots for its built-in double-bottom detector, and its In Progress setting can show an emerging second bottom. A pivot drawn on an earlier candle can therefore appear only after later bars provide confirmation. In the custom example, L2 belongs to bar 38 but becomes usable at the close of bar 41.

  • Store three times separately: the low bar, its confirmation bar and the neckline event bar. Never backdate a trade or alert to the low just because a drawing is placed there.
  • Waiting for a completed candle avoids treating a temporary intrabar close as final. It does not eliminate every possible source of repainting, including changes in source data.
  • For a script draft, give Pineify the complete selection, tolerance, spacing, expiry and same-bar precedence rules. Ask for separate candidate and confirmation markers so the timing can be inspected.
  • Review the generated code, validate its syntax, and replay a fixed sample bar by bar. Compare the log with your written rules before interpreting trading results.
Where Pineify fits

Pine Script AI Coding Agent

Describe your W-pattern rules to draft a Pine Script detector with explicit confirmation timing. Inspect the generated logic before using alerts or adding trade rules. This guide does not scan markets or report tested performance.

Draft double-bottom rules

Frequently asked questions

Educational information, not investment advice. All prices, thresholds and event paths are hypothetical. No backtest or live results are presented. Pattern confirmation and geometric targets do not guarantee a reversal, a fill price or profit.

Sources and verification

Published by Pineify. Pineify is an independent product and is not affiliated with TradingView. Sources support the technical explanations; examples do not establish trading performance.