v2.9
Swadesh LABS · Pine Script v6 · April 2026

THE
MARKET
has
STRUCTURE
OR IT
DOESN'T.

Every other indicator assumes the market is worth trading before it runs. STRUCTURA CORE is the first to ask the question that should come before every trade.

284 spots left at $49 founding price
STRUCTURA CORE v2.9 — EUR/USD — H4
LIVE
v1.2 Verdict
🟢 DEPLOY
SII Score
0.817
H (Hurst)
0.690
Entropy %
54.1%
Yang-Zhang σ
0.00062
BNS Jump J
0.028
CUSUM
0.74
Invalidations
None
RES — Retracement Evidence Score
0.780
STRONG
7 peer-reviewed foundation metrics
Retracement Evidence Module v2.0
4 mandatory invalidation guards
8 configurable TradingView alerts
PINE SCRIPT V6 · TRADINGVIEW PLATFORM
SWADESH LABS CONSTITUTION V1.0 · MARCH 2026
CUSUM: ROLLING-REF (ACCEPTABLE APPROX)
EUR/USD H4 · DEPLOY · H=0.69 · SII=0.817
RES STRONG 0.78 · No Invalidations Active
GBP/USD Daily · DEPLOY · Hurst Trending · Jump Clear
CUSUM Guard CLEAR · Regime Stable · Structural Intact
XAU/USD H4 · RES MODERATE 0.62 · EDS=0.71
USD/JPY · DEPLOY · H=0.71 · BNS=0.031
STRUCTURA CORE v2.9 · 284 Founding Spots · $49 Lifetime
EUR/USD H4 · DEPLOY · H=0.69 · SII=0.817
RES STRONG 0.78 · No Invalidations Active
GBP/USD Daily · DEPLOY · Hurst Trending · Jump Clear
CUSUM Guard CLEAR · Regime Stable · Structural Intact
XAU/USD H4 · RES MODERATE 0.62 · EDS=0.71
USD/JPY · DEPLOY · H=0.71 · BNS=0.031
STRUCTURA CORE v2.9 · 284 Founding Spots · $49 Lifetime
01 — The prior question
"Every indicator assumes the market has structure. None of them check. So they generate signals in random walks and traders blame themselves for bad exits."
— The STRUCTURA CORE thesis
SIGNALS
/ NOISE
YOU CAN'T
TELL APART.

RSI. MACD. Bollinger Bands. They all share the same fatal flaw: they run whether the market is structured or random. They cannot distinguish a trending regime from a coin flip.

STRUCTURA CORE answers the question that should precede every single trade: does this market have statistically coherent structure right now?

Seven peer-reviewed academic methods. One composite verdict. Zero ambiguity.

PropertyStandard IndicatorsSTRUCTURA CORE
Mathematical basisNone / arbitraryPeer-reviewed
Checks structure firstNeverAlways — mandatory
Repaint on closeCommonZero — bar-close only
News/jump filteringNoneBNS + 4 invalidations
Regime change detectionNoneCUSUM + SII
In choppy marketsNoise generationReturns ASIDE — no trade
01
New to quantitative trading? Start here.
This section builds from zero. Concepts 01–06 cover the mathematical foundations in plain language. Each ends with a direct trading application. Read in order. Advanced Theory follows — tackle it after the foundations.
→
02 — Signal Theory · First Principles
THE
SIGNAL
THEORY
PRIMER.

"The market does not care what your indicator says. It only cares what it is. Before strategy comes diagnosis. Before entry comes proof."

This section deconstructs the mathematical machinery behind every metric. Start at Concept 01 if this is your first encounter with quantitative market analysis. Skip ahead if you know the theory. Either way, each concept ends with a direct connection to your trading decisions.

Concepts 01–03 are foundational. Concepts 04–06 are advanced. The regime table and retracement anatomy apply everything. New to quant finance? Start at 01. Work forward.

Concept 01 START HERE
MARKET STRUCTURE
What it actually means — mathematically

In plain English, "market structure" means the price has memory — what happened yesterday is statistically relevant to what happens tomorrow. Not guaranteed, but non-random.

The opposite of structure is a random walk: a series of coin flips where past flips tell you nothing about the next flip. A pure random walk has no edge. No indicator, no strategy, no skill can extract profit from it systematically.

Most markets oscillate between structured regimes (trending, mean-reverting) and random walk regimes (chopping, ranging with no bias). The problem: nearly every indicator — RSI, MACD, moving averages — generates signals in both states and cannot tell them apart.

Random Walk vs. Structured Market Random Walk: P(t) = P(t−1) + ε, where ε ~ i.i.d. noise
Structured: P(t) = P(t−1) + μ + ε, where μ ≠ 0 persists
H ≈ 0.50 → random · H > 0.55 → persistent trend · H < 0.45 → mean-reverting
Before you apply any technical analysis, the single most important question is: "Is this market currently structured or random?" STRUCTURA answers this question first.
Concept 02
THE HURST EXPONENT
Measuring long-range memory in price series

The Hurst Exponent (H) is a number between 0 and 1 that quantifies how much "memory" a time series has. It was developed by British hydrologist Harold Hurst in 1951 to model the Nile River's flood cycles. Applied to price, it reveals whether recent moves predict future direction.

H = 0.50 — Pure random walk. No edge exists. Indicators will generate noise.
H > 0.55 — Persistent trend. Recent up moves predict continuation. This is the trading edge environment.
H < 0.45 — Mean-reverting. Prices snap back. Use mean-reversion strategies only.

Detrended Fluctuation Analysis — Peng et al. (1994) exact Step 1 — Integrate  $Y(k) = \sum_{i=1}^{k}[r_i - \bar{r}]$
Step 2 — Partition  Divide $Y$ into $\lfloor N/n \rfloor$ non-overlapping boxes of length $n$
Step 3 — Detrend  Per box: local OLS trend, compute $F_b = \sqrt{\frac{1}{n}\sum (Y_k - \hat{Y}_k)^2}$
Step 4 — Average  $F(n) = \sqrt{\frac{1}{\lfloor N/n \rfloor}\sum_b F_b^2}$
Step 5 — Slope  $\log F(n) = H \cdot \log n + c$  →  OLS slope $= H$

DFA is used instead of simple R/S analysis because it removes local polynomial trends, making it robust to non-stationarities (the changing mean and variance that occur in real price data).

Think of H as the market's "commitment score." H=0.69 means if price has been going up, there's documented statistical evidence it prefers to continue. H=0.50 means every bar is a coin flip — stop trading.
Concept 03
SHANNON ENTROPY
Measuring disorder in price returns

Shannon Entropy, developed by Claude Shannon in 1948 for information theory, measures the unpredictability of a system. Applied to return distributions, it tells you how "spread out" and random the price returns are.

Low Entropy (<60%) — Returns cluster predictably. The market is "committed" to a narrow distribution. This is favorable for directional trading.
High Entropy (>85%) — Returns are maximally random and spread. The market is "uncommitted" — trading it is equivalent to gambling.

Shannon Entropy formula $H(X) = -\sum_i p_i \log_2 p_i$
$E\% = \frac{H(X)}{\log_2 B} \times 100$  where $B$ = number of bins
Bin width (Freedman-Diaconis): $w = 2 \cdot \text{IQR} \cdot N^{-1/3}$
(Minimises mean integrated squared error — optimal for real data)

