Search...Ctrl K

Overview

Smart Swing Turning Points. A multi-timeframe swing detection indicator that reveals the turning points of higher timeframes directly on your current chart.


The Core Idea

Every chart timeframe has its own swing rhythm. Daily charts show daily pivots. Weekly charts show weekly pivots. Monthly charts show monthly pivots. But switching between charts constantly is tedious, and you lose context each time you change views.

SSTP solves this by bringing higher timeframe turning points down to your working chart. On a daily chart, you can see exactly where Weekly, Monthly, Quarterly, and Yearly swings occurred — without ever leaving the daily view.

The indicator places a color-coded letter label at each turning point: W for weekly, M for monthly, Q for quarterly, Y for yearly. When multiple timeframes pivot at the same bar, the labels stack vertically so nothing is hidden.

<!-- IMAGE: sstp-daily-chart-overview.png — Daily chart with W, M, Q labels visible at various turning points. Show at least 3 months of data with clear swing structure. -->

SSTP on a daily chart showing Weekly, Monthly, and Quarterly turning points without leaving the daily view.SSTP on a daily chart showing Weekly, Monthly, and Quarterly turning points without leaving the daily view.


What Makes SSTP Different from SSI PRO

SSI PRO analyzes your current chart's timeframe in depth. It draws connected swing lines from pivot to pivot, calculates 18 metrics (price, time, volume, velocity ratios), and provides extensive labeling and alert options.

SSTP takes a different approach:

AspectSSI PROSSTP
Timeframes analyzedCurrent chart onlyUp to 10 simultaneously
Visual outputConnected swing lines + metric labelsTimeframe letter labels (no lines)
Primary useDetailed single-timeframe swing analysisMulti-timeframe structural context
DetectionConfigurable 1-5 period swingPeriod 1 per timeframe (fixed)
Metrics18 metrics on labels + tooltipsMetrics in tooltips only
Key unique featuresAlerts, S/R proximity, webhooksX-Ray Mode, hierarchical counting, 63-column CSV

Think of SSI PRO as your microscope — detailed analysis of one timeframe. SSTP is your map — showing where you are in the larger structure across timeframes.


Ten Timeframes, Two Detection Methods

SSTP tracks ten distinct timeframe levels using two fundamentally different detection methods:

Period-Based Timeframes (8 levels)

These accumulate bars until a period boundary is reached, then evaluate the completed period:

  • 15-Minute — Accumulates chart bars until 15 minutes complete
  • 1-Hour — Accumulates until the hour boundary
  • 4-Hour — Accumulates until 4-hour boundary (exchange-aligned)
  • Daily — Accumulates until the trading day ends
  • Weekly — Accumulates daily bars until the week ends
  • Monthly — Accumulates until the calendar month ends
  • Quarterly — Accumulates until the calendar quarter ends
  • Yearly — Accumulates until the calendar year ends

When a period completes, SSTP classifies it against the previous period (Higher High, Lower Low, Outside Bar, Inside Bar) and applies swing detection logic. If the classification represents a change in direction, a swing is confirmed and a label placed at the bar where the extreme occurred.

Count-Based Timeframes (2 levels)

These use Gann's multi-day swing methodology, counting consecutive directional daily bars:

  • 2-Day — Confirms swings after 2 consecutive same-direction daily bars
  • 3-Day — Confirms swings after 3 consecutive same-direction daily bars

These don't wait for a period boundary — they watch for directional persistence. When price moves in one direction for the required number of consecutive days, the previous opposite extreme is confirmed as a swing.

Count-based detection only works on daily charts. On any other chart timeframe, these options are automatically hidden.

<!-- IMAGE: sstp-2day-3day-example.png — Daily chart showing 2D and 3D labels at confirmed swings alongside W and M labels. Annotate which labels are count-based vs period-based. -->

Period-based (W, M) and count-based (2D, 3D) timeframes coexisting on the same daily chart.Period-based (W, M) and count-based (2D, 3D) timeframes coexisting on the same daily chart.


Bar Classification

Every completed period receives one of five classifications by comparing its price range to the previous period. This classification drives all swing detection — no moving averages, RSI, or mathematical formulas are involved.

