OPEN-SOURCE SCRIPT

Crown Structure Ledger [JOAT]

539
Crown Structure Ledger [JOAT]

Introduction

Crown Structure Ledger is an open-source market structure ledger built to classify price through three structural horizons at the same time: short-term, intermediate-term, and primary-term.

Instead of reducing structure to a single swing model, this script maintains separate rails for each horizon so users can see where local repricing, intermediate repricing, and larger campaign structure are currently positioned.

The indicator is designed to solve a common chart-reading problem:

Traders often know price is moving, but they do not know whether the move is merely a short-term impulse inside a larger range, an intermediate continuation, or a genuine primary expansion.

Crown Structure Ledger addresses that by combining:

  • confirmed pivot structure
  • active break state tracking
  • adaptive ATR corridors
  • EMA trend context
  • volume-pressure bias scoring
  • state-based candle coloring
  • forward structure projection
  • a top-right institutional dashboard


The output is intentionally visual but restrained.

Instead of cluttering the chart with excessive markers, the script emphasizes live structural rails, shaded corridors, confirmed state transitions, and a dashboard that summarizes the current condition of each structural layer.

لقطة

Core Concepts

1. Three-Horizon Structure Mapping

The script confirms three separate pivot systems using different left/right lengths.

This creates a short-term layer for local impulse, an intermediate layer for swing control, and a primary layer for broader directional structure.

Each confirmed pivot updates its own active rail instead of overwriting the other layers.

2. Confirmed Break Logic

Break states are only recognized on confirmed bars.

This means the script does not react to intrabar spikes through a level.

A structural state changes only when price closes through a live rail beyond a small corridor allowance.

3. Adaptive Structure Corridors

Every rail is wrapped in an ATR-based corridor.

When adaptive depth is enabled, the corridor expands or contracts according to volatility conditions so the structure model stays usable across slow and fast environments.

4. Pressure-Weighted Bias

The indicator includes a directional pressure score based on up-volume versus down-volume across a configurable window.

That pressure score is combined with EMA orientation and structure state to create a bias color system rather than a binary trend flag.

5. Forward Projection

Current structural rails can be extended forward so the user can see where the next important structural interaction is likely to occur without manually drawing continuation levels.

لقطة

Features

  • Three structure horizons: short, intermediate, and primary rails tracked independently
  • Adaptive structure corridors: live ATR-based zones around active rails
  • Confirmed structural transitions: break states only update on confirmed bars
  • Break labels: optional state labels appear when a new structural expansion or compression is confirmed
  • EMA trend filter: fast and slow EMA alignment supports the structure interpretation
  • Volume-pressure bias model: directional pressure is estimated from relative up-volume and down-volume
  • Bias cloud: optional background cloud reflects broader directional control
  • Candle coloring: bars can be colored from bearish to bullish using a gradient-like bias response
  • Forward corridor projection: active rails can extend to the right edge of the chart
  • Institutional dashboard: top-right summary of structure state, bias, pressure, and live rail context


Input Parameters

Structure Engine
  • Short Pivot Length
  • Intermediate Pivot Length
  • Primary Pivot Length
  • Structure Corridor ATR
  • Adaptive Corridor Depth
  • ATR Length


Bias Filter
  • Fast EMA
  • Slow EMA
  • Pressure Window
  • Color Candles
  • Show Structure Cloud
  • Show Structure Rails
  • Show Break Labels


Visual System
  • Show Short Term
  • Show Intermediate Term
  • Show Primary Term
  • Show Forward Corridor
  • Forward Corridor Bars
  • Dashboard Position
  • Dashboard Size


How to Use This Indicator

Step 1: Read the Three States Separately

Start by checking whether short-term, intermediate-term, and primary-term structure agree.

When all three align, the chart is in a cleaner directional condition.

When they diverge, the market is often transitioning or rotating.

Step 2: Watch the Active Rails

The live rails mark the current structural boundaries that still matter.

These are the levels price must reclaim or lose to produce a confirmed structural update.

Step 3: Use the Corridors, Not Just the Line

The corridor around a rail is intentional.

It helps avoid overreacting to shallow level breaches in noisy conditions.

Step 4: Read the Bias Cloud and Candle Tone Together

If candle color, pressure bias, and the structure cloud all point in the same direction, the chart context is stronger than a single rail break by itself.

Step 5: Use the Dashboard as a Summary, Not a Shortcut

The dashboard is there to reduce scanning time.

It is best used as a summary of what the rails are already showing visually.

Indicator Limitations

  • Pivot-based structure confirms after the configured right-side bars complete, so signals are intentionally delayed for non-repainting behavior
  • Very aggressive settings can make the short-term layer overly sensitive on low-quality markets
  • In prolonged compression, structure may appear stable while directional follow-through remains weak
  • The indicator explains current structure; it does not guarantee continuation after a break


Originality Statement

Crown Structure Ledger is built around a layered structure ledger rather than a single swing map.

Its distinguishing value comes from maintaining three live structure horizons with adaptive corridors, pressure-aware bias scoring, forward projection, and a dashboard that keeps the chart readable while still exposing the full state of the engine.

Disclaimer

This indicator is provided for educational and informational purposes only.

It is not financial advice and should not be treated as a recommendation to buy or sell any financial instrument.

All structural readings are derived from historical price and volume data and can fail in abnormal market conditions.

Always use independent judgment and risk management.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.