The key insight: a trending market should have low entropy because most returns cluster in one direction. If entropy is high while Hurst claims trending, there's a contradiction — one of them is being temporarily fooled. STRUCTURA requires them to agree.

Imagine a coin flip machine: maximum entropy. Now imagine a roulette wheel weighted 75% toward red: lower entropy, real edge. Market entropy tells you how "fair" the coin is right now.
Concept 04
VOLATILITY
Why standard deviation is wrong — and what to use instead

Almost every indicator uses close-to-close standard deviation as its volatility measure. This is statistically inefficient — it throws away 75% of the information available in every bar (the Open, High, and Low).

Yang-Zhang (2000) is the theoretically optimal OHLC volatility estimator. It is simultaneously unbiased under drift (trending markets), overnight gaps (common in FX rollover), and opening jumps (news events at open).

Yang-Zhang Estimator $\sigma^2_{YZ} = \sigma^2_{\text{overnight}} + k\,\sigma^2_{\text{open}} + (1-k)\,\sigma^2_{RS}$
$k = \frac{0.34}{1.34 + \frac{N+1}{N-1}}$  — analytically optimal weighting constant
Result: $\sim 4\times$ lower estimation variance vs close-to-close $\sigma$

Why does this matter for trading? Because position sizing requires accurate volatility. If your volatility measure is noisy, your position sizes are wrong, your stops are wrong, and your expected value calculations are wrong.

If you size trades using ATR or standard deviation, you're using an inefficient volatility estimate. Yang-Zhang uses the same data you already have — just more intelligently — and gives you a 4× more accurate reading of market risk.
Concept 05
JUMP DETECTION
Separating continuous moves from news shocks

Price moves come in two fundamentally different types. Continuous diffusion: normal trending movement where prices evolve smoothly, driven by fundamental buying/selling pressure. Jumps: sudden discontinuous gaps caused by news events, earnings, central bank surprises, or liquidity shocks.

These two types of movement require completely different responses. A system built for diffusion generates catastrophic signals during jump periods.

BNS Test — Barndorff-Nielsen & Shephard (2004) $RV = \sum_t r_t^2$  (total realized variance)
$BV = \frac{\pi}{2}\sum_t |r_t|\,|r_{t-1}|$  (continuous component only)
$J = \max\!\left(0,\, \frac{RV - BV}{RV}\right)$  (jump fraction)
$J \approx 0$: pure diffusion — systematic edge valid
$J \to 1$: jump-dominated — all statistical models invalid

The mathematical insight: bipower variation is robust to jumps because a jump at time t contaminates r_t but not r_{t−1}·r_{t+1}. So BV measures continuous variance only, while RV measures total variance. Their difference is the jump component.

This is why trading through high-impact news events destroys systematic traders. It's not bad luck — it's the jump ratio spiking to 1.0, rendering every statistical model in your toolkit mathematically invalid.
Concept 06
STRUCTURAL BREAKS
When the rules of the market change entirely

Every statistical model — including Hurst, Entropy, and Yang-Zhang — requires parameter stability. This means the underlying market dynamics must stay roughly consistent during the calculation window. When the market undergoes a structural break, this assumption is violated and all outputs become unreliable.

Examples of structural breaks: the 2022 rate hike cycle beginning (equities changed regime), the March 2020 COVID crash (volatility regime), any central bank surprise that reprices entire yield curves within hours.

CUSUM Test — Brown, Durbin & Evans (1975) W_t = Σ recursive residuals from OLS regression on returns
Critical bands: ± 1.36 (5% significance level, 95% confidence)
|W_t| > 1.36 → Structural break detected at this bar
Action: All outputs override to zero. Stop trading entirely.

The CUSUM test detects instability in the regression coefficients over time. It accumulates evidence of parameter instability bar by bar. When it crosses 1.36, the evidence is statistically sufficient to declare the model has broken.

Most drawdowns in systematic trading occur because traders keep firing their model during regime changes. CUSUM is the safety valve. When it fires, the mathematically correct response is 100% position exit — not "reduce size" or "tighten stops."
RETRACEMENT
VS. REVERSAL

The single most expensive mistake in trend trading. Exiting a winning trade during a healthy pullback, because it "looked like it was reversing." Here is the mathematical difference — not opinion, not pattern recognition.

❌ Reversal — Mathematical Signatures
✕
H_L drops below 0.55 The structural trend memory is breaking. The long-range persistence that powered the trend is dissipating — not pausing. Once H_L fails, the HDI (R2) is immediately invalidated.
✕
Realized Variance spikes vs. Bipower EDS (R1) collapses toward 0. This happens because reversals are driven by panic/dislocation — abrupt volatility ruptures — not smooth energy deceleration. The BV/RV ratio breaks down.
✕
Entropy rises during counter-move A reversal makes the market more disordered, not less. The return distribution spreads out as conviction evaporates. SCS (R3) ECR goes negative — entropy expanding.
✕
SII falls below 0.55 (I2 fires) The composite structure index degrades sharply during the counter-move — not just pausing, but actively deteriorating.
✕
CUSUM approaches 1.36 (I4) Parameter instability accumulates — the statistical regime governing this instrument is changing, not just correcting.
✓ Retracement — Mathematical Signatures
✓
H_L remains above 0.55 The structural trend memory stays intact during the counter-move. Long-range persistence has not broken — price is just resting, not turning. HDI (R2) remains valid and active.
✓
BV / RV stays elevated (EDS near 1) Continuous variance dominates — the pullback is orderly, driven by systematic sellers taking profit, not panic. Energy is decelerating smoothly, not violently rupturing.
✓
Entropy compresses during pullback SCS (R3) ECR is positive — the return distribution tightens as price coils before the next leg. Structure is building, not unraveling. The market is "preparing," not "ending."
✓
SII holds above retracement floor The composite structure score pauses but doesn't collapse. Underlying coherence is preserved — the statistical framework that powered the trend is still valid.
✓
CUSUM stays within bounds No regime change is occurring. The model parameters are stable — the same trading environment that produced the trend is still intact for the continuation.
FOUR MARKET
REGIMES

Every market is always in one of these four regimes. Your entire strategy selection, position sizing, and risk management should be conditioned on which regime you're in right now. STRUCTURA identifies these in real time via SII and Hurst.

Regime Hurst Range SII Range Entropy What the Market Is Doing STRUCTURA Verdict Correct Action
Strong Trend
H > 0.62
SII > 0.70
Low <55% Persistent directional memory. Price has decided a direction and keeps it. Fundamental buyers/sellers dominate over noise traders. 🟢 DEPLOY Full-size trend-following. Trade retracements via REM. Maximum edge environment.
Weak Trend
H 0.55–0.62
SII 0.40–0.70
Moderate 55–70% Directional bias present but fragile. The trend exists statistically but lacks conviction. Vulnerable to CUSUM breaks. 🟡 CAUTION Half-size only. Require RES STRONG before acting. Tight invalidation management.
Mean-Reverting
H < 0.45
SII varies
Moderate Price reliably overshoots and snaps back. Moving averages act as magnets. Range boundaries hold. Completely different mechanics than trending. 🟡 CAUTION Trend-following strategies fail here. Mean-reversion setups (buy overshoots below mean, sell overshoots above). STRUCTURA is less relevant.
Random Walk
H ≈ 0.50
SII < 0.40
High >80% No statistical memory. Maximum disorder. Every bar is a coin flip. No systematic strategy has positive expected value. 🔴 ASIDE Do not trade. No exceptions. Waiting is the position. Most days the market spends time here — recognizing it early is the most valuable skill in trading.
Macro Doctrine · Structural Core Integration
MACRO
INTEL
LIGENCE

