Vertical Horizontal Filter Vertical Horizontal Filter was initiated by Adam White. It was first published
in a magazine called “Issues of Futures” in August, 1991. The Vertical Horizontal
Filter (VHF) is a very common Indicator used by traders to find out the Phase of
a Price Trend. Normally, a price trend can be in a Trending Phase or a Congestion
Phase/Choppy Movement Phase. Adam White created this particular Technical Indicator
to determine whether prices are trending in a particular direction or are they going
through a transitional period. He used it to measure the range of Futures available
in the market.
Поиск скриптов по запросу "Futures"
BKSqueezeThis is a price volatility compression and expansion indicator that uses the ratio of the Bollinger Band and Keltner Ratio.
Red segments indicate extreme price volatility compression that can be ideal entry points for stock/futures/forex and/or options positions.
Aqua segments indicate price volatility is expanding.
Blue segments indicate price volatility is compressing - can be used as an exit point or partial scale out point.
Note that the indicator doesn't indicate direction. One suggestion is to use the DMI indicator for this purpose - really depends on how early you enter the trade.
Suggest using a time period of 15 bars for volatile stocks, such as TSLA for example, otherwise a period of 20 bars suits most stocks/futures/forex symbols.
T7 JNSARJNSAR stands for Just Nifty -0.14% Stop & Reverse. This is a Trend Following Daily Bar Trading System for NIFTY -0.14% . Original idea belongs to ILLANGO @ I coded the pine version of this system based on a request from @stocksonfire. Use it at your own risk after validation at your end. Neither me or my company is responsible for any losses you may incur using this system. Hope you like this system and enjoy trading it !!!
Updated V3 code for the T7 JNSAR system earlier published here V2 and here V1
Following updates made to the code
1. Added a 22 Period Simple moving average filter over and above the standard JNSAR value for generating trading signals. This simple filter reduces the whipsaw trades drastically along with similar improvements in the max draw down and overall profitability of the system. The SMA filter is turned ON by default but can be turned OFF by user through the settings window.
2. Backtest option is now turned ON by default.
Also am republishing the trading rules here again with some modification
1. Go Long when the daily close is above the JNSAR line. Go Short when the daily close is below the JNSAR line. JNSAR line is the varying green line overlayed over the price chart. Once a signal comes at market close enter in the direction of the signal @ market price @ next day market open.
2. Trade only Nifty -0.14% Index. This system was developed and backtested only for NIFTY -0.14% Index. So trade in its Futures or Options, as you may deem fit. My recommendation is to choose futures for simplicity. If you want to reduce the trading cost and go with options, trade with deep in the money options, preferably 2 strikes far from the spot price.
3. Trade all signals. Markets trend only 30-35% of the time and hence the system is only accurate to that extend. But system tends to make enough money, in this small trending window, to keep the overall profitability in good health. But one never knows when a big trend may come and when it comes its absolutely imperative that you take it. To ensure that, trade all signals and don't be choosy about what signals you are going to trade. Also I wouldn't recommend using your own analysis to trade this system. Too many drivers will crash the car.
4. Like all trend following systems, this system will have many whipsaws during flat markets along with large trade and account drawdowns. Also some months and even years may not be profitable. But to trade this system profitably, it is necessary to take these in one's stride and keep trading. As the backtester results from 1990 to 2017 proves, this system is profitable overall thus far. Take confidence from that objective fact.
5. Trade with only that amount of money you can afford to loose. Initial capital that you need to have to trade one lot of NIFTY -0.14% should be atleast - (Margin Money required to take and hold 1 lot position + maximum drawdown amount per lot)*1.2. Be prepared to add more if need be, but the above formula will give a rough idea of what you need to have to start trading and be in the game always.
6. Place an After Market Order @ Market Price with your broker after market close so that you get to execute the trade next trading day @ Market open to capture near similar price as the daily open price seen on the chart. This execution mode will give you the best chance to minimize the slippage and mimic the backtester results as closely as practically possible.
7. Follow all the 6 rules above religiously, as if your life depends on it. If you cant, then don't trade this system; You will certainly loose money.
Happy Trading !!! As always am looking out for your valuable feedback.
T7 JNSARUpdated code for the T7 JNSAR system earlier published here -
Following updates made to the code
1. Buy / Sell arrows now appear when the corresponding conditions are met.
2. Support for Heikin-Ashi Candles added
3. Different Backtesting Position Sizing Algorithms added for evaluation
Also am republishing the trading rules here again with some modification
1. Go Long when the daily close is above the JNSAR line. Go Short when the daily close is below the JNSAR line. JNSAR line is the varying green line overlayed over the price chart. Once a signal comes at market close enter in the direction of the signal @ market price @ next day market open.
2. Trade only Nifty Index. This system was developed and backtested only for NIFTY Index. So trade in its Futures or Options, as you may deem fit. My recommendation is to choose futures for simplicity. If you want to reduce the trading cost and go with options, trade with deep in the money options, preferably 2 strikes far from the spot price.
3. Trade all signals. Markets trend only 30-35% of the time and hence the system is only accurate to that extend. But system tends to make enough money, in this small trending window, to keep the overall profitability in good health. But one never knows when a big trend may come and when it comes its absolutely imperative that you take it. To ensure that, trade all signals and don't be choosy about what signals you are going to trade. Also I wouldn't recommend using your own analysis to trade this system. Too many drivers will crash the car.
4. Like all trend following systems, this system will have many whipsaws during flat markets along with large trade and account drawdowns. Also some months and even years may not be profitable. But to trade this system profitably, it is necessary to take these in one's stride and keep trading. As the backtester results from 1990 to 2016 proves, this system is profitable overall thus far. Take confidence from that objective fact.
5. Trade with only that amount of money you can afford to loose. Initial capital that you need to have to trade one lot of NIFTY should be atleast - (Margin Money required to take and hold 1 lot position + maximum drawdown amount per lot)*1.2. Be prepared to add more if need be, but the above formula will give a rough idea of what you need to have to start trading and be in the game always.
6. Place an After Market Order @ Market Price with your broker after market close so that you get to execute the trade next trading day @ Market open to capture near similar price as the daily open price seen on the chart. This execution mode will give you the best chance to minimise the slippage and mimic the backtester results as closely as practically possible.
7. Follow all the 6 rules above religiously, as if your life depends on it. If you cant, then don't trade this system; You will certainly loose money.
Happy Trading !!! As always am looking out for your valuable feedback.
T7 JNSARJNSAR stands for Just Nifty Stop & Reverse. This is a trend following daily bar trading system for NIFTY. Original idea belongs to ILLANGO @ I coded the pine version of this system based on a request from @stocksonfire. Use it at your own risk after validation at your end. Neither me or my company is responsible for any losses you may incur using this system. Hope you like this system and enjoy trading it !!!
While trading this system you must follow these simple rules.
1. Go Long when the daily close is above the JNSAR line. Go Short when the daily close is below the JNSAR line. JNSAR line is the varying green line overlayed over the price chart. Once a signal comes at market close enter in the direction of the signal @ market price @ next day market open.
2. Trade only Nifty Index. This system was developed and backtested only for NIFTY Index. So trade in its Futures or Options, as you may deem fit. My recommendation is to choose futures for simplicity. If you want to reduce the trading cost and go with options, trade with deep in the money options, preferably 2 strikes far from the spot price.
3. Trade all signals. Markets trend only 30-35% of the time and hence the system is only accurate to that extend. But system tends to make enough money, in this small trending window, to keep the overall profitability in good health. But one never knows when a big trend may come and when it comes its absolutely imperative that you take it. To ensure that, trade all signals and don't be choosy about what signals you are going to trade. Also I wouldn't recommend using your own analysis to trade this system. Too many drivers will crash the car.
4. Like all trend following systems, this system will have many whipsaws during flat markets along with large trade and account drawdowns. Also some months and even years may not be profitable. But to trade this system profitably, it is necessary to take these in one's stride and keep trading. As the backtester results from 1990 to 2016 proves, this system is profitable overall thus far. Take confidence from that objective fact.
5. Initial capital that you need to have to trade one lot of NIFTY should be atleast - (Margin Money required to take and hold 1 lot position + maximum drawdown amount per lot)*1.2. Be prepared to add more if need be, but the above formula will give a rough idea of what you need to have to start trading and be in the game always.
6. Follow all the 5 rules above religiously as if your life depends on it. If you cant, then don't trade this system; You will certainly loose money.
Accumulation Swing Index The Accumulation Swing Index is a cumulative total of the Swing Index.
The Accumulation Swing Index was developed by Welles Wilder.
The SwingIndex function was developed to help cut through the maze of
Open, High, Low and Close prices to indicate the real strength and direction
of the market. The Swing Index function looks at the Open, High, Low and
Close values for a two-bar period. The theory is that there are four cross-bar
and one intra-bar comparisons that are strong indicators of an up or down day.
The Swing Index returns a number between -100 and 100. If the factors point toward
an up day, then the function value will be positive and vice versa. In this way,
the Swing Index gives us definite short-term swing points, and it can be used to
supplement other methods as a breakout indicator. A breakout is indicated when the
value of the Accumulation Swing Index (ASI) exceeds the ASI value on the day when a
previous significant High Swing Point was made. A downside breakout is indicated when
the value of the ASI drops below the ASI value on a day when a previous significant
low swing point was made.
Since only futures have a relative daily limit value, this function only makes sense
when applied to a futures contract. If you use this function and it only plots a zero
flat line, check the Daily Limit value.
Accumulation Swing Index (ASI) The Accumulation Swing Index is a cumulative total of the Swing Index.
The Accumulation Swing Index was developed by Welles Wilder.
The SwingIndex function was developed to help cut through the maze of
Open, High, Low and Close prices to indicate the real strength and direction
of the market. The Swing Index function looks at the Open, High, Low and
Close values for a two-bar period. The theory is that there are four cross-bar
and one intra-bar comparisons that are strong indicators of an up or down day.
The Swing Index returns a number between -100 and 100. If the factors point toward
an up day, then the function value will be positive and vice versa. In this way,
the Swing Index gives us definite short-term swing points, and it can be used to
supplement other methods as a breakout indicator. A breakout is indicated when the
value of the Accumulation Swing Index (ASI) exceeds the ASI value on the day when a
previous significant High Swing Point was made. A downside breakout is indicated when
the value of the ASI drops below the ASI value on a day when a previous significant
low swing point was made.
Since only futures have a relative daily limit value, this function only makes sense
when applied to a futures contract. If you use this function and it only plots a zero
flat line, check the Daily Limit value.
Chainbey Ai - HTF Trend Matrix (Clean)Chainbey Ai – HTF Trend Matrix is a professional, higher-timeframe trend detection indicator designed to give traders a clean, reliable market bias, regardless of the chart timeframe they are trading on.
This indicator automatically analyzes multiple higher timeframes (HTFs) and combines:
EMA trend direction
Trend strength (ADX)
Market structure (trend vs range)
Trend disagreement across HTFs
Reversal probability estimation
All results are displayed in a compact table at the bottom-right, making it perfect for scalpers, day traders, and swing traders who need fast, decision-ready information.
🧠 What This Indicator Solves
❌ No more guessing the higher-timeframe trend
❌ No more trading against the main market bias
❌ No more confusion between trend vs range
✅ Clear BULLISH / BEARISH / RANGE bias
✅ Strength score to avoid weak trends
✅ Reversal probability to manage risk
📊 How to Read the Table (User Manual)
🔹 FINAL Row
Example:
FINAL | BEARISH TREND | -46
Text (BEARISH / BULLISH / RANGE) → Overall market bias
Number (-46) → Trend Strength Score
Trend Score Guide:
Score Meaning
0 to ±20 No trend / Choppy
±20 to ±40 Weak trend
±40 to ±70 Healthy trend
±70+ Very strong / extended trend
📌 Negative = Bearish
📌 Positive = Bullish
🔹 REVERSAL – Possibility (%)
Example:
REVERSAL | Possibility | 45%
This shows the chance of trend exhaustion or reversal.
Reversal % Meaning
0–30% Strong trend continuation
30–50% Normal pullback risk
50%+ High reversal probability
70%+ Dangerous to chase trades
📌 Use this to avoid late entries.
🔹 HTF Rows (60 / 240 / D)
Each row shows:
DIR / STRUCT
Direction from EMA trend
Market structure (TREND / RANGE)
ADX
Trend strength
STRONG / MEDIUM / CHOP
📌 If multiple HTFs agree → higher confidence
📌 If HTFs conflict → reduce position size or wait
🛠 Recommended Trading Usage
✅ Best Practices
Trade in the direction of FINAL trend
Enter on pullbacks, not breakouts
Use lower timeframes only for entries
❌ Avoid
Trading against FINAL bias
Chasing trades when reversal % is high
Over-leveraging in CHOP conditions
🎯 Ideal For
Crypto traders (Spot & Futures)
Forex traders
Gold / Commodity traders
Scalping, Intraday & Swing trading
⚠️ Disclaimer
This indicator is a decision-support tool, not financial advice. Always combine it with proper risk management, confirmations, and your trading plan.
Swiss Army Knife Multi-ToolMulti-Tools is a comprehensive trading indicator suite designed to streamline your chart analysis by combining six essential tools into one powerful, customizable package. Whether you're day trading futures, swing trading stocks, or scalping forex, this indicator provides the key reference points and signals you need—all without cluttering your chart.
🎯 Included Tools
1. Big Round Numbers (BRN)
Automatically plots psychological price levels that institutions and retail traders alike tend to watch. These levels often act as magnets for price or create support/resistance zones.
Customizable increment spacing (100, 50, 25, etc.)
Half and quarter level options
Adjustable number of levels displayed
2. HTF Moving Averages
A complete multi-period moving average suite with trend alignment detection.
5 customizable periods (default: 9, 21, 50, 100, 200)
Multiple MA types: EMA, SMA, WMA, VWMA, HMA, DEMA
Visual ribbon fill option
Golden/Death cross signals
Real-time alignment status in dashboard
3. Stop Finder
Intelligent stop loss calculation using two methodologies:
ATR-Based Stops: Dynamic stops that adapt to current volatility
Swing-Based Stops: Stops placed below recent swing lows (longs) or above swing highs (shorts)
Customizable ATR period and multiplier
4. Target Finder
Risk:Reward-based take profit levels calculated from your stop distance.
Three customizable R:R targets (default: 1R, 2R, 3R)
Visual plot options (circles, lines, step lines)
Real-time calculations in the dashboard
5. Uni Zones (Supply/Demand)
Identifies consolidation zones and potential breakout opportunities.
Basing bar detection based on body-to-range ratio
Breakout signals when price exits the zone
Background highlighting during active basing periods
6. Money Flow Index (MFI)
Volume-weighted momentum oscillator to identify potential exhaustion points.
Overbought/Oversold highlighting
Customizable threshold levels
Background color alerts for extreme readings
📊 Information Dashboard
A clean, customizable dashboard displays real-time values:
MA trend alignment status
Price position relative to 200 MA
Nearest round number and distance
Current ATR value in price and ticks
Suggested stop loss and take profit levels
MFI status and value
Active basing zone detection
Chainbey Ai - Swing High/Low Range📈 Chainbey Ai – Swing High / Swing Low Range
Chainbey Ai – Swing High / Swing Low Range is a clean and powerful market-structure indicator designed to automatically identify key swing levels and visualize the active price range on any chart.
This tool helps traders clearly see where price is reacting, consolidating, or preparing for a breakout.
🔹 What This Indicator Does
✔ Automatically detects the latest confirmed Swing High
✔ Automatically detects the latest confirmed Swing Low
✔ Draws horizontal levels for both swings
✔ Labels levels clearly as “Swing High” and “Swing Low”
✔ Highlights the range between swings using a background fill
✔ Updates dynamically as new market structure forms
🔹 Why It’s Useful
Identify support & resistance without manual drawing
Visualize consolidation zones instantly
Spot breakout and fake-out areas faster
Ideal for range trading, breakout trading, and trend confirmation
Works perfectly with price action, volume, and order-flow concepts
🔹 Best Use Cases
Crypto (Spot & Futures)
Forex
Indices
Commodities (Gold, Silver, Oil)
Timeframes: Works on all timeframes (especially strong on 15M, 30M, 1H)
🔹 How to Trade With It
Buy bias when price holds above Swing Low inside the range
Sell bias when price rejects from Swing High
Breakout confirmation when price closes strongly outside the range
Combine with volume, momentum, or liquidity concepts for higher accuracy
🔹 Customization
Adjust Swing Length to control sensitivity
Enable/disable range background fill
Customize colors and transparency
Extend swing levels to the right for forward guidance
⚠️ Disclaimer
This indicator is a technical analysis tool, not financial advice.
Always manage risk and confirm signals with your own strategy.
🔗 Built by Chainbey Ai
Smart Structure • Clean Levels • Clear Ranges 🚀
TradeCraftly - Previous OHLC Levels📌 TradeCraftly – Previous OHLC Levels
TradeCraftly OHLC plots the most important higher-timeframe price levels directly on your chart, helping you identify key support, resistance, and reference zones with clarity.
🔹 What this indicator shows
Previous Day OHLC (High, Low, Open, Close)
Previous Week OHLC
Previous Month OHLC
Today’s Open (no historical clutter)
All levels are drawn as clean horizontal rays and extend only into the current session, keeping the chart focused and readable.
🔹 Key Features
Individual enable / disable controls for Day, Week, and Month levels
No historical clutter – only the most relevant levels are shown
Labels aligned to today’s first candle for quick level identification
Custom line width, color, and style (solid / dashed / dotted)
Works seamlessly on all intraday and higher timeframes
🔹 Why use Previous OHLC levels?
Previous period OHLC levels are widely used by:
Intraday traders
Swing traders
Index & futures traders
They often act as:
Strong support & resistance
Liquidity zones
Breakout / rejection levels
🔹 Best Use Cases
Market open bias using Today’s Open
Intraday trades around PDH / PDL
Weekly range reactions near PWH / PWL
Higher-timeframe context using Monthly levels
⚠️ Disclaimer
This indicator is for educational purposes only and does not provide trading signals or financial advice. Always manage risk and confirm with your own analysis.
CTA Trend Model (TA and Quant)Simple CTA Long-Term model using a mix of Quant and old school Technical Indicators.
Use on Daily or Weekly Charts for trending macro futures/spot markets
VWAP Institutional Trading Engine INDICATORVWAP Institutional Trading Engine
Adaptive Market Regime & Trading Model Indicator
🔍 Overview
The VWAP Institutional Trading Engine is an advanced, rule-based market analysis indicator designed to replicate institutional decision-making logic using VWAP, volatility, and session-based market behavior.
This indicator does not predict price.
Instead, it answers a more important question:
“What type of trading is appropriate right now – if any?”
The engine continuously evaluates:
Market regime (trend, range, dead market)
Volatility conditions
VWAP acceptance and deviation
Trading session (Asia / London / New York)
Based on this, it dynamically activates one of three trading models:
TREND
MEAN REVERSION
OFF (no trading)
This makes it ideal for:
Discretionary traders
Systematic traders
Risk-focused trading
Educational / portfolio-style trading approaches
🧠 Core Philosophy
Professional trading is not about finding more signals.
It is about knowing when not to trade.
This indicator is built around three institutional principles:
VWAP defines fair value
Volatility defines opportunity or danger
Different sessions require different behavior
⚙️ Indicator Components
1️⃣ VWAP & Statistical Deviation Bands
VWAP represents institutional fair price
±1σ bands indicate acceptance zones
±2σ bands represent statistical extremes
Used for:
Mean reversion zones
Trend acceptance confirmation
Go Score calculation
2️⃣ Volatility Engine
Volatility is measured using ATR relative to price
Compared against its own moving average
Classifications:
Low volatility → dead / untradable market
Normal volatility → structured behavior
High volatility → trend or liquidation events
3️⃣ Market Regime Detection
The engine classifies each moment into one regime:
Regime Meaning
TREND Price accepts above or below VWAP with volatility
RANGE Price rotates near VWAP
DEAD Low volatility, no opportunity
MIXED Unclear structure
4️⃣ Active Trading Model (Most Important)
Displayed in the dashboard as Model:
Model Interpretation
TREND Trade with momentum and continuation
MEAN_REVERT Trade extremes back to VWAP
OFF Do not trade
The Model tells you HOW you are allowed to trade right now.
5️⃣ Session Awareness (UTC)
The indicator adapts behavior based on session logic:
Session Preferred Behavior
Asia Mean Reversion
London Trend
New York Selective / adaptive
Trades are only allowed when model + session are aligned.
6️⃣ Go Score – Trade Quality Filter
Each potential setup receives a Go Score (0–100), based on:
Distance from VWAP
Market regime quality
Volatility penalties
Go Score Interpretation
≥ 80 High-quality (A+)
65–79 Acceptable
< 65 No trade
7️⃣ Risk Guidance (Informational)
The indicator outputs a Risk % suggestion, based on:
Go Score
Simulated drawdown logic
⚠️ This is guidance only, not position sizing.
📈 Visual Signals
The indicator plots contextual signals, not blind entries:
Mean Reversion Signals
▲ Long below −2σ
▼ Short above +2σ
Trend Signals
↑ Long after acceptance above +1σ
↓ Short after acceptance below −1σ
Signals appear only when trading is allowed by:
Model
Session
Go Score
🧩 Dashboard Explanation
The top-right dashboard displays real-time engine state:
Field Description
Session Current UTC session
Regime Detected market condition
Go Score Trade quality score
Risk % Suggested relative risk
Drawdown % Virtual defensive metric
Model Active trading model
If Model = OFF → do nothing.
🧭 Practical Trading Manual (Step-by-Step)
Step 1 – Check the Model
TREND → look for continuation
MEAN_REVERT → look for extremes
OFF → do not trade
Step 2 – Confirm Session Alignment
Asia + Mean Reversion ✔
London + Trend ✔
Misalignment = caution
Step 3 – Check Go Score
Below 65 → skip
65+ → proceed
Step 4 – Use Chart Structure
VWAP = anchor
σ bands = context
Signal = permission, not obligation
Step 5 – Manage Risk Manually
Use your own SL/TP rules
Follow the Risk % as guidance, not law
❌ What This Indicator Is NOT
Not a signal spam tool
Not a prediction system
Not a “holy grail”
It is a decision framework.
✅ Best Use Cases
Futures
Indices
Forex
Crypto
Intraday & swing trading
Recommended timeframes:
5m – 1H (intraday)
4H (contextual swing)
🏁 Final Notes
This indicator is intentionally transparent and rule-based.
It is designed to help traders:
Think in regimes
Trade with structure
Avoid overtrading
Protect capital
If you trade with the Model, not against it,
you will already be ahead of most market participants.
AMD Visual State Model [POC]# AMD Visual State Model - Quick Start Guide
## 🎯 Goal
Get the indicator running on your TradingView chart in under 5 minutes.
---
## ⚡ 5-Minute Setup
### Step 1: Install (2 minutes)
1. Open (www.tradingview.com)
2. Open any chart (recommend ES1! or NQ1! futures, 1-minute timeframe)
3. Click Pine Editor at bottom of screen
4. Click "New" → "Blank indicator script"
5. Delete all default code
6. Copy/paste entire contents of `amd_complete.pine`
7. Click "Save" → Name it: `AMD Visual State Model`
8. Click "Add to Chart"
### Step 2: First Look (1 minute)
You should now see:
- ✅ Blue/orange boxes (session ranges) - if during Asian/London hours
- ✅ Yellow horizontal lines (liquidity levels) - if after 08:00 NY
- ✅ Gray/orange vertical lines (time markers) - at 09:30 and 10:00 NY
**If nothing appears:** Check that it's a trading day and within session hours.
### Step 3: Settings (2 minutes)
Click indicator name → Settings icon (gear) → Inputs tab
**Verify timezone:**
```
Timezone: America/New_York ✓
```
**Recommended starting values (already defaults):**
```
Sweep Distance (ATR): 1.5 ✓
Displacement ATR: 2.0 ✓
FVG Min Size: 0.5 ✓
Entry Timeout: 60 minutes ✓
Max Entries Per Day: 1 ✓
```
**Visual settings:**
- Enable all checkboxes (Show Session Ranges, Show Liquidity Levels, etc.)
- Adjust opacity if chart is too cluttered (default 90 is good)
**Alert settings:**
- Enable all 5 alert types
- You'll set up actual alerts in Step 4
Click "OK"
---
## 🔔 Setting Up Alerts (3 minutes)
### Critical Alert: Entry Allowed
1. Click indicator name on chart
2. Click "⋮" (three dots) → "Add alert on AMD Visual State Model"
3. **Condition:** "Any alert() function call" OR specific "Entry Allowed" message
4. **Alert name:** "AMD Entry Signal - "
5. **Options:**
- Trigger: "Once Per Bar Close" ✓
- Expiration: "Open-ended" ✓
6. **Notifications:**
- ✓ Notify on app
- ✓ Show popup
- ✓ Send email (optional)
- ✓ Webhook URL (if using automation - leave blank for now)
7. Click "Create"
### Optional: Set Up All 5 Alerts
Repeat above for each alert type:
1. Manipulation Detected
2. Distribution Confirmed
3. FVG Formed
4. Price in Entry Zone
5. Entry Allowed ⭐ (most critical)
---
## 📊 First Day Usage
### Pre-Market (Before 09:30 NY)
**Action:** None - just ensure indicator is on chart
### Asian Session (18:00-02:00 NY)
**What to expect:**
- Blue box appears showing Asian high/low range
- This happens automatically
**Action:** None required
### London Session (03:00-08:00 NY)
**What to expect:**
- Orange box appears showing London high/low range
- At 08:00, yellow lines appear = liquidity levels
- State advances to ACCUMULATION_READY
**Action:** None required - just observation
### NY Open (09:30 NY)
**What to expect:**
- Gray vertical line appears
- State is still ACCUMULATION_READY
**Action:** Get ready to watch
### Decision Point (10:00 NY) ⭐
**What to expect:**
- Orange vertical line appears
- State advances to MANIPULATION_ARMED
- Now watching for liquidity sweep
**Action:** Active monitoring begins
### 10:00-11:00 (The Trading Window)
**Watch for this sequence:**
#### 1. 🔼/🔽 MANIPULATION LABEL
- Price sweeps liquidity level (high or low)
- Reverses quickly
- Label appears: "🔼 BULLISH SWEEP" or "🔽 BEARISH SWEEP"
- Alert fires: "Manipulation Detected"
**What this means:** Setup is activating. Direction is determined.
#### 2. ⚡ DISPLACEMENT LABEL
- Large candle appears in direction opposite the sweep
- Label: "⚡ DISPLACEMENT"
- State: DISTRIBUTION_ARMED
**What this means:** Institutional involvement confirmed.
#### 3. 📊 STRUCTURE SHIFT LABEL
- Price breaks swing high (bullish) or swing low (bearish)
- Label: "📊 STRUCTURE SHIFT"
- Alert fires: "Distribution Confirmed"
**What this means:** Trend change confirmed. Watch for entry zone.
#### 4. FVG BOX APPEARS
- Green box (bullish) or red box (bearish)
- Shows "gap" in price where imbalance occurred
- Alert fires: "FVG Formed"
**What this means:** Entry zone identified. Wait for price to retrace.
#### 5. 🎯 ENTRY SIGNAL
- Price touches/enters FVG zone
- Big label appears: "🎯 LONG ENTRY" or "🎯 SHORT ENTRY"
- Alert fires: "ENTRY ALLOWED" ⭐
**What this means:** ALL CONDITIONS MET. Execute trade.
---
## 💡 Your First Trade (Paper Trading Recommended)
### When Entry Signal Appears:
**For LONG Entry (Bullish Sweep):**
```
Entry: Current price (in FVG zone)
Stop Loss: Below manipulation low
Take Profit: 1.5-2x risk
```
**For SHORT Entry (Bearish Sweep):**
```
Entry: Current price (in FVG zone)
Stop Loss: Above manipulation high
Take Profit: 1.5-2x risk
```
### Example Trade (Bullish)
```
Manipulation low: 4845.00
Entry price: 4850.00 (in FVG)
Stop loss: 4843.00 (2 points below manip low)
Risk: 7 points
Target: 4860.50 (1.5R) or 4871.00 (3R)
```
**Position sizing:**
- Determine $ risk per trade (e.g., $500)
- Calculate: Contracts = $500 / (7 points × $50/point) = 1.4 → round to 1 contract
---
## 🐛 Troubleshooting First Day Issues
### "I don't see any boxes or lines"
**Check:**
1. Is it a trading day? (Not weekend/holiday)
2. Is it within session hours?
3. Are visual settings enabled? (Click indicator → Settings → Inputs → scroll to Visual Settings)
### "I see session boxes but no liquidity levels"
**Reason:** Liquidity levels only appear after sessions complete (after 08:00 NY)
**Solution:** Wait until London session ends
### "I got manipulation alert but no FVG formed"
**Possible reasons:**
1. Distribution phase incomplete (need displacement + structure shift)
2. No valid FVG detected (gap too small)
3. Settings too strict
**Solution:** Enable debug mode to see what's blocking progression
### "Entry signal never appeared"
**Check debug table:**
- Is FVG detected? ✓
- Is price in FVG? (may have missed it)
- Is entry timeout reached? (>60 minutes past 10am)
**Solutions:**
- Increase entry timeout to 90 minutes
- Watch price more closely when FVG forms
---
## 🎓 Learning Mode (First Week)
### Day 1-2: Observation Only
- Watch indicator state progression
- Note when each label appears
- Don't take trades yet - just learn the flow
### Day 3-5: Paper Trading
- Take trades on paper when entry signal appears
- Track outcomes in spreadsheet
- Refine understanding of risk/reward
### Day 6-10: Small Size Live
- If paper results positive, start with 1 micro contract (MES/MNQ)
- Gradually increase as confidence builds
---
## 📈 Success Metrics (First 30 Days)
Track these metrics:
**Setup Quality:**
- Total days with complete AMD cycle: ___ / 20 trading days
- % of cycles that completed: ___% (target: >50%)
**Entry Quality:**
- Total entry signals: ___
- Signals taken: ___
- Win rate: ___% (target: >55%)
**Execution Quality:**
- Average R-multiple: ___ (target: >1.5R)
- Max adverse excursion: ___ (should be < stop distance)
- Max favorable excursion: ___ (should be > 2R minimum)
---
## 🔧 Settings Adjustment After First Week
### If too many false signals:
```
Sweep ATR: 1.5 → 2.0
Displacement ATR: 2.0 → 2.5
FVG Min Size: 0.5 → 0.7
```
### If missing good setups:
```
Sweep ATR: 1.5 → 1.2
Displacement ATR: 2.0 → 1.7
FVG Min Size: 0.5 → 0.4
Entry Timeout: 60 → 90 minutes
```
### If setups never complete:
```
Structure Confirm: 2 → 1 bar
Swing Length: 5 → 3
FVG Lookback: 10 → 15 bars
```
---
## 📱 Mobile Setup (Optional)
1. Download TradingView app
2. Open saved chart with AMD indicator
3. Alerts will push to phone when conditions met
4. Can monitor progression on mobile
**Limitations:**
- Smaller screen (harder to see details)
- Debug table may be hard to read
- Recommend tablet over phone for active monitoring
---
## ✅ Day 1 Checklist
Before market open tomorrow:
- Indicator installed on chart
- Settings verified (timezone, defaults)
- At least "Entry Allowed" alert set up
- Alert notifications working (test with random alert)
- Risk management plan documented
- Position size calculated
- Stop loss strategy defined
- Trading journal ready to log results
---
## 🎯 Key Reminders
1. **One setup per day maximum** (unless max entries increased)
2. **Only trade after 10:00 AM** (decision point)
3. **Wait for entry signal** (don't anticipate)
4. **Stop loss is mandatory** (below/above manipulation level)
5. **If in doubt, sit out** (better to miss setup than lose capital)
---
## 📞 Next Steps
**After first successful setup observed:**
→ Review full documentation (AMD_DOCUMENTATION.md)
**After 10-20 trades:**
→ Analyze results, adjust parameters
**After 60 days with positive results:**
→ Consider strategy version for automation
---
**Good luck with your first AMD setup!**
Remember: The indicator prevents premature entry. Trust the state progression.
Chart Wolf ToolkitVWAP • PDH/PDL • NY Kill Zone
This indicator is built for traders who trade less, not more.
The Chart Wolf WLR Toolkit standardizes your chart so every decision is made from location, structure, and timing — not indicators, signals, or predictions.
It is designed to support the Wolf Liquidity Reversal (WLR) and Wolf Value Reversion (WVR) trade models.
NY Opening Range [LuckyAlgo]
This custom ORM (Opening Range Move) indicator is designed as a tool for traders who focus not just on where a range is, but on the magnitude of the expansion following the initial morning volatility.
Here is a summary of the indicator and how it differentiates itself from standard Opening Range Breakout (ORB) tools.
Indicator Summary
The script captures the high and low of the market during the first 30 minutes of the NY session (09:30–10:00 AM EST). Once this range is set, it tracks the "Expansion Move" - the point distance from the range's boundary to the current session's high or low. It visualizes this through color-coded zones, dynamic labels at the session extremes, and a statistical table that benchmarks today's volatility against the recent past.
What specific questions does this indicator answer?
While most indicators tell you "the range is broken," this indicator answers quantitative questions vital for trade management:
1. "How far has the market stretched relative to the breakout?"
The indicator provides the exact point distance (+/-) from the range high/low. This helps you determine if the move is just beginning or if it has already extended significantly.
2. "Is the current move 'normal' or an outlier?"
By using the Stats Table, you can see if the current 40-point move on NQ is typical or if the average move over the last 10 days is actually 80 points. This prevents you from "fading" a move that still has average room to grow, or taking a "pro-trend" trade when the market is already exhausted.
3. "Where is the session extreme located?"
The inclusion of the dashed High of Day (HOD) and Low of Day (LOD) lines with attached labels tells you exactly where the "Move" calculation is peaking. If the HOD line hasn't moved for two hours, you know the bullish expansion has stalled.
4. "When is the data no longer relevant?"
Because of the 17:00 EST reset logic, the indicator answers the "end of day" question for futures traders. It stops measuring at the settlement/close of the electronic session, ensuring your charts are clean for the overnight (Globex) session or ready for the next morning.
Technical Advantage
Most scripts use a single "point in time" to reset. This script uses a Trading Window logic, which is much more robust. If a bar is missing at exactly 17:00 due to low volume or a data glitch, the indicator won't "break" or keep drawing old lines - it understands the entire window of time it is allowed to exist in.
Credit to @LuxAlgo for his initial Opening Range Breakout indicator used as a base to develop this version.
Auction Session Ranges (AMT Edition) [ Alerts] Auction Session Ranges (AMT Edition)
► Overview
The Session Ranges ( AMT Edition) is a session-based market structure and auction analysis tool designed to visually reveal acceptance, rejection, imbalance, and continuation across the Asia, London, and New York CME trading sessions.
Unlike typical indicators, this script is grounded in Auction Market Theory (AMT) and session-based structure, focusing on how price behaves at session extremes rather than relying on lagging calculations, oscillators, or predictive algorithms. Its purpose is to highlight areas where the market has earned the right to be traded, providing traders with a clear, rules-based framework for high-probability directional trades.
Important for backtesting: To properly backtest session extremes, Interaction Lines, and Closest Opposite Extreme Lines, you must use TradingView’s replay mode, as real-time bar-by-bar progression is required to observe how the market interacts with session extremes over time.
► Key Innovations
This is not a conventional session high/low indicator. Its originality comes from several unique design elements:
Differentiates interaction from true acceptance: Price touching an extreme does not automatically indicate directional intent.
Separates directional confirmation from range-bound indecision: Only confirmed crossings beyond the Interaction Line signal actionable bias.
Tracks failed auctions and partial acceptance: No volume profile or order book data required.
Visual, rule-based trade permission: Signals are objective, minimizing subjective interpretation.
Interaction & Closest Opposite Extreme Lines: Together, these lines map how far an auction progresses after an extreme is tested, highlighting continuation, partial acceptance, or failed auctions.
► Core Concepts Explained
1. Session Highs & Lows (Solid Lines)
Plotted continuously for each CME session (Asia, London, New York).
Represent the current auction boundaries for that session.
2. True Interaction Lines (Thick Dotted Lines)
Drawn when price touches or breaks a session extreme:
Touching session high → dotted line at the low of that candle
Touching session low → dotted line at the high of that candle
Auction context:
Touching alone ≠ acceptance
Acceptance occurs only when price moves beyond the Interaction Line and holds
Trading principle:
Price has not crossed → no directional bias → do not trade
Price crosses and holds → directional bias established
3. Acceptance vs Rejection
Accepted direction: Price crosses and holds beyond the Interaction Line
Rejected direction: Price crosses the line but immediately reverses
Neutral / No-Trade: Price trapped between extreme and Interaction Line
Important: Acceptance is conditional and dynamic. Each time price crosses back over the Interaction Line, acceptance is lost.
4. New Extremes = Continuation
Once an Interaction Line is crossed, each new session extreme in that direction reinforces the trend.
Traders should only look for continuation setups along the established directional bias.
AMT interpretation:
Repeated new extremes → directional imbalance
Failure to make new extremes → potential balance or rotation
5. Closest Opposite Extreme Lines (Thin Dotted Lines)
After acceptance, the script tracks price progress toward the opposite session extreme.
Plotted only if price reaches a user-defined percentage of the session range.
Helps identify:
Full acceptance (price reaches opposite extreme)
Partial acceptance (price stalls)
Failed auctions (price cannot progress meaningfully)
Trading guidance once Closest Lines appear:
Partial acceptance: Price stalls near the Closest Line but does not fully reach the opposite extreme → bias remains valid, but the move may be weakening; consider scaling out or tightening stops.
Full acceptance: Price reaches the opposite extreme → directional auction fully confirmed; bias continues, but expect potential rotation or balance afterward.
Failed auction (cannot progress meaningfully): Price reverses before reaching the Closest Line → signals exhaustion; avoid chasing the move and treat as potential trend failure.
Note: Only relevant after Interaction Line is crossed; if price never crosses the Interaction Line, Closest Lines have no trading significance.
► Step-by-Step Usage
Wait for a session extreme
Let price interact with the session high or low.
Observe the Interaction Line
No cross → do not trade
Cross and hold → directional bias established
Trade in the direction of new extremes only
Ignore counter-trend trades unless the Interaction Line is lost
Manage risk using structure
Interaction Line acts as a dynamic invalidation level
Use Closest Lines for context
Partial acceptance → bias valid, watch for weakening
Full acceptance → bias strong, continuation likely
Failed attempt → potential exhaustion, do not chase
Useful for trade management, scaling, and expectation setting
► Price Retests & Pullbacks
Scenario:
Price crosses above the Interaction Line (e.g., from a low interaction).
Over the next 3–4 15-minute bars, price dips back toward the Interaction Line, with wicks touching it but no decisive close below.
Interpretation:
Initial Acceptance Confirmed: Bias remains valid while price holds above/below the line.
Temporary Pullback / Retest: Market is re-evaluating the auction; testing participant agreement.
Wicks Touching the Line: Partial probing or liquidity sweep; market still respects original acceptance.
Trading Implication:
Continuation bias remains intact.
Pullbacks near the Interaction Line offer lower-risk entries.
Decisive close below → acceptance lost, signaling trend failure or invalidation.
Market Psychology:
Healthy auction behavior: extreme tested → acceptance confirmed → boundary retested for liquidity → continuation.
Failure to hold above signals weak acceptance or exhaustion.
✅ Key Takeaways:
Holding above Interaction Line → bias intact, pullback = opportunity
Closing below Interaction Line → acceptance lost, bias invalidated
Wicks touching only → normal retest, still valid
► No-Trade Conditions
Avoid trading when:
Price never crosses the Interaction Line
Price remains trapped between the extreme and the Interaction Line
Market rotates without forming new extremes
These indicate balance, not directional opportunity.
► Alerts
Optional alerts trigger when price crosses an Interaction Line for:
Asia session
London session
New York session
Alerts signal possible acceptance, not automatic trade entries.
► Who This Script Is For
Best suited for traders who:
Trade session structure in futures, indices, or FX
Follow Auction Market Theory principles
Prefer objective, rules-based confirmation
Want fewer but higher-quality trade opportunities
Not intended for:
Indicator stacking
Predictive trading
High-frequency scalping without structure
► Final Notes
This script does not tell you when to buy or sell.
It shows where the market has earned the right to be traded.
Use it as a decision filter, not a prediction engine.
VYW Overnight LevelsNOTE! This is an experimental script, it is yet to be tested !!
This script will plot the current session overnight high/low values EVEN if the chart is set to show RTH bars only.
This script was specifically written for the e-mini S&P, meaning it assume the overnight session runs from 6PM - 09:30AM EST (will work for other CME futures as well that uses the same times).
The script relies heavily on the fact that the first overnight bar's time is 6PM EST, if there are days where this is not the case the script won't work for that day.
Classic Chartism-Market Structure- Support.ResistanceClassic Chartism – Market Structure + Support & Resistance
This indicator is designed for traditional chart-based technical analysis, relying exclusively on price action and market structure, without the use of oscillators or lagging indicators.
The script automatically detects significant swing highs and swing lows using confirmed pivots and classifies price structure according to classic market structure notation:
HH (Higher High)
HL (Higher Low)
LH (Lower High)
LL (Lower Low)
Based on these swings, the indicator plots horizontal Support & Resistance (SR) levels, representing historically significant areas of supply and demand. These levels remain active until invalidated by price, providing a clear and objective market context.
The indicator does not repaint once a swing is confirmed, making it suitable for real-time analysis and discretionary trading decisions. It performs well across cryptocurrencies, futures, indices, and equities, and is particularly useful for trend identification, pullback entries, and structure-based risk management.
cd_bias_profile_Cxcd_bias_profile Cx
Overview:
cd_bias_profile_Cx is an all-in-one professional analysis terminal designed to determine market direction (Bias) based on institutional trading strategies (SMC & ICT). This tool integrates multi-timeframe (MTF) data, institutional liquidity sweeps, SMT divergences, and candle closure confirmations into a single cohesive structure, providing traders with a comprehensive map of institutional Order Flow.
🚀 Advanced Hierarchical Profile Architecture
The indicator visualizes the market through a three-layered hierarchy (Major, Middle, Plot), allowing you to see exactly which higher-tier structure the current price action is serving.
• Smart Timeframe (Auto-TF) Logic: In "Auto" mode, the system automatically selects the most logical hierarchy based on your chart interval using the following sequence:
.
o Example Scenario: If your chart is set to 5-Minute (5m):
Major (Macro Structure): H4 (The outermost container candle)
Middle (Intermediate Structure): H1 (Mid-scale candle)
Plot (Local Structure): 15m (The smallest nested high-timeframe candle)
• Nested Candle Design: Each high-timeframe candle is rendered as transparent boxes with specific body colors, encapsulating the lower-tier price action (OHLC) within it.
• Cyclical Refresh: Profile drawings reset automatically at the opening of every new Major timeframe candle. This ensures the analysis remains focused on the freshest institutional cycle.
🧠 Bias Algorithm & Decision Mechanism
To eliminate subjective interpretation, the algorithm operates on a purely mathematical logic based solely on Candle Closures (Close). It generates three distinct outcomes:
1. Reversal:
o Condition 1: A liquidity Sweep must occur at the HTF level.
o Condition 2 (SMT Confirmation): If no sweep is detected on the primary pair, the algorithm automatically scans correlated assets (e.g., checking GBPUSD or DXY for an EURUSD trade). An SMT Divergence in a correlated asset is accepted as institutional manipulation confirmation.
o Final Trigger: Once a CISD (Change in State of Delivery) occurs on the Lower Timeframe (LTF), the "Reversal" bias is confirmed.
2. Continuation: When a high-timeframe candle closes convincingly above/below the previous candle's High or Low, the algorithm reports that the current trend maintains its strength.
3. Indeterminate: In "non-delivery" zones where the market neither sweeps liquidity nor creates a structural break, the algorithm remains neutral to prevent overtrading.
🚨 Alert Center
The alert system is designed for high-confluence setups, ensuring you never miss a structural shift:
• Flexible TF Selection: You can manually toggle which of the 5 tracked timeframes (1M, 1W, 1D, etc.) should trigger notifications based on your strategy.
• "Any of Them" Function: When enabled, an instant notification is sent the moment a "Reversal" or "Continuation" signal forms on any of your selected timeframes.
• Directional Filtering: You can filter alerts to receive only "Bullish" or only "Bearish" setups, allowing you to align with your primary macro bias.
⚙️ Pro Tips for Usage
• Invalidation Lines: The dashed lines on the chart indicate the exact price level where the institutional bias is "invalidated." These serve as professional-grade stop-loss levels.
• B-ADJ Support: For Futures traders, back-adjustment settings are optimized within the code for seamless data transition.
• Manual Mode: If you wish to use custom timeframes not found in the standard sequence (e.g., 2-hour or 3-day charts), you can define them via the "Manuel" settings toggle.
• High-probability trade setups can be expected when there is multi-timeframe alignment in the same direction.
• Strategic Use Cases: The indicator is optimized for trading Distribution Phases within advanced frameworks. Whether you are looking for the C3 candle in the Universal Model or the Distribution (D) phase in an AMD (Power of 3) setup, this tool provides the necessary structural confirmation.
• User Discretion: Please note that this is a directional bias tool. While it identifies which direction is supported by multi-timeframe alignment, the final execution and entry management on lower timeframes are the user's responsibility.
• Always remember to seek additional confluence before executing a trade.
Chart Visual
Profile Visual
Example (SMT Usage) : On the chart, while the 10:00 H1 candle on GBPUSD sweeps its previous candle's liquidity, its correlated pair EURUSD does not show a sweep. If the "Use SMT for Bias" option is enabled, this SMT divergence with the correlated pair is accepted as a valid HTF Sweep. Upon the new candle open, once a 5m CISD confirmation occurs on EURUSD, the Bias Table will display "Bearish" for the H1/5m row.
Entry examples:
Please feel free to share your feedback and suggestions in the comments below.
Happy trading!
Max. Liquidity & Delta Bias Profile @MaxMaserati 3.0MAX. LIQUIDITY & DELTA BIAS PROFILE @MAXMASERATI 3.0
═══════════════════════════════════════════════════════════════
OVERVIEW
────────
An advanced volume profile tool that analyzes market liquidity and order flow dynamics across different timeframes. This indicator helps traders identify key price levels where significant trading activity and directional bias converge.
DUAL PROFILE SYSTEM
───────────────────
🔷 LIQUIDITY PROFILE (Right Side)
Displays total volume traded at each price level, colored by market bias:
• Green nodes = Bullish dominance (buyers in control)
• Red nodes = Bearish dominance (sellers in control)
• Width represents volume concentration at that level
🔷 DELTA BIAS PROFILE (Left Side)
Shows net buying vs selling pressure at each price level:
• Blue nodes = Positive delta (buying pressure dominates)
• Purple nodes = Negative delta (selling pressure dominates)
• Width represents strength of the imbalance
KEY REFERENCE LEVELS
─────────────
📍 POC (Point of Control)
Yellow horizontal line marking the price with highest traded volume - represents the most accepted fair value during the period.
📍 MAX BULL Level
Green line highlighting the price with strongest bullish conviction - where buyers showed maximum aggression and commitment.
📍 MAX BEAR Level
Red line highlighting the price with strongest bearish conviction - where sellers demonstrated maximum pressure and control.
TOGGLE OFF EVERYTHING EXCEPT THE MAX LINES TO HAVE THIS SETUP
PROFILE STATUS INDICATORS
──────────────────────────
• ▶ ONGOING (Green) = Current developing profile
• ⬛ STOPPED (Red) = Completed profile, new period started
CUSTOMIZATION FEATURES
──────────────────────
✓ Multiple anchor periods (Auto/Session/Day/Week/Month/Quarter/Year)
✓ Independent toggles for each visual element
✓ Individual color and size controls for every label
✓ Adjustable profile width and transparency
✓ Customizable line widths and styles
TRADING APPLICATIONS
────────────────────
• Identify high-probability support/resistance zones
• Spot institutional accumulation/distribution levels
• Detect order flow imbalances before major moves
• Track intraday value areas and fair price zones
• Confirm trend strength through delta analysis
• Find optimal entry/exit levels based on volume
WHO THIS IS FOR
───────────────
Designed for active traders who:
• Trade futures, stocks, forex with volume data
• Use volume profile and market profile concepts
• Analyze order flow and institutional footprints
• Seek data-driven price level identification
• Want visual clarity on market structure
NOTES
─────
• Requires volume data to function properly
• Best used on liquid instruments with consistent volume
• Profiles reset based on selected anchor period
• All visual elements can be toggled independently
• Performance optimized for real-time analysis
⚠️ DISCLAIMER
Educational Tool Only - This indicator is for educational and informational purposes only and does not constitute financial, investment, or trading advice.
Risk Warning - Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results. No representation is made that this indicator will achieve profits or prevent losses.
User Responsibility - All trading decisions are solely your responsibility. The developer and Max Maserati Model assume no liability for losses incurred from using this indicator. Conduct your own research and consult a qualified financial advisor before making investment decisions.
Data Dependency - Indicator accuracy depends on your TradingView plan's data availability and selected timeframe support.
By using this indicator, you acknowledge and agree to these terms.
Entropy Balance Oscillator [JOAT]
Entropy Balance Oscillator - Chaos Theory Edition
Overview
Entropy Balance Oscillator is an open-source oscillator indicator that applies chaos theory concepts to market analysis. It calculates market entropy (disorder/randomness), balance (price position within range), and various chaos metrics to identify whether the market is in an ordered, chaotic, or balanced state. This helps traders understand market regime and adjust their strategies accordingly.
What This Indicator Does
The indicator calculates and displays:
Entropy - Measures market disorder using return distribution analysis
Balance - Price position within the high-low range, normalized to -1 to +1
Lyapunov Exponent - Estimates sensitivity to initial conditions (chaos indicator)
Hurst Exponent - Measures long-term memory in price series (trend persistence)
Strange Attractor - Simulated attractor points for visualization
Bifurcation Detection - Identifies potential regime change points
Chaos Index - Combined entropy and volatility score
Market Phase - Classification as CHAOS, ORDER, or BALANCED
How It Works
Entropy is calculated using return distribution:
calculateEntropy(series float price, simple int period) =>
// Calculate returns and their absolute values
// Sum absolute returns for normalization
// Apply Shannon entropy formula: -sum(p * log(p))
float entropy = 0.0
for i = 0 to array.size(returns) - 1
float prob = math.abs(array.get(returns, i)) / sumAbs
if prob > 0
entropy -= prob * math.log(prob)
entropy
Balance measures price position within range:
calculateBalance(series float high, series float low, series float close, simple int period) =>
float range = high - low
float position = (close - low) / (range > 0 ? range : 1)
float balance = ta.ema(position, period)
(balance - 0.5) * 2 // Normalize to -1 to +1
Lyapunov Exponent estimates chaos sensitivity:
lyapunovExponent(series float price, simple int period) =>
float sumLog = 0.0
for i = 1 to period
float ratio = price > 0 ? math.abs(price / price ) : 1.0
if ratio > 0
sumLog += math.log(ratio)
lyapunov := sumLog / period
Hurst Exponent measures trend persistence:
H > 0.5: Trending/persistent behavior
H = 0.5: Random walk
H < 0.5: Mean-reverting behavior
Signal Generation
Phase changes and extreme conditions generate signals:
Chaos Phase: Normalized entropy exceeds chaos threshold (default 0.7)
Order Phase: Normalized entropy falls below order threshold (default 0.3)
Extreme Chaos: Entropy exceeds 1.5x chaos threshold
Extreme Order: Entropy falls below 0.5x order threshold
Bifurcation: Variance exceeds 2x average variance
Dashboard Panel (Top-Right)
Market Phase - Current phase (CHAOS/ORDER/BALANCED)
Entropy Level - Normalized entropy value
Balance - Current balance reading (-1 to +1)
Chaos Index - Combined chaos score percentage
Volatility - Current price volatility
Lyapunov Exp - Lyapunov exponent value
Hurst Exponent - Hurst exponent value
Chaos Score - Overall chaos assessment
Status - Current market status
Visual Elements
Entropy Line - Main oscillator showing normalized entropy
Entropy EMA - Smoothed entropy for trend reference
Balance Area - Filled area showing balance direction
Chaos/Order Thresholds - Horizontal dashed lines
Lyapunov Line - Step line showing Lyapunov exponent
Strange Attractor - Circle plots showing attractor points
Phase Space - Line showing phase space reconstruction
Phase Background - Background color based on current phase
Extreme Markers - X-cross for extreme chaos, diamond for extreme order
Bifurcation Markers - Circles at potential regime changes
Input Parameters
Entropy Period (default: 20) - Period for entropy calculation
Balance Period (default: 14) - Period for balance calculation
Chaos Threshold (default: 0.7) - Threshold for chaos phase
Order Threshold (default: 0.3) - Threshold for order phase
Lyapunov Exponent (default: true) - Enable Lyapunov calculation
Hurst Exponent (default: true) - Enable Hurst calculation
Strange Attractor (default: true) - Enable attractor visualization
Bifurcation Detection (default: true) - Enable bifurcation detection
Suggested Use Cases
Identify market regime for strategy selection (trend-following vs mean-reversion)
Watch for phase changes as potential trading environment shifts
Use Hurst exponent to assess trend persistence
Monitor chaos index for volatility regime awareness
Avoid trading during extreme chaos phases
Timeframe Recommendations
Best on 1H to Daily charts. Chaos metrics require sufficient data for meaningful calculations.
Limitations
Chaos theory concepts are applied as analogies, not rigorous mathematical implementations
Lyapunov and Hurst calculations are simplified approximations
Strange attractor visualization is conceptual
Bifurcation detection uses variance as proxy
Open-Source and Disclaimer
This script is published as open-source under the Mozilla Public License 2.0 for educational purposes. It does not constitute financial advice. Past performance does not guarantee future results. Always use proper risk management.
- Made with passion by officialjackofalltrades






















