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.
| Decision | Illustrative rule | What it excludes |
|---|
| Prior decline | The close immediately before L1 is at least 8% below the close 20 bars before L1 | A W inside a flat range that lacks this chosen reversal context |
| Distinct lows | Each low has three bars on each side with strictly higher lows; reject ties | A low still waiting for its three right-side bars |
| Low tolerance | Absolute difference between L1 and L2 divided by L1 is at most 1%; require positive prices | A second low outside the permitted band |
| Spacing | 10 to 40 bars between the selected low bars, inclusive | Neighboring candles that belong to one test, or a stale pairing |
| Rebound height | N exceeds the higher of L1 and L2 by at least 3.5 price units | A 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.
| Time | Available observation | Decision |
|---|
| Bar 38 | The second low prints at $50.30 | Provisional low; its right-side bars do not exist yet |
| Close of bar 41 | Bars 39 through 41 have higher lows, confirming L2 | Candidate becomes eligible; freeze the $54 neckline |
| Bar 42 | High $54.20; close $53.70 | Wick exceeds N, but the closing rule has not passed |
| Bar 43 | Close $53.90 | Still an unconfirmed candidate |
| Bar 44, possible continuation | Close $54.40, with no earlier invalidation | First 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 path | Classification | Reason |
|---|
| Every eligible close through bar 60 stays at or below $54; no low breaches $49.50 | Expired without confirmation | The 20-bar window ends without a qualifying close |
| Before any qualifying close, a completed bar has a $49.40 low | Invalidated candidate | The support buffer fails even if that bar later closes above $54 |
| Bar 44 closes at $54.40, then bar 46 closes at $53.60 | Confirmed breakout followed by a neckline failure | For 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.