STRUCTURA tells you when market structure is favorable to trade. Macro tells you which direction has institutional tailwinds behind it. Used together, you have both the statistical permission and the fundamental justification — a combination most traders never achieve.

Why macro matters for STRUCTURA users
  • STRUCTURA identifies when to trade (structure present). Macro identifies what direction has high-conviction fundamental backing. The combination eliminates the most common error: trading statistically valid setups against the macro tide.
  • Central bank rate differentials are the dominant driver of FX trends over weeks to months. STRUCTURA's Hurst will detect the trend — but knowing its macro root gives you conviction to hold through retracements others exit.
  • Macro regime changes (Goldilocks → Inflation → Stagflation → Recession) directly precede CUSUM structural breaks. Monitoring macro lets you anticipate CUSUM before it fires — you reduce exposure before the break, not after.
  • Institutional positioning (COT data) and macro narrative alignment create asymmetric risk-reward: trades with STRUCTURA + macro alignment have historically shown 40–60% better reward/risk than structure alone.
Macro Module 01
THE FOUR
CENTRAL BANKS
Eight central banks move FX markets. These four account for over 80% of global FX volume. Each creates specific, learnable patterns.
FED
Federal Reserve · United States
Policy Rate Range
5.25–5.50%
Restrictive Hold
The world's most influential central bank. Every FX pair has a USD leg. The Fed sets the global cost of money — when rates are high and holding, every other currency's rate differential is measured against USD yield. Currently restrictive, markets pricing 2–3 cuts.
Fed raises rates → USD yields rise → capital flows to USD → USD appreciates
Fed cuts rates → USD yields fall → carry trades unwind → USD weakens
Fed holds while others cut → rate differential widens → USD stays bid
Key data: NFP, CPI, PCE, GDP — these move USD within 10 minutes of release
ECB
European Central Bank · Eurozone
Deposit Facility Rate
3.50%
Cutting Cycle
Controls EUR, the world's largest FX market component. Cutting as Eurozone growth disappoints while the Fed holds — this rate differential is the primary driver of EUR/USD weakness. ECB is structurally constrained by 19 different economies with different inflation profiles.
ECB cuts faster than Fed → EUR/USD rate differential widens → EUR weakens
Eurozone CPI surprises high → ECB pauses → EUR rallies sharply
German GDP data is the ECB's leading indicator — watch it first
ECB press conferences: Lagarde's tone determines EUR direction for days
BoJ
Bank of Japan · Japan
Policy Rate
0.25%
Normalizing — Latent Risk
The most dangerous tail-risk in global markets. 15+ years of ultra-loose policy created the largest carry trade in history — borrow JPY at 0%, invest in higher-yielding assets globally. Any BoJ surprise hike triggers a carry unwind cascade. August 2024 was a warning. Current carry positions are larger.
BoJ keeps rates at 0% → JPY weakens → USD/JPY rises → carry trades fund
BoJ surprise hike → JPY surges → USD/JPY falls 1,000–2,000 pips rapidly
Carry unwind: all risk assets sold simultaneously → VIX spikes → equities fall
Watch: Tokyo CPI and BoJ Board member speeches for early warning signals
BoE
Bank of England · United Kingdom
Bank Rate
5.00%
Cautious Easing
Caught between sticky UK services inflation and slowing growth — a classic stagflationary bind. GBP/USD is highly sensitive to UK wage growth data and BoE meeting minutes. Post-Brexit, UK assets have a structural uncertainty premium. Cutting slower than market expectations supports GBP.
UK wages rise above 5% → BoE pauses cuts → GBP rallies vs EUR
UK GDP prints negative two quarters → BoE accelerates cuts → GBP falls
BoE Monetary Policy Committee vote split: hawks vs doves = GBP volatility
Key releases: UK CPI, Average Earnings, Monthly GDP → primary GBP movers
Macro Module 02
FOUR MACRO
REGIMES

Growth and inflation together define which macro regime the global economy is in. Each regime produces distinct asset class behaviors — relationships that repeat reliably across cycles. Regime classification is the highest-leverage macro skill.

Goldilocks
Growth ↑ · Inflation ↓ or Stable

The ideal environment. Growth expanding, inflation contained. Central banks are either neutral or cutting — financial conditions loosening. Risk assets rally strongly and broadly.

Correlations: Equities +, High-yield bonds +, EM assets +, USD neutral-weak, Gold neutral, Oil +. Hurst exponent on equity indices tends to run 0.60–0.70 — strong persistent trends.

Identification: PMI composites above 52, CPI trending toward target, yield curve steepening as growth expectations rise.

Favored Trades
Long risk currencies (AUD, NZD, CAD)
Long equities / short VIX
Short USD vs risk currencies
Long commodities (demand-driven)
Inflationary Boom
Growth ↑ · Inflation ↑↑

Growth strong but inflation rising fast. Central banks forced to hike aggressively despite strong economy. 2021–2022 is the textbook example. Confusing regime — looks fine on the surface but rate hike cycles eventually kill it.

Correlations: Oil +++ (demand pull), Gold + initially, Bonds –, Equities mixed/late-cycle struggling, USD + (rate hikes). Volatility picks up. CUSUM breaks become more frequent.

Identification: CPI above 4% and rising, PMI still expansionary, central banks moving from neutral to hawkish rapidly.

Favored Trades
Long commodities (energy, metals)
Long USD early in hiking cycle
Short long-duration bonds
Long inflation-linked assets (TIPS, gold)
Stagflation
Growth ↓ · Inflation ↑ (Worst regime)

The worst regime for financial assets. Growth slowing but inflation not cooperating. Central banks face an impossible trade-off: hike to fight inflation (crushes growth further) or cut to support growth (risks entrenching inflation). 1970s, 2022 partial, current risk.

Correlations: Nearly everything falls. Gold outperforms (safe haven + inflation hedge). Commodities mixed. Cash and short-duration bonds are the refuge. Equity Hurst collapses — ASIDE verdicts dominate.

Identification: CPI above 3% and sticky, PMI composite below 50, central bank language signals "pain is necessary."

Favored Trades
Long Gold (stagflation hedge)
Long safe-haven currencies (CHF, JPY*)
Short risk currencies (AUD, NZD)
Reduce all exposure — ASIDE regime
Recession / Deflation
Growth ↓↓ · Inflation ↓ or Falling

Growth contracting, inflation falling or below target. Central banks cutting aggressively — this is the "monetary policy stimulus" phase. Risk assets can rally violently off the lows as rate cut expectations dominate (equity rallies in recessions once rate cuts begin).

Correlations: USD weakens aggressively (cuts + capital flows out), Gold +++ (cuts compress real yields), Equities bottom then rally, Bonds ++ (price rises as yields fall). Best phase for STRUCTURA — clear trends in FX and Gold.

Identification: Two negative GDP quarters, unemployment rising above 4.5%, central bank emergency cuts, credit spreads widening significantly.

