Research checked July 18, 2026
How to draw support and resistance with explicit rules
To draw support and resistance, choose one timeframe, find repeated swing reactions, mark a price zone around the cluster, and write a rule for when the zone breaks. Draw areas, not perfect lines. Price often turns within a band because orders do not all occur at one exact number.
How Pineify helps
Pineify can interpret visible levels in a readable screenshot for an eligible signed-in account. The result can be wrong or incomplete. Separately, its coding agent can draft Pine Script from an explicit rule; review and test the generated conditions instead of assuming exact adherence.
Step 1: choose one timeframe and enough history
For a reproducible example, select 120 closed candles on one fixed timeframe. This lookback is a study parameter, not a proven minimum. Keep the price axis, session and adjustment settings recorded. A higher or lower timeframe can be reviewed separately, with its own levels.
- Swing review: start with daily candles, then refine on four-hour.
- Day-trading review: start with hourly, then refine on 15-minute.
- Keep the price axis and timeframe label visible in screenshots.
Step 2: mark repeated reactions
One custom rule identifies a pivot high only when its high exceeds the highs of two closed bars on each side; reverse the comparison for a pivot low. It is known two bars after the pivot, not on the pivot bar itself. Define how far apart repeated reactions must be before calling them separate tests; several neighboring candles need not be independent evidence.
Step 3: draw a zone instead of an exact line
For an illustrative fixed-width zone, center it on the confirmed pivot and set total width to 0.5 times the 14-period ATR measured at confirmation. Thus a pivot at 100 and ATR of 4 produces a band from 99 to 101. Freeze that width for later evaluation; recomputing it after the outcome changes the rule. These parameters are examples, not optimized settings.
- Support sits below current price and contains prior buying reactions.
- Resistance sits above current price and contains prior selling reactions.
- Old resistance can become support after a close above and a successful retest.
- Old support can become resistance after a close below and a failed recovery.
Step 4: define failure before planning a trade
Write a failure rule before the next move. For example, record a break when a closed candle finishes outside the band, then separately record whether a later retest closes on the other side. State the maximum retest window and timeframe. A lower-timeframe touch is not the same event as the original timeframe closing outside the zone.
Common drawing mistakes
Retain the original chart and zone coordinates. Do not move a boundary to fit the later outcome. If the display becomes crowded, use a fixed selection rule such as the nearest zone above and below current price, and keep the omitted zones in the study record.
Research notes
Sources and update notes
Checked July 18, 2026
- TIO Markets drawing tutorial
Reference for using clean charts, repeated reactions, and zones rather than exact prices.
- Fidelity support and resistance explainer
Reference for the basic definitions and role change after a break.
- IG support and resistance guide
A second instructional source covering peaks, troughs, timeframes, and the limits of exact levels.
This page is an information tool, not investment advice. Support and resistance are subjective chart interpretations and can fail. AI analysis and Pine Script rules cannot predict market prices or guarantee results. Test any rule and define risk before using it.