SSMT [TakingProphets]

Purpose
Informational overlay that detects intermarket SMT divergences between the chart symbol and a user-selected correlated symbol. It does not generate buy/sell signals and is not financial advice. Use it to structure analysis and alerts, not to automate trades.
What it does
Scans for SMT on five coordinated cycles: Micro, 90-Minute, Daily (Q1–Q4), Weekly, Monthly.
Draws anchored lines and labels where divergences occur and keeps them after the period ends so you can use historical SMTs as context.
Offers per-cycle alerts (high-side/bearish, low-side/bullish).
Optional session/quarter boxes for timing context.
Time base uses America/New_York to align with common session conventions (with a 17:00–18:00 ET pause guard for CME instruments).
Why these modules belong together (more than a mashup)
All cycles share a single time-partitioning framework (quarters/sessions → day → week → month). That common clock means:
Comparability: divergences on Micro/90m/D/W/M are directly comparable because they’re computed with the same boundaries for both instruments.
Sequencing: higher-cycle context can gate lower-cycle events (e.g., a Daily Q3 divergence framing how you treat a Micro divergence).
Persistence: drawings retain the cycle identity (e.g., [90m], [Daily Q2]) so prior signals remain interpretable as the market progresses.
This is a coherent engine—not separate indicators pasted together—because detection, labeling, alerts, and persistence are all driven by the same quarter/period state machine.
How it works (high-level mechanics)
Time partitioning
Daily quarters (ET):
Q1: 18:00–00:00
Q2: 00:00–06:00
Q3: 06:00–12:00
Q4: 12:00–18:00
90-Minute cycle: four 90-minute blocks inside the active session.
Micro cycle: finer 20–22 minute blocks inside the session for granular timing.
Weekly/Monthly: tracked by calendar periods (Mon–Fri, and calendar month).
Pause guard: 17:00–18:00 ET to avoid false transitions during CME’s daily maintenance window.
State tracking (per cycle)
Tracks previous vs. current highs/lows for the chart symbol and the correlated symbol (fetched at the same timeframe).
Maintains cycle IDs (e.g., year*100 + weekofyear for weekly) so drawings remain tied to the originating period.
Divergence condition (SMT)
High-side (bearish): one instrument makes a higher high vs. its previous period while the other does not.
Low-side (bullish): one instrument makes a lower low vs. its previous period while the other does not.
When detected, the script plots a labeled span/line (e.g., SSMT [90m] w/ES) and records it for persistence.
Alerts
Two per cycle: High-side (bearish) and Low-side (bullish).
Fire on the bar where the condition first becomes true.
Inputs & customization
Correlated symbol (default can be an index future).
Cycle toggles: Micro, 90m, Daily (Q1–Q4), Weekly, Monthly.
Styling: line color/width, label text/size.
Session/quarter boxes: on/off.
Alerts: per-cycle SMT events on/off.
How to use
Add the indicator to your chart (e.g., NQ, ES) and select a correlated symbol.
Turn on the cycles you want to monitor; optionally enable quarter/session boxes.
Interpret SMTs by side:
High-side (bearish): chart makes HH, correlated does not.
Low-side (bullish): chart makes LL, correlated does not.
Set alerts for the cycles that matter to your workflow.
Combine with your higher-timeframe narrative and risk rules.
Repainting, timing, and limitations
Uses higher-timeframe data without look-ahead; values can update intrabar until the period closes.
SMTs may form and resolve within a period; conservative users may wait for period close.
Assumes America/New_York timing; very thin markets may yield fewer or noisier signals.
SMT quality depends on the benchmark you select; correlations vary across regimes.
Educational tool only. No performance claims; not a signal generator.
Originality & scope (for protected/invite-only publications)
A multi-cycle SMT engine built on a shared quarter/period state machine (Micro → 90m → Daily Q1–Q4 → Weekly → Monthly).
Quarter-aware persistence keeps divergence drawings tied to their source cycle for durable context.
CME pause handling and stable calendar IDs make detections consistent across sessions and rollovers.
Implements SMT through extremum sequencing and cross-instrument comparison rather than wrapping generic divergence indicators.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact TakingProphets directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact TakingProphets directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.