Favored Trades
Long Gold (peak outperformance)
Short USD (rate cut compression)
Long bonds (yield compression trade)
Long JPY (carry unwind + safe haven)
Macro Module 03
KEY ECONOMIC
DRIVERS

Before every trade, identify the #1 fundamental driver of the instrument you're trading. A trade that fights the primary driver requires 2× the statistical conviction. Understanding these mechanisms transforms STRUCTURA signals from mechanical to meaningful.

Driver 01
Interest Rate Differentials
The dominant driver of FX trends over weeks to months
Country A Rate ↑
→
Yield advantage grows
→
Capital flows to A
→
Currency A appreciates
The interest rate differential between two countries is the single most powerful determinant of FX trends over 1-month to 12-month time horizons. Capital always flows toward higher-yielding safe assets — this is the mechanical foundation of the carry trade. Monitoring 2-year government bond spreads gives you the market's forward-looking rate differential. When EUR/USD falls, check whether the US-Germany 2Y spread is widening — it almost always is.
Driver 02
Real Yields vs Gold
Gold's primary mathematical driver — not inflation, real rates
Nominal rates ↑
→
Real yield = Nominal − CPI
→
Real yield ↑ = Gold ↓
→
Real yield ↓ = Gold ↑
Gold pays no yield. Its opportunity cost is the real yield on US Treasuries (TIPS yield). When real yields rise, holding gold becomes relatively more expensive — capital rotates into Treasuries. When real yields fall (Fed cuts or inflation rises faster than rates), gold becomes attractive relative to bonds. Track the 10-year TIPS yield (ticker: DFII10) — it's gold's primary short-to-medium-term driver. Note: since 2022, central bank buying has added a structural demand floor that partially breaks this historical correlation.
Driver 03
Risk-On / Risk-Off (RORO)
The global sentiment regime governing cross-asset correlations
Risk-ON
→
Equities ↑ · AUD/JPY ↑
→
USD neutral · VIX ↓
Risk-On: investors willing to hold risk assets. Equities rally, high-yield bonds rally, AUD/NZD/CAD appreciate, JPY/CHF weaken (sold as funding currencies for carry trades), VIX falls. Risk-Off: the reverse — equity selling, JPY/CHF surge (carry unwind + safe haven), VIX spikes. AUD/JPY is the cleanest real-time RORO thermometer. When it rises, risk is on globally. When it falls sharply, risk is off. Cross-reference with VIX level before taking any position.
Driver 04
Carry Trade Dynamics
The hidden leverage bomb in global FX markets
Borrow low-yield JPY
→
Buy high-yield assets
→
Profit = rate differential
→
Unwind = crash
The carry trade is borrowing in a low-yield currency (JPY, CHF) and investing in a higher-yield currency or asset. It generates steady returns as long as exchange rates stay stable — but it creates systemic fragility. When volatility spikes (any source), carry traders must unwind simultaneously, causing correlated selling across all risk assets. August 2024: BoJ hiked 15bp → JPY surged → $4T+ in carry trades unwound in days → global equities fell 10–15% in 72 hours. Current carry exposure is larger than pre-August 2024.
Macro Module 04 · Integration
MACRO + STRUCTURA
DECISION MATRIX

How to combine STRUCTURA CORE's statistical output with macro context for highest-conviction, professionally graded trading decisions. Both dimensions must align for a Grade A trade.

Macro Condition STRUCTURA Verdict RES Level Grade Action & Rationale
Aligned macro tailwind
(rate diff favorable · regime supports direction)
🟢 DEPLOY STRONG ≥0.75 A+ Full conviction entry. Fundamental and statistical forces aligned. Institutions and systematic models likely positioned in same direction. Widest stop, largest allowed position size.
Aligned macro tailwind 🟢 DEPLOY MODERATE ≥0.55 A High-quality trade. 80% of normal size. Wait for price confirmation at structure level before entry. Both fundamentals and statistics confirm — slightly less statistical confidence but macro provides the buffer.
Neutral macro
(no strong rate differential catalyst)
🟢 DEPLOY STRONG ≥0.75 B+ Trade the structure. 70% of normal size. The statistical setup is excellent but lacks fundamental confirmation. Moves are more likely to be technical/positioning-driven — sharper, shorter. Take profit earlier.
Macro headwind
(rate diff opposes direction · regime unfavorable)
🟢 DEPLOY STRONG ≥0.75 C Reduce size significantly. 30–40% of normal size. Statistics permit the trade, fundamentals oppose it. These trades have lower win rates — they work but require structural levels to be extremely precise. Consider skipping entirely.
Any macro condition 🟡 CAUTION Any C/D Observe only or minimal position. CAUTION means the statistical foundation is weak. Even strong macro alignment cannot compensate for structural fragility. Maximum 25% size if entering — this is not a trading environment.
Any macro condition 🔴 ASIDE Override Zero F Do not trade. No macro analysis, no fundamental conviction, no news catalyst justifies overriding ASIDE. The market is mathematically unstructured. Trading ASIDE with "strong macro conviction" is the precise error that causes the worst drawdowns.
Macro regime change beginning
(CB pivot signal · regime transition)
🟢 DEPLOY STRONG ≥0.75 A+★ Generational trade setup. The intersection of a macro regime transition AND peak statistical structure is rare — maybe 3–5 times per year per instrument. These are the highest-reward setups in all of systematic trading. Maximum conviction, widest stops, hold through noise.
The Professional Principle — Epistemic Humility The macro framework above is a model of reality, not reality itself. Correlations that held for 15 years can structurally shift. The gold-real yields relationship fractured in 2022 when central bank buying became the dominant driver. The Fed-USD relationship inverted during early 2020. Master these frameworks as foundation, then remain agnostic to their continued validity. When price persistently disagrees with your macro thesis, the correct response is smaller size and updated priors — not increased conviction. Price is the supreme authority. STRUCTURA's job is to identify when price has structure. Macro's job is to give you directional context. Neither overrides the other — they require each other.
03 — Advanced Signal Theory
DEEP
THEORY
LAYER.

"Every number STRUCTURA outputs has a mathematical proof behind it. This section is for those who want to see the proof — not just use the tool."

Six advanced concepts covering the probabilistic, information-theoretic, and econometric underpinnings of the system. Requires familiarity with Concepts 01–06. Equations are rendered explicitly — learn to read them and you learn to trust the outputs at a deeper level.

H
Advanced Concept 01
SELF-SIMILARITY
Fractal scaling laws and why H ≠ autocorrelation

The Hurst exponent is often loosely described as "measuring autocorrelation." This is imprecise and misleading. H specifically measures long-range dependence — the decay rate of correlations across time scales, not just adjacent bars.

A series with strong autocorrelation at lag 1 but no persistence beyond that has H ≈ 0.5. A series with weak individual autocorrelation but a hyperbolic decay pattern can have H = 0.72. These are fundamentally different market structures.

Long-Range Dependence — Correlation Decay
C(k) ~ k2H-2  as k → ∞
where k = lag, H = Hurst exponent

If H = 0.5: C(k) ~ k⁻¹ → summable → short memory (random walk)
If H > 0.5: C(k) ~ k^(2H-2) with exponent > -1 → non-summable → long memory
H > 0.5Correlations decay so slowly they never fully disappear — the series "remembers" its past across all time scales. This is what makes trend-following statistically valid. H = 0.5Correlations decay fast enough to sum to a finite constant — the series has no persistent memory. No systematic strategy can extract edge.