ClassificationAbbreviationWhat It Means
Higher HighHHHigh exceeded the prior period's high; low stayed at or above the prior low. Price is pushing upward.
Lower LowLLLow fell below the prior period's low; high stayed at or below the prior high. Price is pushing downward.
Outside BarOBHigh exceeded the prior high AND low fell below the prior low. Price moved in both directions — ambiguous.
Inside BarIBPrice stayed entirely within the prior period's range. No new high, no new low. Consolidation.
False Outside BarAn OB whose closing price didn't confirm the breakout direction. A potential trap.

Inside Bars don't change the swing direction — they're treated as pauses. Outside Bars are resolved using a configurable mode: continuation (conservative), reversal (aggressive), or skip (simplified). False Outside Bars receive distinct visual treatment when enabled.

This classification happens independently at each timeframe level, which is why you can see a weekly swing confirm while the monthly trend continues uninterrupted.


Practical Applications

Identifying Multi-Timeframe Confluence

When Weekly and Monthly swings converge at the same price level, that's structurally significant. SSTP makes these convergences immediately visible — labels stack at the same bar, showing you exactly how many timeframes agree on a turning point.

Understanding Where You Are in the Cycle

By watching how swings nest across timeframes, you develop intuition for market structure:

  • A Monthly low forming after a Quarterly low suggests a significant bottom
  • A Weekly high forming against a Monthly high warns of potential exhaustion
  • Daily swings churning without higher timeframe confirmation indicates consolidation

The hierarchical counting system tracks this precisely. The Full tooltip tier shows a swing number like "W-14" — the 14th weekly swing since the monthly counter last reset. This reveals whether a cycle is early, mature, or overdue.

Data Export for Research

