Elliott Wave Detector PRO [TGTBTB]Elliott Wave Advanced v3 — Validated Wave Counting with Pattern Detection
A word before you start
Elliott Wave is supposedly one of the most powerful frameworks in technical analysis — and also one of the most difficult to apply correctly. The theory involves layers of rules, guidelines, pattern variations, and degree relationships that even experienced practitioners argue about. Automating it is genuinely hard, and no indicator (including this one) will get every count right every time. I felt like banging my head onto my desk more than once while trying to translate the rules into code....
What I tried to do here is capture the core rules and guidelines as faithfully as possible and make them accessible in a way that keeps things honest. The indicator won't show you a wave count unless it actually passes validation. That means you'll sometimes stare at a chart full of dot markers with no labels — and that's a feature, not a bug. I'd rather tell you "I don't know" than confidently show you something wrong.
I've put serious effort into getting the rule enforcement, pattern detection, and Fibonacci relationships right, but Elliott Wave will always involve interpretation. Treat this as a tool that tries to take the objective parts of the theory off your shoulders so you can focus on the parts that require judgment.
I deliberately made this indicator open source because I am not an Elliott Wave expert. So if you notice anything that is absolutely wrong according to the rulebook of Elliott Wave leave a message below or contact me directly so I can bug fix this indicator. The goal is to make Elliott Wave theory accessible to everyone.
What differentiates this indicator from other Elliot Wave indicators
This indicator attempts to solve the biggest problem with Elliott Wave analysis on charts: most auto-labelers just slap wave numbers onto every swing without checking if the count is actually valid.
Elliott Wave theory has three rules that cannot be broken. Ever. If your wave count violates any of them, it's wrong — no discussion. This indicator enforces all three before putting a single label on your chart:
1. Wave 2 never retraces beyond the start of Wave 1
2. Wave 3 is never the shortest among waves 1, 3, and 5
3. Wave 4 does not enter Wave 1's price territory (unless it's a diagonal)
If the pivots on your chart don't satisfy these rules, you won't see wave numbers — you'll see neutral dot markers instead. That's intentional. I'd rather show you nothing than show you a wrong count. Too many indicators out there label every zig-zag as "wave 3" and give people false confidence. This one stays quiet when it's not sure.
Pattern Detection
The indicator identifies five pattern types:
Impulse (5-wave motive) — Five alternating swings validated against all three cardinal rules, with confidence scoring based on Fibonacci proportions between the waves. Wave 3 at 1.618x Wave 1 - a high-confidence impulse. Wave 3 barely longer than Wave 1? Still valid, but lower confidence, which gets reflected by the score
Diagonal (Leading / Ending) — Same five-wave structure, but with the key difference that Wave 4 overlaps Wave 1. The indicator checks for a converging wedge shape and progressively shorter waves. These show up at the start or end of larger wave sequences and are easy to miscount as impulses if you're not checking for overlap.
Zigzag (A-B-C sharp correction) — Three-wave correction where Wave B typically retraces 38-79% of Wave A, and Wave C often equals Wave A in length. The indicator validates B doesn't exceed A's origin and C reaches beyond A's end.
Flat (Regular & Expanded) — Wave B retraces almost all of Wave A (or exceeds it in an expanded flat), and Wave C approximates Wave A's length. The indicator distinguishes between regular flats (B ≈ 100% of A) and expanded flats (B > 105% of A) because they have different trading implications.
Contracting Triangle (A-B-C-D-E) — Five-wave sideways pattern with converging boundaries. Each successive wave should be shorter than the previous one. The indicator checks that highs are declining and lows are rising, and requires at least 3 out of 4 contraction relationships to hold (real markets aren't always perfectly geometric).
Guidelines
Elliott Wave has rules (hard constraints) and guidelines (soft constraints that affect probability). This indicator checks both of them:
Alternation — If Wave 2 is a sharp, deep correction, Wave 4 should be a shallow, sideways one, and vice versa. The indicator classifies each correction based on retracement depth and duration relative to the preceding impulse, then checks whether waves 2 and 4 have different character. This isn't a dealbreaker if it fails, but it affects the confidence score and is shown on the info panel (✓ or ✗).
Sub-wave structure — Motive waves (1, 3, 5) should subdivide into 5 sub-waves internally, while corrective waves (2, 4) should subdivide into 3. The indicator counts secondary pivots within each primary wave's time range and checks if the internal structure is consistent with what Elliott Wave theory expects. Again, not a hard gate, but it influences confidence scoring.
Fibonacci Analysis
The Fibonacci levels are calculated with proper anchor points:
Retracements are projected from the last completed wave — showing where the current correction might find support/resistance.
Extensions use the correct Elliott Wave method: the prior impulse wave's length is projected from the corrective wave's end. So if you've completed waves 1-2, the Wave 3 target is projected as a 1.618 extension of Wave 1's length measured from Wave 2's end. Not from some arbitrary reference point.
When a validated pattern exists, the extension anchors are taken directly from the identified wave structure. When there's no confirmed pattern, it falls back to geometric pivot-based projection (and tells you so).
The Forecast Panel
I made a deliberate design choice for this: the forecast is gated behind pattern confirmation.
If the indicator has identified a validated impulse, zigzag, flat, triangle, or diagonal, the forecast panel shows "CONFIRMED" and provides wave-structure-aware targets and scenarios. After a completed correction, it projects the next impulse in the correct direction. After a completed impulse, it anticipates the corrective phase.
If no pattern has been validated, the forecast shows "UNCONFIRMED" and limits itself to cautious directional observations based on raw pivot geometry. No wave labels, no "Wave 3 starting!" claims, but a honest reporting of what the price structure looks like without pretending to know more than it does.
The projection lines on the chart reflect this too — confirmed forecasts get solid, visible projections; unconfirmed ones are thinner and more transparent.
Trade Signals
Three signal types, all requiring some degree of pattern confirmation:
-Wave 3 Entry — Fires after a valid Wave 2 retracement (38.2-78.6%) when the indicator has at least moderate confidence in the count
- Wave 5 Exit — Triggers when momentum is waning in a confirmed impulse (last wave significantly shorter than the overall move)
- Wave C Reversal — Signals when a validated zigzag or flat correction is complete and the reversal should begin
Signals won't fire on an unconfirmed wave count. If the indicator isn't sure what wave you're in, it won't pretend to give you entries.
Settings & Tuning
Swing Detection — The two most important inputs. "Primary Wave Swing Length" controls how many bars are needed to confirm a major swing (lower = more sensitive, more pivots, more patterns detected but potentially noisier). "Min Swing %" sets the minimum percentage move to qualify as a primary wave — for crypto on daily timeframes, 5-10% works well. For forex or equities you'll want to bring this down.
Sub-Wave Swing Length — Controls the secondary pivot detection used for internal structure validation. Keep this lower than the primary setting.
Everything else in the settings is display-related and fairly self-explanatory. Colors, text sizes, which elements to show/hide.
What this is NOT
This is not a crystal ball. Elliott Wave analysis is inherently subjective — two analysts can look at the same chart and produce different valid counts. What this indicator does is enforce the objective constraints of the theory and give you a probabilistic assessment of which pattern best fits the current structure.
It works best on higher timeframes (4H, Daily, Weekly) where the swing structure is cleaner. On 1-minute charts you'll mostly see dot markers because the noise rarely resolves into validated patterns — and that's the indicator doing its job correctly.
Use it alongside your other analysis. The wave count gives you context for where you are in the cycle. The Fibonacci levels give you targets. The signals give you timing. But none of it replaces risk management and position sizing. Indicator

Indicator

Monte Carlo CT [SS]This is the Monte Carlo CT indicator.
CT stands for "central tendencies" and is the real distinguishing characteristic of this indicator against other Monte Carlo based indicators.
In statistics, Central Tendency is a single value that attempts to describe a set of data by identifying the central position within that set. It is the typical or expected value that the data clusters around. While the most common measures are the mean (average), median (middle value), and mode (most frequent), in a Monte Carlo simulation, the central tendency acts as the gravity points of the forecast. Because a random walk can technically produce infinite paths, with some shooting to the moon and others crashing to zero, the central tendency filters out those wild outliers to show you the most mathematically probable path forward.
Instead of looking at the chaos of 200 individual spaghetti lines, the central tendency condenses that massive dataset into a clean, usable trajectory. It essentially represents the path of least resistance based on the historical volatility and drift the model has identified. By focusing on the median and its surrounding percentiles, you are shifting your perspective from "What could happen?" to "What is likely to happen?"
Now that we have that cleared up, lets talk more about the indicator and its components.
The Core Engine: Anchored Monte Carlo
Traditional Monte Carlo simulations often generate a spaghetti chart of thousands of lines that are visually overwhelming and practically unusable for a trader.
As we discussed above, this indicator uses Central Tendencies to solve that. Instead of showing every random path, it runs the simulations in the background and only plots the distribution percentiles.
Why Central Tendency > Raw Simulations?
The Median (White Line): Represents the average outcome. If you ran these simulations infinitely, this is the center of the bell curve.
The 75/25 Zones (Solid Green/Red): These are the standard volatility bounds. Price spent 50% of its simulated time within this corridor.
The 95/05 Bounds (Dashed Green/Red): These represent "Statistical Extremes." If price reaches these levels, it is entering a 2-sigma move (an outlier event).
The introduction of Naive Bayes
While everyone obsesses over KNN, I decided to do a little curve ball and try something new, most notably Naive Bayes.
While Monte Carlo is blind to current sentiment (it only cares about volatility and average returns), implementing a Naive Bayes Classifier allows the indicator to be highly observant. It looks at the relative volume and momentum to determine if the current bar looks like a winner or a loser based on the last x bars of training data.
Interpreting the Table
The NB Analysis table in the top right is your tactical dashboard:
Win Prob: This is the Posterior Probability . It’s the calculated likelihood that the current market conditions will lead to a positive price move.
Example: 65% means the training data of the current volume and momentum is historically skewed toward bulls.
MC Median: This pulls the final price point from the white Monte Carlo line. It gives you a specific price target for the end of your forecast horizon.
Rel Volume: Shows how much effort the market is putting in compared to its 50-period average. High volume + high Win Prob is a high-conviction signal.
Signal (LONG/SHORT): A binary output. If Win Prob > 50%, it flips to LONG.
Confidence: This filters the noise. If the Win Prob is between 40% and 60%, the model is essentially tossing a coin (Moderate). If it hits >70% or <30%, the statistical evidence is strong (High).
Using this tool
Ah yes, the practicality. Boring but important.
The most effective way to use this tool is to look for Convergence:
Check the Table: Is the Signal "LONG" with "HIGH" Confidence?
Check the Forecast: Does the Monte Carlo Median (White Line) have an upward slope?
Execute: Use the 25% (Solid Red) or 05% (Dashed Red) lines as buy the dip zones within a bullish forecast. Conversely, use the 95% (Dashed Green) as a logical place to take profits or tighten stops.
Customizations
In the user settings menu, you can adjust:
The lookback or training length for the Monte Carlo Simulations
The forecast length
The training length for the Naive Bayes model
Some general tips are:
Make sure your lookback is the same size or larger than your forecast
Match the forecast length with your trading horizon. If you want to be in no more than 1 hour on the 1-Minute chart, make sure you are setting this for a forecast horizon of 60 candles.
The Cherry on Top
In professional quantitative finance, we don't just guess; we model. This indicator uses a Log Normal Random Walk for the Monte Carlo and a Gaussian PDF (Probability Density Function) for the Naive Bayes, bringing institutional-grade math to the Pine Script environment. It treats trading as a game of probabilities, not certainties.
And there you have it! Hopefully you find this helpful and enjoy.
Thanks for reading and checking it out! Indicator

Futures Trading Sessions/Ranges v1.0Session Range Toolkit — Futures Trading Sessions Made Clear
A streamlined, no-nonsense session visualization tool designed for futures traders who care about structure, timing, and execution.
This script automatically draws clean range boxes around key market sessions, helping you quickly identify where price is building, expanding, and transitioning between global flows.
🔍 Core Features
Custom Session Range Boxes
Visualize price action across up to 4 fully customizable sessions
(Default: Asia, London, New York, and NY Pre-Market)
Flexible Session Controls
Toggle sessions on/off individually
Adjust session times to match your market or time-zone
Rename sessions to fit your workflow
Range Analytics
Optional tick range display for each session
Optional Open and closing range for each session
Average price (mean) plotted within session ranges
Key Toggleable Reference Levels
Midnight Open
New York Open
Easily track important institutional reference points
🎯 Who It’s For
Futures traders focused on session-based trading
Traders using liquidity, range expansion, or time-of-day models
Traders who base logic on session-based patterns
Anyone who wants a clear, customizable view of global market flow
Indicator

Indicator

Strategy

Indicator

Historical IQBy:MasterTonyTA
---
**Historical IQ— Track % Bull/Bear to gauge Historical Context of moves**
This indicator measures the historical reliability of key percentage levels derived from pivot highs and pivot lows. Rather than simply drawing support and resistance zones, it scores each level based on what price actually did when it arrived there — giving you a data-driven read on whether a level is worth trading or fading. CUSTOM PICK A % MOVE TO SEE HOW PRICE AS REACTED AT THAT %
---
**HOW IT'S CALCULATED**
The indicator operates in one of two modes — Bear or Bull — never both at once, keeping the chart clean and the analysis focused.
**Bear Mode (Pivot High → -N%)**
Every confirmed pivot high is identified using a configurable left/right bar lookback. From that pivot, a horizontal band is drawn at your chosen percentage below it — for example, -10% — with an adjustable tolerance creating a band rather than a single line. Once price enters a new pivot's range the previous band is closed off and locked for historical scoring.
On the final bar, every historical band is scanned bar by bar across its entire time window. Each band falls into one of three outcomes: price reached the band and closed above it (held as support — painted gold), price reached the band and closed below it (broke through — painted red), or price never reached the band at all (untouched — painted red but excluded from scoring).
**Bull Mode (Pivot Low → +N%)**
The same logic runs in reverse. Every confirmed pivot low generates a band at your chosen percentage above it. The three outcomes become: price reached the band and stalled without closing above it (resistance held — gold), price reached the band and closed above it (broke through — painted green), or price never reached the band (untouched — excluded from scoring).
**The Scoring**
Only bands that price actually tested are included in the stats. Untouched bands are deliberately excluded because a level that was never reached tells you nothing about whether it would have held. The gold hit rate is therefore a pure measure — out of every time price came to this level, how often did it respect it?
---
**HOW TO READ THE TABLE**
The stats table sits top-right and updates on every bar. It shows:
**🟡 Gold (held/stalled)** — the number of historical bands where price tested the level and respected it. In Bear mode this means closed above; in Bull mode this means stalled without closing above.
**🔴 Broke through / 🟢 Broke through** — the number of times price tested the level and pushed straight through. These are the failures.
**Times tested** — gold plus broke. This is the denominator for all calculations. Untouched bands are not included here.
**○ Not yet reached** — shown for context only. These bands exist on the chart but have no vote in the ratio since price never arrived.
**🎯 Gold hit rate** — the headline number. This is gold divided by times tested, expressed as a percentage. A reading above 60% lights up gold. Below 60% it turns red. This is the number to watch.
**Gold : Broke ratio** — the same relationship expressed as a simplified ratio. A 3:1 ratio means for every three times the level held, it broke once.
**Reading** — a plain-language verdict based on the gold hit rate:
- 70% and above → Strong support / Strong resistance
- 50–69% → Moderate support / Moderate resistance
- 30–49% → Weak support / Weak resistance
- Below 30% → Unreliable
---
**HOW TO USE IT** FIND HISTORICAL % AND WHAT HAPPENED TO SEE THE IMPLICATIONS OF MOVES
**Dialing in your target** — start by choosing a percentage that is meaningful for the asset you are trading. Volatile assets like crypto may show more meaningful clusters around larger moves such as 15–20%. Blue chip equities or indices often show cleaner structure at 8–12%. The goal is to find the percentage where the gold hit rate is consistently above 60% across history — that tells you the market has a genuine memory of that level.
**Using the tolerance** — the band width setting controls how precise price needs to be to count as a test. A tighter tolerance like 0.2% gives you a sharper level but fewer touches. A wider tolerance like 1% captures more wicks and approaches but may dilute the quality signal. Start tight and widen only if you are seeing very few tests.
**Bear mode use case** — after a significant high has formed and the market is declining, the gold bands ahead of price show levels where the market has historically found buyers at this same percentage distance from a prior peak. A high gold hit rate at your chosen decline level is a data-backed reason to watch for a bounce or entry there rather than guessing.
**Bull mode use case** — after a significant low has formed and the market is rallying, the gold bands show levels where price has historically stalled at this percentage distance from a prior trough. A high gold hit rate is a reason to consider taking profits, tightening stops, or watching for reversal signals as price approaches.
**Pivot sensitivity** — the left and right bar inputs control how significant a pivot needs to be to qualify. Higher values require a more dominant high or low with more bars confirming on either side, producing fewer but more meaningful pivots. Lower values produce more pivots and more bands but may include minor swings that add noise.
**The live label** — the percentage shown at the current bar tells you exactly where price sits relative to the most recent pivot. When price enters a band the label turns gold as a real-time visual alert that price is at a historically significant level right now.
--- Indicator

Indicator

Indicator

Indicator

volatility new Volatility Filtering (The "VIX" Brain)
The code constantly monitors the India VIX (Volatility Index).
Dynamic Bands: Instead of fixed levels, the Buy/Sell bands expand or contract based on VIX. If the market is "nervous" (High VIX), the bands widen to protect you from "noise" and fake breakouts.
Safety Switch: It uses a VIX EMA 25 to determine if volatility is stable. If VIX spikes too high (sudden panic), it may block a "Buy" signal to keep you safe from a potential trap.
2. Trade Signals
BUY (Bullish): Triggered when the price breaks above the Upper Band while the VIX is relatively stable (no sudden spike).
SELL (Bearish): Triggered when the price breaks below the Lower Band while VIX is showing strength (above its average).
SIDEWAYS (Grey): When the price is trapped between the bands or the trend has ended, the background turns Grey, indicating a "No Trade" zone.
3. Trend Management & Exit
Trailing Stop: The Orange Line (EMA 25) acts as your exit trigger.
In a Buy trade, if the price closes below the Orange line, the trend is over.
In a Sell trade, if the price closes above the Orange line, the trend is over.
4. Real-Time Dashboard
The table in the top-right corner gives you a "Quick Look" at:
Trend: Shows BULLISH, BEARISH, or SIDEWAYS.
VIX Status: Tells you if the market is STABLE or in HIGH VOL mode.
Entry Price: Remembers exactly where the signal started so you can track your potential profit/loss.
In short: It is a smart trend-follower that "widens" its filters when the market gets crazy and "tightens" them when the market is calm. Indicator

Strategy

Indicator

Indicator

Indicator

Strategy

Indicator

Intraday Regime ClassifierIntraday Regime Classifier helps traders identify whether the current market is trending, rotating, or choppy so they can better match strategy to conditions. It is designed as a context and trade-filtering tool for intraday trading, not as a standalone entry system.
The goal is to improve decision-making by matching strategy to conditions. Trend-following setups tend to work better in directional environments, while fade, reversal, or LVN-based setups often work better in rotational or two-sided sessions. This indicator helps traders avoid forcing the wrong setup in the wrong regime.
It is not meant to predict exact highs or lows. It is a context tool. Think of it as a market filter that helps answer a simple question: what kind of day am I dealing with right now?
What the indicator does
The script evaluates intraday price behavior and classifies the market into a regime based on factors such as:
directional movement
trend strength
expansion vs compression
volatility conditions
whether price is behaving more like a breakout market or a rotational market
In practical terms, it helps with three things:
Strategy selection
It helps you decide whether to trade continuation, mean reversion, break-and-retest, or just stay patient.
Trade filtering
It can keep you out of low-quality conditions where your setup usually underperforms.
Expectations
It helps you frame the day correctly. On a trend day, you expect pullbacks to hold. On a rotational day, you expect breakouts to fail more often.
How to use it
The best way to use the indicator is as a market filter, not as a standalone entry signal.
A simple framework:
When the indicator shows a trend regime, favor breakout, pullback, and continuation setups.
When the indicator shows a mean reversion or rotational regime, favor fades, reversals, LVN reactions, and range trades.
When the indicator shows neutral or mixed conditions, reduce size, be more selective, or wait for cleaner structure.
This can be especially useful intraday because market behavior often shifts during the session. The open may trend, mid-session may chop, and the afternoon may expand again. The indicator is there to help you adapt rather than assume the same playbook works all day.
Trend
A trend regime means price is moving directionally with enough strength and consistency to favor continuation-style trades. In this environment, pullbacks are more likely to be pauses than full reversals.
Best suited for:
breakouts, pullbacks, trend continuation, break-and-retest setups
Mean reversion / rotational
A mean reversion regime means price is rotating, trading two-sided, or returning toward value rather than accepting higher or lower prices cleanly. Breakouts are more likely to fail and reversals tend to work better.
Best suited for:
fades, reversals, LVN reactions, support/resistance bounces, scalp-style rotation trades
Neutral / mixed / chop
A neutral regime means the market is not showing a strong directional edge or a clean rotational structure. These conditions often produce false starts and lower-quality setups.
Best suited for:
patience, reduced size, waiting for confirmation, or standing aside
Input settings explained:
Lookback length
This controls how much recent data the indicator uses to classify market conditions.
Lower values make the indicator more responsive, but also more sensitive and noisy.
Higher values make it smoother and more stable, but slower to react.
Use shorter settings if you want faster intraday shifts. Use longer settings if you want a steadier read on the session.
Trend threshold
This controls how strong price movement must be before the market is classified as trending.
Lower threshold = easier to label conditions as trend
Higher threshold = requires stronger directional evidence
If the indicator is flipping into trend mode too often, raise this setting. If it feels too slow to recognize real trend days, lower it slightly.
Mean reversion / chop threshold
This controls how easily the script classifies the market as balanced, rotational, or non-trending.
Lower values may classify more sessions as rotational
Higher values may reduce chop signals and keep the script more selective
This is useful if you want to better separate true trend from noisy two-sided trading.
Volatility filter
This adjusts how much the script accounts for current range or expansion conditions.
Higher volatility settings usually demand more movement before a regime shift
Lower settings usually make the script react faster during quieter sessions
This helps normalize the classifier across different types of days.
Smoothing
Smoothing reduces noise and prevents the classification from changing too quickly.
More smoothing = cleaner output, slower changes
Less smoothing = faster output, more flips
If you are using the indicator for higher-confidence context, more smoothing usually helps. If you want fast adaptation, reduce smoothing.
Session filter
If your script includes a session input, this limits calculations to a specific trading session, such as New York hours.
This is useful because intraday behavior often changes a lot outside the main session. Restricting calculations to the primary session can produce more relevant classifications.
Display options
These settings usually control things like:
background colors
labels
regime text
plots
alerts
These do not change the underlying logic. They only affect how the information is displayed on the chart.
Indicator

Indicator

Indicator

AI SuperTrend Strength Forecasting Engine [TraderZen]The question that matters most in real time: "How confident should I be in this setup right now?"
The ML Trend Strength Forecasting Engine was built to answer that question directly. Instead of drawing lines on a chart and leaving interpretation to the trader, it computes a numerical confidence score for every potential bull and bear setup as it forms. It evaluates the quality of the setup context, the strength of the trigger bar, the state of the broader market regime, and whether similar setups in the recent past actually worked. The output is a percentage — how likely is this signal to follow through.
The indicator does not generate buy or sell signals in the traditional sense. It provides a calibrated confidence reading that helps the trader decide whether to act, wait, or pass entirely.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Key Differences and Advantages
What KNN Predicts
Generally: "Will the trend direction be right?"
This Indicator: "Will this setup hold or expand?"
Training Labels
Generally: Past indicator directions (circular — predicting itself)
This Indicator: Actual price outcomes (self-validating — did the trade work?)
Signal Source
Generally: Single trend line or oscillator
This Indicator: 7-anchor cluster consensus (VWAP, VWMA, EMA, SMA, RMA, HMA, Donchian)
Features
Generally: RSI + MA deviation at multiple timeframes
This Indicator: Context + Trigger + Volume + ADX + Trend Distance — Kalman-filtered
Confidence Meaning
Generally: "How similar to past indicator wins"
This Indicator: "How likely to follow through based on setup quality + historical analogs"
Accountability
Generally: No rejection tracking, no performance feedback
This Indicator: Rejection markers on failed signals + live win rate dashboard
Adaptivity
Generally: Fixed normalization window, static thresholds
This Indicator: Adaptive ceilings, vol regime scaling, running stats, memory decay
How It Works
The engine runs five interconnected layers , each feeding into a final confidence score.
Layer 1 — The Anchor Cluster
Seven moving averages are computed simultaneously: VWAP, VWMA, EMA, SMA, RMA, HMA, and the Donchian midpoint. These are grouped into four families:
Institutional — VWAP and VWMA
Trend — EMA, SMA, RMA
Fast — HMA
Structural — Donchian midpoint
The high, low, and midpoint of this entire cluster define where the market's center of gravity sits. A bullish candidate is detected when price crosses above the cluster midpoint from below. A bearish candidate is detected when price crosses below from above. The crossing is the trigger event. Everything else evaluates the quality of that cross.
Layer 2 — Context Scoring
Before the cross happens, the engine has been watching:
How long price spent on the other side ( duration )
How far it traveled away from the cluster ( excursion )
How tightly the anchors are compressed ( compression )
How much slope agreement exists across anchor families ( coherence )
Where price sits relative to the cluster edges ( clearance )
These components combine into a context score that answers: "Was the setup that led to this cross a good one?"
Context scoring is weighted — side positioning and slope carry the most influence, followed by compression and clearance, with duration and excursion providing secondary confirmation.
Layer 3 — Trigger Scoring
The crossing bar itself is evaluated for quality. A strong trigger bar:
Has a solid body (not a doji)
Closes near the directional extreme (close near the high for bulls, near the low for bears)
Shows force momentum aligned in the right direction
Has meaningful distance from the cluster
Represents a genuine cross rather than a wick touch
Each dimension is scored and blended into a trigger score.
Layer 4 — Regime and Features
The broader environment is assessed through Kalman-filtered features : relative volume versus its baseline, relative ATR versus its baseline, ADX trend strength, and price distance from the trend moving average. These are smoothed to reduce noise while preserving directional shifts.
Volatility regime awareness scales key thresholds automatically. In low-volatility environments, the engine tightens its excursion and distance requirements. In high-volatility environments, it loosens them. This prevents the indicator from being too sensitive in calm markets and too restrictive in active ones.
Layer 5 — Adaptive Analog Memory (KNN)
This is the differentiator. Every time a candidate signal is generated, the engine stores its five feature values (context, trigger, volume, ADX, trend distance) along with what actually happened over the following evaluation window. Did price hold above the cluster? Did it expand meaningfully? The outcome is recorded as a success or failure.
When a new candidate appears, the engine searches its memory for the most similar historical setups using a k-nearest-neighbors algorithm. Key details:
Features are normalized to equal scales using running statistics
Older samples receive exponentially decaying weights so the memory adapts as market behavior shifts
The KNN prediction is blended with the base confidence score
The memory learns and improves as it accumulates data on the specific instrument and timeframe
The memory requires a warmup period. Until enough resolved candidates have been recorded, the engine relies solely on the base scoring.
Putting It Together
The final confidence score blends the base score (context, trigger, regime, trend alignment) with the KNN analog prediction. The result is displayed as a percentage for both the bull and bear side. When confidence exceeds the threshold and beats the opposite side by a directional edge, a signal label appears on the price chart.
If a signal later fails to hold or expand, a small rejection marker ("x") appears on the chart — providing direct visual accountability.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
How To Use It
Reading the Pane
The indicator occupies its own pane below the price chart. Five elements are displayed:
Ribbon (top bar) — shows current state by color:
Gray = idle, Yellow = watching bull, Purple = watching bear, Aqua = armed bull, Fuchsia = armed bear, Green = bull signal, Red = bear signal
Dominant confidence line (thicker) — tracks the higher of the two side scores. When it rises above the confidence threshold line, a signal is likely imminent.
Bull and bear confidence lines (thinner) — show each side independently. Watching these diverge helps anticipate which direction will win.
Bias line — oscillates around 50. Above 50 = bull dominant. Below 50 = bear dominant.
Reading the Chart Labels
Green label with % — bull signal fired with confidence above threshold
Red label with % — bear signal fired
Dimmed green "x" — a bull signal was rejected (failed to hold or expand)
Dimmed red "x" — a bear signal was rejected
Higher percentages indicate stronger setups. Every signal is eventually graded pass or fail.
Reading the Dashboard
The dashboard in the bottom-right corner shows:
Bull and bear signal counts and win rates
Memory status (warming up or active with sample counts)
Current volatility regime (low, normal, or high)
Session status and bar count
Context and trigger score breakdown
Family coherence percentage
Force momentum direction
The win rate is the most important dashboard metric. Above 60% = well-calibrated. Below 45% = thresholds may need adjustment.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Important Settings
Confidence Threshold (default: 65%)
The minimum confidence required for a signal label to appear. This is the primary sensitivity control . Lower = more signals with weaker setups. Higher = fewer, more selective signals.
Armed Threshold (default: 45%)
Minimum confidence for the ribbon to show an armed state (aqua/fuchsia). Acts as a pre-signal alert — when the ribbon transitions from watch to armed, a signal may be imminent.
Watch Threshold (default: 45%)
Minimum context score to enter watch mode (yellow/purple). Lower values start tracking setups earlier.
Directional Edge (default: 5.0)
Minimum gap between bull and bear confidence required for a signal. Prevents signals in ambiguous conditions where both sides score similarly.
Resolution Bars (default: 8)
How many bars after a signal the engine waits before grading it pass or fail. Shorter = more responsive grading. Longer = more forgiving.
Hold Outcome Ratio (default: 0.60)
Fraction of resolution bars price must stay on the correct side for a success grade. At 0.60 with 8 bars, price must hold for at least 5 of 8 bars.
Expansion Outcome Target (default: 1.00 ATR)
Minimum price expansion required for an alternative success grade. A signal can succeed by either holding position or expanding sufficiently .
Memory Decay Rate (default: 0.005)
How quickly older memory samples lose influence. Higher = more recency-biased. At default, recent samples carry roughly 2x the weight of samples from 140 bars ago.
History Size (default: 120)
Maximum resolved samples in analog memory. Larger = more context but more computation.
Session Settings
Configure to match the instrument's primary trading session. Default is 0930-1600 America/New_York (US equities and futures).
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
What This Indicator Is Not
It does not predict price direction. It evaluates setup quality and follow-through probability.
It does not replace risk management . A 75% confidence signal can and will fail. The rejection markers exist to make this visible.
It does not work equally on all instruments without adjustment. The adaptive mechanisms handle much of the calibration automatically, but the confidence threshold may need tuning. The dashboard win rate provides the feedback loop.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Disclaimer
This indicator is provided for educational and informational purposes only. It is not financial advice, and it does not constitute a recommendation to buy, sell, or hold any financial instrument.
All trading involves risk. Past performance of any signal, scoring system, or pattern recognition mechanism does not guarantee future results. The confidence percentages represent a statistical assessment based on the scoring model and historical analogs available within the loaded chart data. They are not predictions and should not be treated as certainties.
The adaptive analog memory learns from the chart data currently loaded in PulseWire. Its effectiveness depends on having sufficient resolved samples, and its learned patterns may not generalize to future market conditions, different instruments, or different timeframes.
The win rate displayed in the dashboard reflects performance on the loaded chart history only and is subject to survivorship bias, lookback bias, and data limitations inherent to backtesting on historical bars.
No indicator, algorithm, or model can account for all market variables including liquidity events, news-driven gaps, exchange outages, or sudden regime changes. Traders should always use independent risk management, position sizing, and their own judgment before entering any trade.
By using this indicator, you acknowledge that you are solely responsible for your own trading decisions and that the authors accept no liability for any losses incurred.
Indicator

Astro confluenceAstro Confluence is a time-only composite indicator that translates planetary cycles into a single actionable score from 0 to 100. It requires no price data — every value is computed purely from astronomical periodicities, which means the score can be projected deterministically into the future.
How it works
The indicator models 12 planetary forces as sinusoidal proxies of real orbital periods:
Lunar cycle (~29.5 days) — new moon / full moon risk-on/off rhythm, combined with the half-lunar quarter cycle.
Eclipse seasons (~173 days) — periods of elevated geopolitical and volatility risk.
Mercury retrograde & stations (~116 days) — choppy, reversal-prone windows where directional conviction drops.
Venus synodic (~584 days) + 8-year cycle — favorable or unfavorable conditions for accumulation and value.
Mars synodic (~780 days) — energy, momentum, and conflict-driven corrections.
Jupiter (~4,333 days) — expansion, speculation, growth phases.
Saturn (~10,759 days) — contraction, regulation, structural pressure.
Jupiter-Saturn synodic (~7,254 days) — the 20-year "Great Conjunction" cycle that governs secular bull/bear regimes.
Solar Inertial Motion (SIM) — a barycentric proxy combining Jupiter and Saturn. Turning points in SIM historically coincide with major trend regime changes.
Outer planet stacking — alignment of Jupiter through Pluto. When all five outer planets pull in the same direction, it creates a broad macro tailwind (or headwind).
Solar declination (~365.25 days) — annual seasonality baked into market structure.
Each force is multiplied by an asset-specific weight and summed into a raw composite, which is then normalized to a 0–100 scale and double-EMA smoothed.
Asset class profiles
Different markets respond to different planets. The indicator ships with seven tuned profiles:
Crypto — Uranus-dominant (technology, disruption). Jupiter amplified for speculation. Saturn strongly bearish (regulation).
Gold & Silver — Venus and Lunar dominant. Saturn is positive here — scarcity and store-of-value are gold's nature.
Oil & Gas — Mars dominant (energy, conflict). Neptune via Outer stack (liquids, hydrocarbons). High eclipse sensitivity.
Tech Stocks — Mercury dominant (data, networks). Uranus via SIM (innovation cycles). Mercury retrograde especially disruptive.
Equities (broad) — Balanced profile. Jupiter-Saturn 20-year cycle is the primary secular driver.
Forex — Mercury and Lunar dominant (trade, sentiment). Saturn heavily weighted (central bank policy).
Bonds — Saturn dominant and positive (stability, duration). Mars is inverted — conflict drives flight to safety.
Natal transit scoring
Each asset has a "birth date" — the genesis block, IPO, index inception, or futures launch. The indicator computes how current planetary positions relate to the positions at that birth moment. Harmonious aspects (conjunction, trine, sextile) boost the score; tense aspects (square, opposition) reduce it.
Pre-set birth dates are included for BTC, ETH, SOL, XRP, S&P 500, NASDAQ, AAPL, TSLA, Gold, Crude Oil, and EUR/USD. You can also enter a custom date for any asset.
The Transit influence slider (0.0–1.0) controls how strongly natal transits affect the final score. Set to 0 to disable.
Future projection
Because the model is purely time-based, future scores are fully deterministic. The Future projection toggle draws the score line up to 24 months ahead, using the same double-EMA smoothing seeded from the current bar. This lets you see upcoming bullish and bearish windows, Mercury retrograde dips, eclipse risk zones, and SIM turning points before they arrive.
Reading the indicator
The score line is color-coded:
Lime — strong bullish (score above 80)
Green — bullish / long zone (above 69)
Muted green — lean bullish (above 56)
Gray — neutral (44–56)
Muted red — lean bearish (below 44)
Red — bearish / short zone (below 31)
Orange — risk-off override (eclipse + Mercury retrograde overlap, or SIM turn + outer stack stress)
Fuchsia — rare compression window (multiple stress factors aligned — expect high volatility)
The background heatmap mirrors the score with a smooth gradient from red through transparent to green. Intensity increases as the score moves further from 50.
Three horizontal reference lines at 69, 50, and 31 mark the long zone, neutral, and short zone boundaries.
Legend table
The top-right table shows a real-time breakdown of six force groups (Lunar, Mercury, Venus, Mars, SIM, Outer) with signed values, visual bar meters, and heat-map cells.
This indicator is an experimental tool based on astronomical cycle theory. It does not use price, volume, or any market data — it is a pure time model. Planetary periods are approximated with fixed sinusoidal frequencies, not live ephemeris data. Use it as a supplementary timing layer alongside your primary technical and fundamental analysis, not as a standalone trading system. Indicator