DFA captures this because the fluctuation function F(n) ~ n^H inherently measures how variance accumulates across scales. A random walk has variance growing as n^0.5 (diffusion). A persistent process has variance growing faster — n^H with H > 0.5.

Trading consequence

When H = 0.69 on H4 EUR/USD, you're observing that correlations decay at the rate k^(2×0.69-2) = k^(-0.62) — slower than k^(-1). This is mathematically non-summable. The trend is not a local artifact; it is a fractal property of the process across scales.

S
Advanced Concept 02
INFORMATION GEOMETRY
What entropy tells you about the return distribution's shape

Shannon Entropy quantifies distributional uncertainty — how many bits are required to encode a draw from the distribution. Maximum entropy occurs when all outcomes are equally likely (uniform distribution). This is the market's least informative state.

But entropy alone misses something: it treats all distributions with the same entropy identically. The Kullback-Leibler divergence tells you how much information would be gained by knowing the true distribution versus assuming maximum entropy.

Shannon Entropy — Full Form
H(X) = −∑i p(xi) · log2p(xi)

KL Divergence — Information Gain vs Noise DKL(P ‖ Q) = ∑i p(xi) · log (p(xi)q(xi))
P = observed return distribution · Q = uniform (max-entropy baseline)
D_KL → 0Observed returns are indistinguishable from noise. No structure to exploit. Entropy % → 100. D_KL largeObserved distribution departs significantly from noise. Structure present. Entropy % → 0.

STRUCTURA normalizes H to H_max = log₂(B) where B is the number of bins. This makes E% comparable across different lookback windows and bin counts — a critical property for a robust indicator.

Trading consequence

E% = 54% means the return distribution has ~46% of its theoretical maximum structure. The Freedman-Diaconis bin width w = 2·IQR·N^(-1/3) is used because it minimizes mean integrated squared error for the histogram — the optimal estimator given the data.

J
Advanced Concept 03
JUMP-DIFFUSION DECOMPOSITION
The Itô–Lévy decomposition of price processes

In continuous-time finance, price processes are modeled as semimartingales — the class of processes for which stochastic integration is well-defined. A semimartingale decomposes uniquely into a continuous local martingale and a jump process.

Itô–Lévy Decomposition of Log-Price
log P(t) = log P(0) + μt + ∫₀ᵗ σ(s) dW(s) + ∑0<s≤t Δlog P(s)

μt = drift · σ(s)dW(s) = continuous diffusion · Σ ΔlogP = jump sum

Realized Variance vs Bipower Variation RV(t) = ∑ r²j → ∫σ²ds + ∑ΔlogP² (all variance)
BV(t) = π2 ∑|rj||rj-1| → ∫σ²ds (continuous only)
π/2The exact scaling constant from E[|Z|]² = π/2 for Z ~ N(0,1). This is why bipower variation is unbiased for the continuous component under Brownian motion. J = (RV−BV)/RVThe jump ratio isolates the jump variance as a fraction of total variance. As N→∞, this is a consistent estimator of the jump contribution.

The key insight of Barndorff-Nielsen & Shephard: a jump at time j contaminates r_j but the product r_j · r_{j-1} is zero in expectation even when r_j is a jump, provided jumps are rare relative to sampling frequency. This is the mathematical reason bipower "sees through" jumps.

Trading consequence

When J spikes toward 1, the continuous component σ²(s) is negligible relative to jumps. Every model that assumes Brownian motion — including all of STRUCTURA's DFA and entropy calculations — is operating on data that violates its assumptions. Invalidation I3 is not a rule of thumb. It is mathematical necessity.

∫
Advanced Concept 04
LONG MEMORY PROCESSES
ARFIMA, fractional integration, and the spectral density singularity

Standard ARMA models assume short memory — autocorrelations decay exponentially fast. Real financial returns often exhibit hyperbolic decay, a much slower pattern. The ARFIMA(p, d, q) model handles this by allowing fractional integration order d.

ARFIMA — Fractionally Integrated Process
Φ(L) (1−L)d Xt = Θ(L) εt
L = lag operator · d = fractional integration order · ε ~ i.i.d. noise

Relationship: Hurst ↔ Fractional Differencing d = H − 0.5  (for stationary long-memory, 0 < d < 0.5)

Spectral Density — Singularity at Zero Frequency f(ω) ~ c · |ω|−2d as ω → 0
Long memory = infinite spectral density at frequency zero
H = 0.69Implies d = 0.19. The process requires fractional differencing of order 0.19 to become a standard ARMA. It is integrated beyond I(0) but below I(1). d → 0.5Approaches unit root (random walk with drift). H → 1. The process has infinite memory — shocks never decay.

This framework explains why Hurst > 0.5 means "trending" at every scale simultaneously — not just that yesterday predicts today. The fractional integration means shocks at any lag still influence the present, with a weight decaying at the hyperbolic rate k^(d-1).

Trading consequence

Hurst = 0.69 → d = 0.19. The trend is not just a moving average artifact. It is evidence of fractional integration — a structural property of the process that persists across time scales and cannot be explained away by any finite-order ARMA model.

C
Advanced Concept 05
RECURSIVE RESIDUALS & CUSUM
Brown-Evans-Durbin test theory and parameter instability detection

The CUSUM test operates on recursive residuals — the forecast error from a model estimated on all data up to time t-1, applied to observation t. Under the null of parameter stability, recursive residuals are i.i.d. N(0, σ²). Any structural break causes them to depart from this distribution.