The 63-column CSV export transforms the indicator into a data pipeline. Researchers enable CSV Data Only mode (bypassing TradingView's 500-label display limit), export decades of data, and analyze swing durations, expansion ratios, and cycle counts in Python, Excel, or SQL.

Structural Visualization with X-Ray

X-Ray Mode overlays color-coded rectangles showing how each period was classified. Instead of just seeing where swings occurred, you see the entire structural pattern: which weeks trended up, which reversed, where consolidation clustered, and where false breakouts appeared.

<!-- IMAGE: sstp-xray-weekly.png — Daily chart with Weekly X-Ray enabled showing 5-8 completed rectangles transitioning through a trend change. Annotate each rectangle's classification. -->

Weekly X-Ray Mode reveals the structural pattern behind price — green for uptrending weeks, red for downtrending, white for expansion, blue for consolidation.Weekly X-Ray Mode reveals the structural pattern behind price — green for uptrending weeks, red for downtrending, white for expansion, blue for consolidation.


How Labels Work

Each enabled timeframe gets its own color pair — one for highs, one for lows. When a swing confirms, SSTP places the appropriate letter at the bar where the extreme occurred:

TimeframeLabelDefault High ColorDefault Low Color
15-Minute15mSilverSilver
1-Hour1HCyanCyan
4-Hour4HPurplePurple
DailyDLimeDark Red
2-Day2DGoldGold
3-Day3DOrangeOrange
WeeklyWGreenRed
MonthlyMBlueOrange
QuarterlyQPurpleFuchsia
YearlyYTealMaroon

Labels appear above the bar for swing highs, below for swing lows. When multiple timeframes pivot at the same bar, labels stack vertically with configurable spacing. Smaller timeframes are placed closest to price; larger timeframes furthest — creating a natural reading order from local to major.

Two label styles are available: Filled (colored background with white text) for busy charts where labels need to stand out, and Text Only (transparent background with colored text) for a cleaner look. Label sizes are configurable per tier — Intraday, Daily/Multi-Day, and Higher Timeframe — with options from Tiny to Large.

<!-- IMAGE: sstp-label-styles.png — Same chart section side by side: Filled labels on left, Text Only labels on right, both showing W/M/Q swing labels at the same turning points. -->

Filled labels (left) provide high visibility on busy charts. Text Only labels (right) offer a cleaner, less intrusive look.Filled labels (left) provide high visibility on busy charts. Text Only labels (right) offer a cleaner, less intrusive look.


Tooltips

Hover over any label to see analytical detail about that swing. SSTP uses a five-tier system so you control how much information appears:

TierNameWhat It Shows
0NoneTooltips disabled
1BasicPrice, date, range (points), duration
2Proportional+ Percentage move, Px/Pr (price ratios), Tx/Tr (time ratios), pattern type
3Momentum+ Velocity per bar, velocity per day, volume, Vx/Vr (volume ratios)
4Full+ Velocity ratios, swing number, hierarchy tag, cycle count, phase

Each tier includes everything from the tiers below it. The default is Basic — enough to identify what happened, where, and when.

The ratios compare each swing to previous swings. Price Expansion (Px) compares to the last same-direction swing — revealing whether moves are growing or shrinking. Price Retracement (Pr) compares to the immediately preceding swing — showing how much was retraced. The same logic applies to time (Tx, Tr), volume (Vx, Vr), and velocity ratios.

The first few swings for each timeframe won't have previous-swing data for ratio calculations. When a ratio can't be computed, the tooltip shows "--" instead of a number. This resolves automatically as the indicator processes more data.

<!-- IMAGE: sstp-tooltip-proportional.png — Zoomed-in tooltip showing Tier 2 (Proportional) data on a Weekly swing high. Include Px, Pr, Tx, Tr values and the section dividers. -->

Tier 2 tooltip showing price and time ratios — comparing this swing to previous swings in both directions.Tier 2 tooltip showing price and time ratios — comparing this swing to previous swings in both directions.


Chart Timeframe Constraints

SSTP only detects timeframes that can be meaningfully constructed from your current chart's data:

Your Chart TimeframeAvailable Detection Timeframes
1-Min to 15-MinAll 10 (15m through Y)
1-Hour1H through Y
4-Hour4H through Y
DailyD, 2D, 3D, W, M, Q, Y
WeeklyW, M, Q, Y
MonthlyM, Q, Y

If a timeframe can't be detected on your current chart (for example, 15-Minute on a Daily chart), it's automatically disabled regardless of your settings. You'll never see incorrect data from an impossible detection.

The 2-Day and 3-Day timeframes only appear on daily charts — they're specifically designed for daily bar analysis using Gann's consecutive bar counting method.


Performance

With 10 timeframes potentially active, SSTP manages a significant amount of data. Key optimizations keep it responsive:

Dynamic Window Drawing — Only renders labels and X-Ray boxes within the visible chart area plus a configurable buffer zone (50–1,000 bars). As you scroll, objects are created and cleaned up dynamically. This prevents hitting TradingView's 500-label limit and keeps performance constant regardless of how much history you load.

Isolated State Management — Each timeframe maintains completely independent state: its own swing detection, its own OB resolution, its own accumulation data, its own label array. Activity in one timeframe never affects another.

Intelligent Boundary Detection — Period boundaries align to actual exchange times, not arbitrary bar counts. This handles holidays, half-days, and irregular sessions correctly, and ensures the same swing appears at the same bar regardless of when you loaded the chart.

For deep historical analysis — scrolling back decades — Dynamic Window Drawing is essential. It dynamically creates and deletes labels as you scroll, keeping within platform limits while allowing you to view any historical period.


Using SSTP with SSI PRO

Many users run both indicators simultaneously:

  • SSI PRO on the current timeframe with detailed metrics, swing lines, and alerts
  • SSTP showing higher timeframe context with labels and X-Ray

Use different color schemes to distinguish them visually. For example, SSI PRO in greens/reds for the current timeframe structure, SSTP in blues/oranges for higher timeframe pivots.

The combination gives you both the microscope (SSI PRO's detailed single-timeframe analysis) and the map (SSTP's multi-timeframe structural context) on the same chart.

For comprehensive data analysis, you can export from both:

  • SSI PRO CSV: Detailed single-timeframe swing data with all 18 metrics, two timestamps (extreme vs. confirmation), and pattern codes
  • SSTP CSV: Multi-timeframe hierarchical position data with 63 columns covering all 10 timeframes

Merge by timestamp or bar index to create a unified dataset showing both detailed swing metrics and structural context.


Next Steps

  • Timeframes — Deep dive into period-based vs. count-based detection
  • Tooltips & Metrics — Understanding the five tooltip tiers and what each metric measures
  • X-Ray Mode — The classification overlay explained
  • Settings — Complete settings reference
  • CSV Export — Hierarchical swing data export