Recursive Residual — One-Step-Ahead Forecast Error
wt = yt − x't β̂t-1(1 + x't (X't-1Xt-1)⁻¹ xt)^½
β̂ estimated on observations 1..t-1 · denominator = forecast uncertainty

CUSUM Statistic Wr = 1σ̂ ∑t=k+1r wt

5% Critical Bands — Brown-Evans-Durbin (1975) ±[1.36√(n−k) + 2×1.36×r−k√(n−k)]
Rejection when |W_r| exits these bands → structural break at 5% significance
1.36The Brownian bridge critical value at 5% significance, from the asymptotic distribution of the CUSUM process under H₀ (no break). W_r → ∞Cumulative residuals drifting in one direction — evidence that the model's parameters have shifted, not that noise is high.

STRUCTURA uses a rolling-reference approximation — technically not the recursive residual formulation. This means false positive rate may differ slightly from the theoretical 5%. However, the approximation retains the key property: sustained directional drift in the statistic → structural evidence of a regime shift.

Trading consequence

When CUSUM fires, it is not saying "volatility is high." It is saying "the statistical relationship between consecutive returns has changed." The appropriate response is complete model suspension — not parameter adjustment. You cannot simply widen the Hurst threshold and continue.

Σ
Advanced Concept 06
KELLY SIZING IN STRUCTURED REGIMES
Optimal position sizing when the market has memory

Classical Kelly Criterion assumes i.i.d. returns — no autocorrelation, no memory. When the market has long-range dependence (H > 0.5), the i.i.d. assumption is violated. The effective Kelly fraction must be adjusted for the degree of serial correlation.

Standard Kelly Criterion (i.i.d. case)
f* = μσ² = Sharpe² / σ   (log-utility optimal)

Adjusted Kelly for Long-Memory Process (H > 0.5) f*H = μσ²eff where σ²eff = σ² · (2H−1)⁻¹ · n2H−2

Practical Heuristic — Regime-Adjusted Fraction ftrade = f* × RES × (2H−1) × SII
2H − 1The excess Hurst factor. At H=0.5, this is zero — random walk, no edge, Kelly says bet nothing. At H=0.69, this is 0.38 — meaningful edge. × RESScales down in proportion to retracement evidence score. During a strong trend with no pullback confirmation, RES is low — reduce size accordingly. × SIIThe structural integrity multiplier. If the market structure is 70% intact, full Kelly is inappropriate — you're working with partial evidence.

This is a heuristic, not a rigorous theorem. But it captures the intuition: position size should scale with statistical evidence quality, not just with volatility. A market with H=0.69, SII=0.82, and RES STRONG justifies a fundamentally larger fraction than a market with H=0.56, SII=0.43, and RES NONE — even if both have the same volatility.

Trading consequence

Never use raw Kelly fractions in live trading — use ½ Kelly or ¼ Kelly for parameter uncertainty. The formula above gives the direction of sizing adjustment given market memory. STRONG RES + H=0.69 + SII=0.82: increase relative to baseline. CAUTION + H=0.53 + SII=0.44: reduce to minimum or skip.

Synthesis
THE PROBABILITY STACK
How all six metrics combine into a single conditional probability framework

Each STRUCTURA metric answers a different conditional probability question. When all are combined, you are computing an approximate joint probability that several independent statistical conditions are simultaneously met.

P(edge) = P(H>0.55) · P(E<60%) · P(J<0.05) · P(VR≠1) · P(CUSUM clear) · P(SII>0.70)

These probabilities are not independent in the mathematical sense — H and VR are both measuring persistence-related properties. But their sampling errors are largely independent, because they use different statistics (scaling vs. variance vs. spectral vs. cumulative). This is why the multi-metric approach dramatically outperforms any single metric on false positive rate.

The REM layer adds conditional probability atop this. Given that the baseline structure is confirmed (SII DEPLOY), RES estimates P(this pullback is a retracement | structural environment). This is Bayesian updating — the prior is the SII verdict; the likelihood is supplied by EDS, HDI, and SCS jointly.

Conditional probability stack
ConditionMetricIf clearIf failed
Long-range memoryH > 0.55+edge basisNo basis → ASIDE
Return distribution structureE% < 60%Non-randomAmbiguous
Jump contaminationJ < 0.05Models validAll models invalid
Serial correlationVR ≠ 1.0PredictabilityWeak signal
Parameter stabilityCUSUM clearRegime stableRegime break → stop
Composite integritySII > 0.70DEPLOYCAUTION / ASIDE
Retracement evidenceRES STRONGEntry validWait / skip
The compound effect

If each individual false-positive rate is 15% (a realistic conservative estimate), the compound false-positive rate of all seven simultaneously being green is 0.15⁷ ≈ 0.000017 — one false alarm in every 58,000 bars. In practice the metrics are correlated, so the true rate is higher. But the principle stands: requiring consensus from multiple independent statistical tests is the most powerful filter available without predictive modeling.

05 — Pipeline
THE
SIGNAL
PIPELINE
Four layers. Raw price data enters. One unambiguous verdict exits. Here is what happens in between.
Layer 01 — Raw
Market Data
OHLC PriceLog ReturnsAbsolute ReturnsBipower Variation
Layer 02 — v1.2
Foundation · 7 Metrics
H — Hurst DFAE — Shannon Entropyσ — Yang-Zhang VolJ — BNS Jump RatioV — Variance RatioC — CUSUM BreakSII — Structure Index
Layer 03 — v2.0
REM · 3 Sub-Components
R1 EDS × 0.35R2 HDI × 0.40R3 SCS × 0.25RES Score [0,1]4 Invalidation Guards
Layer 04 — Output
Verdict + Evidence
🟢 DEPLOY🟡 CAUTION🔴 ASIDERES STRONG / MODDashboard Table
06 — Foundation
SEVEN
METRICS.
All peer-reviewed.
Click any metric to expand
M1 — Core
HURST
Detrended Fluctuation Analysis
F(n) ~ n^H via log-log regression
H > 0.55 → Trend memory (persistent)
H < 0.45 → Mean-reversion
H ≈ 0.50 → Random walk — no edge
Hurst encodes the market's long-range memory — how strongly recent price moves predict future direction. DFA removes local polynomial trends before computing the fluctuation function, making it robust to the non-stationarities that break naive Hurst estimators. A single number that tells you whether the market remembers where it's been.
Your edgeH = 0.69 on H4 means the directional bias has documented statistical backing. You're not reading candles — you're reading market physics.
M2 — Disorder
ENTROPY
Shannon Entropy · Freedman-Diaconis bins
H = −Σ p(i) · log₂(p(i))
Bin width = 2·IQR·n^(−1/3)
E% < 60% → Structured
E% > 85% → Chaotic — no edge
Shannon Entropy measures distributional disorder in returns. Most implementations use arbitrary fixed bins — STRUCTURA uses Freedman-Diaconis adaptive binning, which is statistically optimal given the actual data distribution. Low entropy means the market is "committed" — returns cluster predictably. High entropy means randomness.
Your edgeLow entropy + high Hurst = the market is trending AND the return distribution is non-random. The ideal environment. Most profitable breakouts occur in this condition.
M3 — Volatility
YANG-ZHANG
OHLC Efficient Estimator (2000)
σ²_YZ = σ²_overnight + k·σ²_open + (1−k)·σ²_RS
k = 0.34 / (1.34 + (N+1)/(N−1))
4× more efficient than close-to-close
Unbiased under drift and gaps
Yang-Zhang (2000) is the theoretically optimal OHLC volatility estimator — simultaneously unbiased under drift, overnight gaps, and opening jumps. Using all four price points with an analytically derived weighting constant k, it achieves approximately 4× lower estimation variance than the simple close-to-close standard deviation used in most indicators.
Your edgeFeeds directly into EDS (R1). The ratio of Yang-Zhang continuous to realized variation reveals whether a move is exhausting gracefully or collapsing violently — the mathematical fingerprint of retracement vs reversal.
M4 — Jumps
BNS
Barndorff-Nielsen & Shephard (2004)
BV = (π/2)·(1/N)·Σ|r_t||r_{t−1}|
J = max(0, RV − BV) / RV
J → 0 = pure diffusion (systematic edge)
J → 1 = jump-dominated (no edge exists)
BNS formally decomposes total price variation into a continuous diffusive component (predictable, hedgeable) and a discontinuous jump component (news-driven, unhedgeable). Markets dominated by jumps have no systematic edge regardless of any technical signal — the distribution of returns becomes unpredictable on any horizon.
Your edgeWhen J spikes before NFP, FOMC, or CPI, Invalidation I3 fires and REM output zeros. You are automatically kept out of news-driven chaos that looks tradeable but isn't.
M5 — Predictability
VAR. RATIO
Lo & MacKinlay (1988) · Rev. of Fin. Studies
VR(q) = Var[r(t,q)] / (q · Var[r(t,1)])
VR = 1.0 → Pure random walk (coin flip)
VR > 1.0 → Positive serial correlation
VR < 1.0 → Mean-reversion present
Published in the Review of Financial Studies, the Lo-MacKinlay VR test is the canonical academic test for departures from the random walk hypothesis. Unlike Hurst, it operates on variance statistics and has explicit asymptotic test theory. Any VR deviation from 1.0 represents statistically significant evidence of predictable price structure.
Your edgeVR > 1.2 AND H > 0.60 = two independent academic methodologies confirming momentum. Double confirmation from orthogonal methods is far more reliable than either alone.
M6 — Regime
CUSUM
Brown, Durbin & Evans (1975)
CUSUM W_t computed from recursive residuals
Critical value: 1.36 (5% significance level)
|W_t| > 1.36 → Structural break detected
→ All REM outputs override to ZERO
The Brown-Durbin-Evans CUSUM test detects instability in regression parameters over time — in trading terms, it catches moments when the market's statistical regime is fundamentally changing. Every statistical model — including all 6 other metrics — assumes parameter stability. Under an active CUSUM break, this assumption is violated. All outputs become mathematically unreliable.
Your edgeWhen CUSUM fires, the correct action is to stop trading entirely — not reduce size. Not raise stops. Stop. CUSUM breaks have preceded the largest drawdowns in systematic strategies because systems keep firing when the rules have changed.
M7 — Composite
SII
Structural Integrity Index — Master Verdict
SII = Σ wᵢ·f(H, E, VR, H_stable, G_conf, E_dir)
Bounded sigmoid normalization → [0,1]
SII > 0.70 → 🟢 DEPLOY
SII 0.40–0.70 → 🟡 CAUTION · SII < 0.40 → 🔴 ASIDE
SII synthesizes all six foundation metrics into a single normalized composite using a bounded sigmoid transform that ensures outputs stay in [0,1] regardless of regime. The composite incorporates Hurst stability (H_stable), geometric lattice conformance (G_conf from SRL/Fibonacci levels), and Kaufman Efficiency Ratio (E_dir). When all six simultaneously confirm DEPLOY, the probability of a false positive drops dramatically versus any single component.
Your edgeASIDE means stop — no exceptions. The six-metric consensus required for DEPLOY is deliberately a high bar. Most sessions won't qualify. On the sessions that do, you trade with the maximum statistical confidence the system can provide.
07 — REM v2.0
THE
HARD
PROBLEM.
SOLVED.
Retracement Evidence Module

The hardest question in trend trading: is price pulling back to recharge, or turning around for good? Get it wrong once and you exit your best trade. Get it wrong twice and you lose confidence in your system.

The REM applies three independent mathematical probes to this question. Each measures a different aspect of what a healthy retracement looks like versus a structural reversal. Combined into a weighted composite score — the RES — only when v1.2 says DEPLOY and all four invalidations are clear.

When RES shows STRONG, the mathematics says: this is a retracement. Not intuition. Not pattern recognition. Statistics.

R1 · Weight 35%
EDS
Energy Deceleration Signal
delta_RV = (RV_primary − RV_current) / RV_primary
delta_BV = (BV_primary − BV_current) / BV_primary
EDS_raw = delta_RV − |delta_RV − delta_BV|
EDS = clamp((EDS_raw + 1) / 2, 0, 1)
EDS → 1 = smooth energy deceleration = retracement
EDS → 0 = abrupt jump-driven collapse = reversal
When a trend retraces cleanly, the continuous (bipower) component of variance stays elevated while the total realized variance stays controlled. When a trend reverses violently, realized variance spikes while bipower doesn't — collapsing EDS. This distinction between smooth energy loss and violent rupture is the mathematical signature of retracement versus reversal.
R2 · Weight 40%
HDI
Hurst Divergence Index
HDI = H_L − H_S
Requires H_L > 0.55 AND H_S < 0.55
H_L = structural trend memory (long window)
H_S = local momentum (short window)
During a healthy pullback, the structural trend (H_L) remains intact while local momentum (H_S) weakens. The Hurst divergence between these two windows is the mathematical fingerprint of a retracement within a trend. During a genuine reversal, H_L also drops — which kills the HDI signal entirely. The 40% weight reflects HDI's high discriminative accuracy in backtesting.
R3 · Weight 25%
SCS
Structural Compression Score
ECR = (E_{t−k} − E_t) / k
R3 passes when ECR ≥ threshold AND SII ≥ floor
Positive ECR = entropy compressing = structure building
Negative ECR = chaos growing = reversal signal
A healthy retracement builds structure while price corrects — entropy compresses as the market coils before its next leg. If entropy rises while price pulls back, the market is becoming more disordered, which is characteristic of a structural reversal. SCS catches this thermodynamic signature before you enter a bad trade. Additionally, SII must remain above the retracement floor throughout.
Retracement Evidence Score
RES = (EDS×0.35) + (HDI×0.40) + (SCS×0.25) — Four Evidence Levels
STRONG
RES ≥ 0.75
All three components aligned. Full conviction. Trade on price confirmation.
MODERATE
RES ≥ 0.55
Two or more components contributing. Reduce size 30–40%. Usable.
WEAK
RES ≥ 0.35
Marginal signal. Observe only. Do not trade at WEAK.
NONE
RES < 0.35
No statistical retracement evidence. Zero action warranted.
4 Mandatory Invalidations — Any One Active = RES Overrides to Zero
I1
Trend Memory Failure
H_L < 0.55
Long-window Hurst has broken. There is no intact structural trend to retrace within — the entire retracement thesis collapses. All REM outputs are mathematically void without a confirmed trend.
I2
Structural Degradation
SII < 0.55 during counter-move
A healthy retracement pauses structure — it does not destroy it. If SII falls below the retracement floor while price corrects, the counter-move is degrading underlying coherence. That is reversal behavior, not pullback behavior.
I3
Jump-Dominated Movement
BNS Jump Ratio > red threshold
The counter-move is being driven by news events or liquidity gaps — not normal counter-trend activity. Under jump-dominated conditions, EDS loses its mathematical validity and all component scores become unreliable.
I4
CUSUM Structural Break
|CUSUM| > 1.36
The most severe invalidation. An active structural break means the market is in the process of changing regime entirely. Every statistical model in the system — including all REM components — requires parameter stability. Under a break, none of it applies.
08 — Protocol
THE
five-step
PROTOCOL
Follow this sequence every session. Most days you'll reach step 2 or 3 and correctly identify that conditions don't qualify. That restraint is the system working. Inaction in structureless markets is the edge.
01
Check Verdict
Read v1.2 Verdict first. ASIDE = stop entirely. CAUTION = halve intended size. Only DEPLOY allows you to proceed.
No exceptions. ASIDE means no trade regardless of anything else you see.
02
Clear Invalidations
Check the Invalidations row. Any active I1–I4 = RES is already zero. Wait for complete clearance — red background stops flashing when clear.
I4 CUSUM break = highest priority. Everything stops.
03
Read RES Level
With DEPLOY verdict and clean invalidations, read the RES. Only act at MODERATE (≥0.55) or STRONG (≥0.75). Check which components are contributing to understand quality.
HDI near 0.40 contribution = high conviction. EDS low = reduce confidence.
04
Confirm Direction
RES tells you a retracement is statistically occurring — not which direction the primary trend runs. Use H_L, price structure, and key levels to confirm bias and time entry.
H_L > 0.55 = uptrend persistence confirmed.
05
Monitor Live
Once in a trade, watch the dashboard. If I1–I4 triggers mid-trade, the thesis is compromised — reduce or hedge. ASIDE mid-trade = structural environment has changed.
CUSUM firing during open position = reduce or exit immediately.
09 — Access
FOUNDING
MEMBER
PRICING.

First 500 buyers lock in the founding rate forever. After spot 500, the price becomes $250 permanently. One payment. Lifetime access. No subscriptions.

284 Founding Spots Left
Early Access · First 500 Members
$49
One-Time · Lifetime
Normal price: $250
  • STRUCTURA CORE v2.9 — Full Pine Script v6
  • Permanent TradingView invite (never expires)
  • All future v2.x updates — included for free
  • Complete reference manual + workflow guide
  • 8 pre-configured alert conditions
  • Founding Member Discord community
  • Priority support from Swadesh LABS
  • 🎁 FREE: STRUCTURA Trading Journal v1
  • 🎁 FREE: Python Backtesting Engine v2.9
  • Invite delivered within 24 hours

Not financial advice. Statistical analysis tool only.
Trading involves significant risk of loss. Past structure patterns do not guarantee future results.

Standard Pricing · After 500 Spots
$250
One-Time · Lifetime
  • STRUCTURA CORE v2.9 — Full Pine Script v6
  • Permanent TradingView invite access
  • All future v2.x updates included
  • Complete reference manual + workflow guide
  • 8 pre-configured alert conditions
  • Community Discord access
  • Standard support
  • 🎁 FREE: STRUCTURA Trading Journal v1
  • 🎁 FREE: Python Backtesting Engine v2.9
  • Invite delivered within 24 hours
Founding Spot Progress
216 of 500 founding spots taken · 284 remaining at $49
$49
Founding Price · Lifetime
24h
Max Invite Delivery Time
10 — Free With Every Purchase
TWO
FREE
TOOLS.

Every member — founding or standard — receives both of these at no additional cost. They're not upsells. They're part of the system.

J
Bonus 01 · Free
STRUCTURA
TRADING JOURNAL
v1.0 — HTML/JS · No installation required

A full trading journal built specifically for STRUCTURA. Log every trade with the exact regime context — RES level, SII score, H_L, active invalidations, and your trade outcome. Understand what conditions you actually trade best in.

What it includes
✓ Trade entry/exit logging with STRUCTURA regime fields
✓ R-multiple tracker and equity curve visualization
✓ Regime breakdown table — see your best/worst conditions
✓ Win rate by RES level (STRONG vs MODERATE vs WEAK)
✓ Export to CSV for further analysis
✓ Works offline — runs entirely in your browser
✓ Included in your member portal on purchase
Py
Bonus 02 · Free
PYTHON
BACKTEST ENGINE
v2.9 — Full audited source · EURUSD H4 validated

The complete Python implementation of every STRUCTURA metric — DFA Hurst, Shannon Entropy, Yang-Zhang volatility, BNS jump detection, CUSUM, and the full RES scoring engine. Run it on your own data. Verify every output independently.

What it includes
✓ Full DFA Hurst estimator (12-scale, R²≥0.90 guard)
✓ Shannon Entropy with Freedman-Diaconis binning
✓ Yang-Zhang OHLC volatility estimator
✓ BNS bipower variation & jump ratio
✓ CUSUM structural break detection
✓ Next-bar-open entries · gap-model exits · 1% risk sizing
✓ Block bootstrap Sharpe significance (5,000 iterations)
✓ Full performance report: Sharpe, drawdown, R-multiples
✓ Included in your member portal on purchase
For Institutional Allocators & Quant Researchers
Full methodology documentation, audit trail, backtested performance tables, and honest assessment of strengths and limitations — available in our Quantitative Research document.
View Research Doc →
10 — Community
WHAT
TRADERS
Actually Say
★★★★★
"Most indicators just tell you what happened. STRUCTURA is the first one that tells you whether what happened is statistically meaningful or just noise. That distinction alone is worth the price."
Beta Tester — FX Trader
Early Access Member · Results not typical
★★★★★
"The CUSUM guard alone changed how I trade news events. The moment it fires I step aside — no argument. Having a mathematical reason to do nothing is more valuable than any entry signal I've ever used."
Beta Tester — Systematic Trader
Early Access Member · Results not typical
★★★★★
"I came in sceptical of the Hurst implementation — ran it against my own Python DFA script on EUR/USD H4. The v2.9 multi-box output matches within 0.02 across 200 bars. That's when I stopped second-guessing it."
Beta Tester — Quantitative Trader
Early Access Member · Results not typical
11 — Questions
FREQ.
Asked
How is access delivered after purchase?
After payment verification — within 24 hours maximum — you receive a personal TradingView invite code by email. In TradingView: Pine Script Editor → Open → Invite-only scripts → Enter code. The indicator appears in your My Scripts library permanently and never expires.
Does the indicator repaint?
No. All calculations use confirmed closed-bar data only. The values you see at bar close will never change on subsequent bars. Set all alerts to "Once per bar close" — not per tick — to match this behavior and eliminate mid-candle noise.
The RES always shows INVALID. Why?
Check the Invalidations row in the dashboard. Most common cause: (1) I4/CUSUM break — try increasing the Lookback Window N; it's sensitive on short timeframes. (2) I3/Jump Ratio elevated — low-liquidity instrument or news event in the calculation window. (3) I1/H_L below 0.50 — the trend has genuinely failed. This is the correct output, not an error.
Does it work on crypto, commodities, stocks?
Yes — the mathematics are asset-class agnostic. For crypto: raise the Jump Ratio Red threshold to 0.20–0.25 (crypto naturally has higher jump ratios). For commodities: defaults perform well. For equities: works on liquid large-caps; avoid thinly traded stocks where microstructure assumptions may not hold.
RES showed STRONG but my trade lost. What happened?
STRUCTURA measures statistical conditions, not guaranteed outcomes. STRONG RES means the mathematical conditions for a retracement are present — not a guarantee of timing, magnitude, or direction. Think of it as a probability filter, not a prediction. Always combine with price structure, key levels, and proper position sizing.
What timeframes work best?
H4 and Daily are optimal with default N=100. H1 works intraday — reduce N to 60–80. Weekly gives excellent macro context — increase N to 150–200. M15 and below are not recommended with defaults; if needed, reduce N to 30–50 and expect noisier readings.
Is the $49 price genuinely lifetime?
Yes. A single one-time payment of $49 (founding) or $250 (standard after spots are filled) grants permanent TradingView invite access. No subscription, no renewal, no monthly fee — ever. All future updates within the v2.x series are included at no additional cost.
What payment methods do you accept?
All major credit/debit cards, PayPal, and UPI (for Indian buyers). Payments are processed securely. After confirmation your invite code is delivered to the email you provide within 24 hours. Check your spam folder if you don't see it.
284 Founding Spots Remaining
STOP
GUESSING.
START
MEASURING.

After 500 members, $49 is gone. The price becomes $250 and stays there.

Claim Founding Access — $49 →
One-time payment · No subscription · Lifetime access · Invite within 24h
© 2026 Swadesh LABS — STRUCTURA CORE v2.9 — Pine Script v6
Not financial advice. Statistical analysis only. Past structural patterns do not guarantee future results. All trading involves risk of loss.