HighCrew Sniper Entry/Exit This system uses a multi-timeframe momentum-forecast model that detects pressure shifts before standard confirmation signals trigger.
It calculates real-time Force, Speed, Power, and Acceleration values derived from live RSI and price-velocity behavior, then adapts dynamically between lower (scalp) and higher (swing) intervals.
When acceleration and power converge, the system identifies early directional intent and prints a bias signal for traders to confirm entry or manage exits.
The framework continuously self-adjusts its thresholds based on volatility and relative strength to maintain precision during fast market changes.
Use cases: intraday scalping, micro-trend reversal timing, swing-bias validation.
Disclaimer: Algorithmic forecasts only; practice proper risk management.
Volatilitas
Get_rich_aggressively_v5# 🚀 GET RICH AGGRESSIVELY v5 - TIER SYSTEM
### Precision Futures Scalping | NQ • ES • YM • GC • BTC
### *Leave Every Trade With Money*
---
## 📋 QUICK CHEATSHEET
```
┌─────────────────────────────────────────────────────────────────────────────┐
│ GRA v5 SIGNAL REQUIREMENTS │
├─────────────────────────────────────────────────────────────────────────────┤
│ ✓ TIER MET Points ≥ 10 (B), ≥ 50 (A), ≥ 100 (S) │
│ ✓ VOLUME ≥ 1.3x average │
│ ✓ DELTA ≥ 55% dominance (buyers OR sellers) │
│ ✓ DIRECTION Candle color = Delta direction │
│ ✓ SESSION In London (3-5AM) or NY (9:30-11:30AM) if filter ON │
├─────────────────────────────────────────────────────────────────────────────┤
│ TIER ACTIONS │
├─────────────────────────────────────────────────────────────────────────────┤
│ 🥇 S-TIER (100+ pts) │ HOLD LONGER │ Big institutional move │
│ 🥈 A-TIER (50-99 pts) │ HOLD A BIT │ Medium move, trail to BE │
│ 🥉 B-TIER (10-49 pts) │ CLOSE QUICK │ Scalp 5-10 pts, exit fast │
│ ❌ NO TIER (< 10 pts) │ NO TRADE │ Not enough conviction │
├─────────────────────────────────────────────────────────────────────────────┤
│ SESSION PRIORITY │
├─────────────────────────────────────────────────────────────────────────────┤
│ 🔵 LONDON OPEN 03:00-05:00 ET │ IB forms 03:00-04:00 │
│ 🟢 NY OPEN 09:30-11:30 ET │ IB forms 09:30-10:30 │
│ 📊 IB BREAKOUT Close beyond IB + Impulse + 1.3x Vol = HIGH CONVICTION│
├─────────────────────────────────────────────────────────────────────────────┤
│ VOLUME PROFILE ZONES │
├─────────────────────────────────────────────────────────────────────────────┤
│ 🔵 HVN (Blue BG) High volume = Support/Resistance, expect consolidation │
│ 🟡 LVN (Yellow BG) Low volume = Breakout acceleration, fast moves │
│ 🟣 POC Point of Control = Institutional fair value │
│ 🟣 VAH/VAL Value Area edges = S/R zones │
├─────────────────────────────────────────────────────────────────────────────┤
│ MARKET STATE DECODER │
├─────────────────────────────────────────────────────────────────────────────┤
│ TREND UP │ Price > EMA20 + CVD rising │ Trade WITH the trend │
│ TREND DN │ Price < EMA20 + CVD falling │ Trade WITH the trend │
│ RETRACE │ Price/CVD diverging │ Pullback, prepare for entry │
│ RANGE │ No clear direction │ Reduce size or skip │
├─────────────────────────────────────────────────────────────────────────────┤
│ 💎 HIGH CONVICTION UPGRADE │
├─────────────────────────────────────────────────────────────────────────────┤
│ Purple diamond (◆) appears when: │
│ • Strong delta (≥65%) + Strong volume (≥2x) + Market in imbalance │
│ → Consider upgrading tier (B→A, A→S) for position sizing │
└─────────────────────────────────────────────────────────────────────────────┘
```
---
## 🎯 THE TIER SYSTEM
The tier system classifies candles by **point movement** to determine trade management:
| Tier | Points | Action | Expected R:R |
|:----:|:------:|:------:|:------------:|
| 🥇 **S-TIER** | 100+ | HOLD LONGER | 2:1+ |
| 🥈 **A-TIER** | 50-99 | HOLD A BIT | 1.5:1 |
| 🥉 **B-TIER** | 10-49 | CLOSE QUICK | 1:1 |
| ❌ **NO TIER** | < 10 | NO TRADE | — |
---
## ✅ SIGNAL REQUIREMENTS
**ALL conditions must be TRUE for a signal:**
```
SIGNAL = TIER + VOLUME + DELTA + DIRECTION + SESSION
☐ Points ≥ 10 (minimum B-tier)
☐ Volume ≥ 1.3x average
☐ Delta dominance ≥ 55%
☐ Candle direction = Delta direction
☐ In session (if filter ON)
ANY FALSE = NO SIGNAL = NO TRADE
```
---
## 📊 VOLUME DOMINANCE ANALYSIS
This is the **core edge** of GRA v5. We use intrabar analysis to determine who is in control:
```
VOLUME ANALYSIS BREAKDOWN
Total Volume = Buy Volume + Sell Volume
Buy Volume: Who pushed price UP within the bar
Sell Volume: Who pushed price DOWN within the bar
Delta = Buy Volume - Sell Volume
Buy Dominance = Buy Volume / Total Volume
Sell Dominance = Sell Volume / Total Volume
≥ 55% = ONE SIDE IN CONTROL
≥ 65% = STRONG DOMINANCE (high conviction)
```
**Direction Confirmation Matrix:**
| Candle | Delta | Signal |
|:-------|:------|:-------|
| 🟢 Bullish | 55%+ Buyers | ✅ LONG |
| 🟢 Bullish | 55%+ Sellers | ❌ Trap |
| 🔴 Bearish | 55%+ Sellers | ✅ SHORT |
| 🔴 Bearish | 55%+ Buyers | ❌ Trap |
---
## 🕐 SESSION CONTEXT
### Initial Balance (IB) Framework
The **first hour** of each session establishes the IB range. Institutions use this for the day's framework.
```
SESSION WINDOWS (Eastern Time):
LONDON:
├── IB Period: 03:00 - 04:00 ← Range established
├── Trade Window: 03:00 - 05:00 ← Best signals
└── Extension Targets: 1.5x, 2.0x
NY:
├── IB Period: 09:30 - 10:30 ← Range established
├── Trade Window: 09:30 - 11:30 ← Best signals
└── Extension Targets: 1.5x, 2.0x
```
### IB Breakout Signals
```
L▲ / L▼ = London IB Breakout (Blue)
N▲ / N▼ = NY IB Breakout (Orange)
Confirmation Required:
☐ Close beyond IB level (not just wick)
☐ Impulse candle (body > 60% of range)
☐ Volume > 1.3x average
```
**IB Statistics:**
- 97% of days break either IB high or low
- 1.5x extension = first profit target
- 2.0x extension = full range target
- ~66% of London sessions sweep Asian high/low first
---
## 📈 VIRTUAL VOLUME PROFILE ZONES
GRA v5 calculates volume profile zones **without drawing the profile**, giving you the key levels:
### Zone Types
| Zone | Background | Meaning | Action |
|:-----|:-----------|:--------|:-------|
| **HVN** | 🔵 Blue | High Volume Node | S/R zone, expect consolidation |
| **LVN** | 🟡 Yellow | Low Volume Node | Breakout zone, fast acceleration |
| **POC** | 🟣 Purple dots | Point of Control | Institutional fair value |
| **VAH/VAL** | 🟣 Purple lines | Value Area edges | S/R boundaries |
### How to Use
```
ENTERING A TRADE:
At HVN:
├── Expect price to consolidate
├── Look for rejection/absorption
└── Better for reversals
At LVN:
├── Expect fast price movement
├── Don't fight the direction
└── Better for breakouts
Near POC:
├── Institutional fair value
├── Strong magnet effect
└── Watch for volume at POC
```
---
## 🔄 MARKET STATE DETECTION
GRA v5 classifies the market into four states using **CVD + Price Action**:
```
CVD Direction
↑ Rising ↓ Falling
┌─────────────┬─────────────┐
Price > EMA20 │ TREND UP │ RETRACE │
│ (Go Long) │ (Pullback) │
├─────────────┼─────────────┤
Price < EMA20 │ RETRACE │ TREND DN │
│ (Pullback) │ (Go Short) │
└─────────────┴─────────────┘
```
| State | Meaning | Action |
|:------|:--------|:-------|
| **TREND UP** | Buyers in control | Trade long, follow signals |
| **TREND DN** | Sellers in control | Trade short, follow signals |
| **RETRACE** | Pullback against trend | Prepare for continuation entry |
| **RANGE** | No clear direction | Reduce size or wait |
---
## 💎 HIGH CONVICTION UPGRADES
When extra conditions align, GRA v5 marks the signal with a **purple diamond**:
```
HIGH CONVICTION = Base Signal + Strong Delta (65%+) + Strong Volume (2x+) + Imbalance State
```
**Action:** Consider upgrading tier for position sizing:
- B-Tier → A-Tier management
- A-Tier → S-Tier management
---
## 📋 TRADING BY TIER
### 🥇 S-TIER (100+ points)
| | |
|:--|:--|
| **Entry** | Candle close |
| **Target** | IB extension / Next S/R |
| **Management** | HOLD LONGER |
**Rules:**
- Watch next candle - continues? HOLD
- Same tier same direction? ADD
- Opposite tier signal? EXIT on close
- Never close early unless reversal signal
### 🥈 A-TIER (50-99 points)
| | |
|:--|:--|
| **Entry** | Candle close |
| **Target** | 1.5x initial risk minimum |
| **Management** | HOLD A BIT |
**Rules:**
- Target 1.5:1 R:R minimum
- Trail to breakeven after 1:1
- If stalls, take profit
- Upgrade to S-tier management if high conviction
### 🥉 B-TIER (10-49 points)
| | |
|:--|:--|
| **Entry** | Candle close |
| **Target** | 5-10 points MAX |
| **Management** | CLOSE QUICK |
**Rules:**
- Exit in 1-3 candles
- DO NOT hold for more
- Any doubt = EXIT
- Quick scalp mentality
---
## ⚙️ SETTINGS BY INSTRUMENT
| Setting | NQ/ES | YM | GC | BTC |
|:--------|:-----:|:--:|:--:|:---:|
| **Timeframe** | 1-5 min | 1-5 min | 5-15 min | 1-15 min |
| **S-Tier** | 100 pts | 100 pts | 15 pts | 500 pts |
| **A-Tier** | 50 pts | 50 pts | 8 pts | 250 pts |
| **B-Tier** | 10 pts | 15 pts | 3 pts | 50 pts |
| **Min Volume** | 1.3x | 1.3x | 1.5x | 1.3x |
| **Delta %** | 55% | 55% | 58% | 55% |
| **Best Time** | 9:30-11:30 ET | 9:30-11:30 ET | 3-5AM & 8:30-10:30 ET | 24/7 |
---
## 📊 TABLE LEGEND
The info panel displays real-time market data:
| Row | Shows | Colors |
|:----|:------|:-------|
| **Pts** | Candle points | Gold/Green/Yellow by tier |
| **Tier** | S/A/B/X | Gold/Green/Yellow/White |
| **Vol** | Volume ratio | Yellow (2x+) / Green (1.3x+) / Red |
| **Delta** | Buy/Sell % | Green (buy) / Red (sell) / White |
| **CVD** | Direction | Green ▲ / Red ▼ |
| **State** | Market state | Green/Red/Orange/Gray |
| **Sess** | Session | Yellow if active |
| **Zone** | VP zone | Blue/Yellow/Purple |
| **Sig** | Signal | Green/Red if active |
---
## 🔔 ALERTS
| Alert | When | Action |
|:------|:-----|:-------|
| **S-TIER LONG/SHORT** | S-tier signal | Hold longer |
| **A-TIER LONG/SHORT** | A-tier signal | Hold a bit |
| **B-TIER LONG/SHORT** | B-tier signal | Close quick |
| **LON IB BREAK UP/DN** | London IB breakout | Major session move |
| **NY IB BREAK UP/DN** | NY IB breakout | Major session move |
| **HIGH CONVICTION** | Upgraded signal | Consider larger size |
| **LONDON/NY OPEN** | Session start | Get ready |
---
## 💰 THE GOLDEN RULE
> ### **LEAVE EVERY TRADE WITH MONEY**
>
> | Situation | Rule |
> |:----------|:-----|
> | B-Tier | Small win > Small loss |
> | A-Tier | Trail to BE, lock profit |
> | S-Tier | Let it run to target |
> | No Signal | NO TRADE |
> | Wrong Side | EXIT immediately |
>
> **Capital preserved = Trade tomorrow**
---
## ⚠️ DISCLAIMER
> Risk management is **YOUR** responsibility.
> Never risk more than 1-2% per trade.
> Paper trade until you understand the signals.
> Past performance ≠ future results.
---
### Get Rich. Stay Rich. Trade Aggressively. 🚀
**Get Rich Aggressively v5**
*Precision Futures Scalping*
EMA 7/21 + SuperTrend DEFINITIVOhe Ultimate 7/21 Signal: Trend-Filtered by Supertrend 🚀Tired of signals that trade against the main trend? This powerful indicator features the 7/21 EMA Crossover as its core signal, but with a massive upgrade in confirmation:Trend Alignment: Only signals that move in the direction of the Supertrend are confirmed, drastically reducing false entries.Momentum Filter: The ADX DI ensures the move has directional strength.Conviction Check: A Volume Filter validates the signal with market participation.This multi-stage filter provides clean, high-conviction signals for the $7/21$ strategy. The intuitive Informative Panel clearly shows when all conditions are met for a BUY or SELL.Trade with the trend. Trade with conviction.
FVG + Breaker Block v8.6This indicator helps you identify FVGs, inverse FVGs (which are marked with a dashed line in the middle of the FVG) and potential Breaker Blocks on every time frame. You can spot 4 different types of BBs: highly potential bullish and bearish BBs are colored blue and red, and the less potential bullish and bearish BBs are colored magenta and orange, but you can change the colors to your desire.
Due to internal constraints of TradingView there is a limit on how many boxes you can plot on your screen so it is advisable not to increase the "Max Bars Back to keep FVG (candles)" above 100 or TV will not be able to plot many BB´s due to its internal limits. Increasing the number above 100 will limit the quantity of BBs boxes to be plot on TradingView.
VWAP SESSION BUY SELL STRATEGY (INDICATOR) (PDK1977)VWAP SESSION BUY SELL STRATEGY (INDICATOR) (PDK1977)
This indicator combines the proven UT Bot breakout engine but with VWAP directional filtering and ATR-based take profit levels.
It delivers clean, high-probability trend entries and automatic volatility-calibrated exits.
How it works:
Buy only when price is above VWAP
Sell only when price is below VWAP
UT Bot confirms momentum with ATR-based trailing logic
ATR Take Profit gives consistent exits based on volatility
Bars turn green/red only while in a trade, back to normal after TP
Best For:
Intraday and swing trading
Indices, FX, crypto, and high-volume stocks but also for Forex with right TF and settings
Traders who want clean signals and minimal noise
2. Trade Checklist:
Use this before every entry. Quick, simple, reliable.
BUY Checklist:
Price confirmed above VWAP
Label prints BUY
Enter on Buy label (on bar close)
→ Hold until ATR TP hits
SELL Checklist:
Price below VWAP
Label prints SELL
Enter on Sell label
→ Hold until ATR TP hits
Avoid Entries When:
Price is chopping tightly around VWAP
Major news events are about to release
Volume is extremely low
ATR is shrinking rapidly (market compression)
3. Risk-Management Guide
This is tailored to how your system actually behaves.
1. Use ATR TP as Primary Exit:
The system automatically calculates a TP based on volatility:
High volatility → larger TP
Low volatility → smaller TP
This keeps trades consistent and avoids lingering too long.
2. Stop-Loss Recommendation
This strategy is designed for TP-only exits, but if you want a SL:
Recommended Stop-Loss:
Use ATR’s opposite trail, OR
Use 1 × ATR behind your entry candle
This matches the system's internal logic.
3. Position Sizing
Since this system enters during momentum expansions, use:
1–2% max risk per trade
Reduce risk during high-impact news sessions
4. Understand VWAP Environment
Different VWAP conditions require different expectations:
Strong Trend (price far from VWAP)
Higher TP probability
Fewer whipsaws
Excellent continuation setups
Chop Zone (price flips above/below VWAP)
Do NOT trade
Signals lose edge
Wait for a clean break + UT confirmation
5. Choose Correct VWAP Reset for your trading and session
This dramatically improves results.
Market Recommended VWAP Reset
US Stocks New York Session
Indices Daily
Forex London or New York
Crypto Daily or None
4. Final Tips for Best Performance
✔ Enter only in the direction of VWAP
✔ Don’t chase signals far away from entry candle
✔ Avoid trading right into major support/resistance
✔ ATR TP will handle exits mostly
Disclaimer
This script is provided for educational and informational purposes only.
It does not constitute financial advice, investment advice, trading advice, or any form of recommendation to buy or sell any financial instrument. The auto take no responsibility for loss or error in the script.
EMA 7/21 + SuperTrend INDICADOR CREADO PARA MI ESTRATEGIA That sounds like a complex and multi-layered trading indicator you've developed! Combining an Exponential Moving Average (EMA) crossover with an Average Directional Index (ADX) filter, a Volume filter, and a Supertrend for overall trend confirmation can certainly help to filter out false signals and potentially increase the reliability of your entry and exit points.Here's a breakdown of the components you're using and why this combination can be powerful:📊 Indicator Components and Their Roles1. 7/21 EMA Crossover (Signal Generator)The $7$-period EMA and $21$-period EMA crossover is a common strategy used to generate initial buy or sell signals.Buy Signal: The short-term EMA (7) crosses above the long-term EMA (21).Sell Signal: The short-term EMA (7) crosses below the long-term EMA (21).2. ADX DI Filter (Momentum and Direction)The Average Directional Index (ADX) and its directional indicators ($+DI$ and $-DI$) are key to confirming the strength and direction of the move.Directional Confirmation: The EMA crossover must be confirmed by the appropriate directional index. For a buy, the $+DI$ should be above the $-DI$. For a sell, the $-DI$ should be above the $+DI$.Trend Strength ( NYSE:ADX $): A rising NYSE:ADX $ (typically above 20 or 25) suggests the current trend has sufficient momentum, making the signal more reliable.3. Volume Filter (Conviction)Adding a Volume filter ensures that the price movement accompanying the EMA crossover is supported by significant trading activity.Confirmation: A strong signal (buy or sell) is often accompanied by above-average volume. This suggests that market participants are actively supporting the move, adding conviction to the trade.4. Supertrend (Overall Trend Confirmation)The Supertrend indicator is based on the Average True Range (ATR) and is excellent for identifying the dominant market trend.Trend Alignment: The EMA crossover signal should align with the Supertrend's current signal. For a buy signal, the price should be above the Supertrend line (green). For a sell signal, the price should be below the Supertrend line (red). This helps ensure you are trading with the prevailing trend.📈 Why This is a Powerful CombinationYour indicator is essentially a multi-stage confirmation system:Speed (7/21 EMA): Generates a fast, responsive signal.Momentum (ADX DI): Confirms the direction and strength of the signal.Conviction (Volume): Validates the signal with market participation.Safety/Trend (Supertrend): Ensures the trade is in the direction of the long-term trend.The Informative Panel is a great feature, as it simplifies the decision-making process by summarizing the findings of all these components—e.g., "BUY: EMA Crossover $\checkmark$, +DI > -DI $\checkmark$, High Volume $\checkmark$, Supertrend Green $\checkmark$."💡 Next Steps for RefinementTo finalize and test this indicator, you may want to consider:Parameter Optimization: The best settings for the ADX level (e.g., 20 vs. 25) and the Supertrend ATR parameters may need to be optimized for the specific asset (e.g., stocks, forex) and timeframe you are using.Exit Strategy: Since this primarily focuses on entries, define clear Stop-Loss (perhaps based on the Supertrend line or a recent swing low/high) and Take-Profit (e.g., a fixed Risk/Reward ratio or previous resistance/support levels) rules.Would you like to explore specific parameters for any of these components or look into ways to backtest your strategy?
Swift Algo X🧠 Swift Algo X - Adaptive Volume-Drift & Optimization System
Swift Algo X is a sophisticated quantitative trading system designed to solve a big failure point in technical analysis: Parameter Inefficiency.
While most indicators rely on static input settings that fail when market volatility shifts, Swift Algo X solves this by combining a Volume-Drift Model with an integrated Brute-Force Optimization Engine.
The system does not just guess the trend or entry signals, it runs 24 parallel historical simulations in the background to mathematically identify the optimal settings for the asset you are currently trading.
🔍 How It Works
The algorithm operates on a "Dual-Core" architecture: The Signal Engine generates possible trade setups, while the Optimization Engine validates and ranks them in real-time.
1. The Signal Engine: Volume-Drift Calculation Unlike standard indicators that rely on lagging price averages, Swift Algo X calculates the underlying "Volume Force".
It applies a Z-Score Normalization to measure how far the current volume flow has drifted from its statistical mean.
This creates a "Fair Value Estimate" derived purely from volume pressure rather than just price action.
Signals are generated when price breaks out of the volatility bands surrounding this estimate.
2. The Macro Anchor To filter out lower-timeframe noise: The system anchors all logic to a dynamic Macro Baseline.
Bullish Setups: Valid only when the Volume Estimate is sustaining above the Macro Baseline.
Bearish Setups: Valid only when the Volume Estimate is sustaining below the Macro Baseline.
3. The Optimization Engine (The Core Innovation) This is the distinguishing feature of Swift Algo X. On every bar update, the script utilizes Pine Script to:
- Simulate 24 different permutation sets of Volatility Factors and Periods.
- Backtest every permutation against historical price action in real-time.
- Rank them by Win Rate and display the most profitable mathematical fit on the dashboard.
⚙ Key Features
🚀 Live Strategy Tester: A built-in dashboard displays the Win Rate for your current settings vs. the calculated "Best Settings."
🧠 Self-Optimizing Logic: The system recommends the exact "Multiplier" and "Period" that have historically yielded the highest probability for the specific ticker.
✅ Volume-Weighted Signals: Entries are based on volume accumulation, offering a distinct advantage over price-only indicators.
🎯 Adaptive Bands: The volatility bands expand and contract based on the Z-Score drift, naturally filtering out chop during low-volume consolidation.
📘 How to Use
1) Apply to Chart: Load Swift Algo X on your preferred timeframe (e.g., 15m, 1H, 4H).
2) Consult the Dashboard: Look at the "Backtesting" table in the top right corner.
Row 1 (Current): Shows how your current inputs are performing.
Row 2 (Backtest): Shows the theoretical performance of the optimal settings found by the engine.
3) Align Parameters: If the "Backtest Setting" shows a significantly higher Win %, adjust your Multiplier and Period inputs to match the dashboard's recommendation.
4) Wait for BUY / SELL Labels to appear. Use these as confirmation or as tools within your own strategy.
5) Always complement signals with independent risk management and your own analysis.
💡 Originality & Concept
Swift Algo X innovates by transforming the chart from a passive display into an active Simulation Environment.
While the underlying concept of Trailing Stops is a familiar tool, Swift Algo X’s originality lies in its Permutation Engine. By leveraging complex array sorting and loop structures, the script performs a Historical Analysis inside the indicator itself.
This effectively turns a standard script into a dynamic "Strategy Analyzer," allowing traders to adapt the Volume-Drift model to the specific volatility profile of any asset class (Crypto, Forex, or Indices) instantly without leaving the chart.
⚠ Disclaimer
Swift Algo X is a quantitative analysis tool designed for educational purposes. The "Best Settings" are derived from historical data and do not guarantee future performance. Traders should always apply independent risk management.
Multi Condition Stock Screener & Alert SystemMulti Condition Stock Screener & Strategy Builder
This script is a comprehensive Stock Screener and Strategy Builder designed to scan predefined groups of stocks (specifically focused on BIST/Istanbul Stock Exchange symbols) or a custom list of symbols based on user-defined technical conditions.
It allows users to combine multiple technical indicators to create complex entry or exit conditions without writing code. The script iterates through a list of symbols and triggers alerts when the conditions are met.
Key Features
• Custom Strategy Building: Users can define up to 6 separate conditions. • Logical Operators: Conditions can be linked using logical operators (AND / OR) to create flexible strategies. • Predefined Groups: Includes 14 groups of stocks (covering BIST symbols) for quick scanning. • Custom Scanner: Users can select the "SPECIAL" group to manually input up to 40 custom symbols to scan. • Directional Scanning: Capable of scanning for both Buy/Long and Sell/Short signals. • Alert Integration: Generates JSON-formatted alert messages suitable for webhook integrations (e.g., sending notifications to Telegram bots).
Supported Indicators for Conditions
The script utilizes built-in ta.* functions to calculate the following indicators:
• MA (Moving Average): Supports EMA, SMA, RMA, and WMA. • RSI (Relative Strength Index) • CCI (Commodity Channel Index) • ATR (Average True Range) • BBW (Bollinger Bands Width) • ADX (Average Directional Index) • MFI (Money Flow Index) • MOM (Momentum)
How it Works
The script uses request.security() to fetch data for the selected group of symbols based on the current timeframe. It evaluates the user-defined logic (Condition 1 to 6) for each symbol.
• Comparison Logic: You can compare an indicator against a value (e.g., RSI > 50 ) or against another indicator (e.g., MA1 CrossOver MA2 ). • Signal Generation: If the logical result is TRUE based on the "AND/OR" settings, a visual label is plotted on the chart, and an alert condition is triggered.
Alert Configuration
The script produces a JSON output containing the Ticker, Signal Type, Period, and Price. This is optimized for users who want to parse alerts programmatically or send them to external messaging apps via webhooks.
Disclaimer This tool is for informational purposes only and does not constitute financial advice. Since it uses request.security across multiple symbols, please allow time for the script to load data on the chart.
QuantMotions - TPR Sentinel LineTPR Sentinel Line is an advanced adaptive Support/Resistance system that combines multi-layered trend analysis with a directional Time-Price Ratio (TPR) engine. The indicator dynamically builds a stabilized support or resistance line that adjusts to market volatility, trend strength, ATR expansion and contraction, and real-time slope changes.
This creates a high-precision, self-adjusting trend barrier that acts as support in uptrends, resistance in downtrends, and a neutral anchor during sideways phases.
Key Features
✔ Adaptive Trend Base
- A composite trend model blending:
- Kijun-style midpoint
- Donchian midline
- SMA & EMA smoothing
This creates a stable baseline that reacts smoothly but reliably to structural trend shifts.
✔ Directional TPR Calculation
The indicator measures slope across short, medium, and long trend windows, normalizes it with ATR, and determines:
- Trend direction
- Trend strength
- Momentum quality
✔ Dynamic Support/Resistance Line
Depending on trend direction:
- In uptrends → the line becomes adaptive support
- In downtrends → the line becomes adaptive resistance
- In neutral phases → the line centers around the smoothed trend base
A built-in lag factor prevents unrealistic jumps and keeps the level stable.
✔ Automatic Support/Resistance Zones
The indicator expands the main line into upper and lower zones based on ATR and trend strength, creating a dynamic volatility envelope around the trend structure.
✔ Signals & Alerts
- Support bounce
- Resistance rejection
- Breakouts above/below the dynamic line
These events help identify high-probability continuation or reversal moments.
✔ Information Panel
A real-time status table displays:
- Trend direction
- Trend strength
- Current S/R level
🎯 Ideal For
- Precision entries on pullbacks
- Detecting trend shifts earlier
- Identifying strong or weak trend phases
- Adaptive take-profit and stop-loss zones
- Filtering false breakouts
💡 Summary
TPR Sentinel Line gives you a living, breathing support/resistance structure that evolves with the market.
Instead of relying on static levels, you get a continuously adapting trend barrier that reflects real strength, real volatility, and real momentum.
A powerful tool for traders who want structure, clarity, and trend confidence.
Adaptive ATR% Grid + SuperTrend + OrderFlipDescription:
This indicator combines multiple technical analysis tools to identify key price levels and trading signals:
ATR% Grid – automatic plotting of support and resistance levels based on current price and volatility (ATR). Useful for identifying potential targets and entry/exit zones.
SuperTrend – a classic trend indicator with an adaptive ATR multiplier that adjusts based on average volatility.
OrderFlip – identifies price reversal points relative to a moving average with ATR-based sensitivity, optionally filtered by OBV and DMI.
MTF Confirmation – multi-timeframe trend verification using EMA to reduce false signals.
Signal Labels – "LONG" and "SHORT" labels appear on the chart with an offset from the price for better visibility.
JSON Alerts – ready-to-use format for automated alerts, including price, SuperTrend direction, Fair Zone, and ATR%.
Features:
Fully compatible with Pine Script v6
Lines and signals are fixed on the chart, do not shift with new bars
Configurable grid, ATR, SuperTrend, and filter parameters
Works with MTF analysis and classic indicators (OBV/DMI)
Usage:
Best used with additional indicators and risk management strategies. ATR% Grid is ideal for both positional trading and intraday setups.
перевод на русский
Описание:
Этот индикатор объединяет несколько методов технического анализа для выявления ключевых уровней цены и сигналов на покупку/продажу:
Сетка ATR% (ATR% Grid) – автоматическое построение уровней поддержки и сопротивления на основе текущей цены и волатильности (ATR). Позволяет видеть потенциальные цели и зоны входа/выхода.
SuperTrend – классический трендовый индикатор с адаптивным множителем ATR, который корректируется на основе средней волатильности.
OrderFlip – определение моментов разворота цены относительно скользящей средней с учетом ATR, с возможностью фильтрации по OBV и DMI.
MTF-подтверждение – проверка направления тренда на нескольких таймфреймах с помощью EMA, чтобы снизить ложные сигналы.
Сигнальные метки – на графике появляются "LONG" и "SHORT" с отступом от цены для наглядности.
JSON Alerts – готовый формат для автоматических уведомлений, включающий цену, направление SuperTrend, Fair Zone и ATR%.
Особенности:
Поддержка Pine Script v6
Линии и сигналы закреплены на графике, не двигаются при обновлении свечей
Настраиваемые параметры сетки, ATR, SuperTrend и фильтров
Совместимость с MTF-анализом и классическими индикаторами OBV/DMI
Рекомендации:
Используйте в сочетании с другими индикаторами и стратегиями управления риском. Сетка ATR% отлично подходит для позиционной торговли и интрадей.
ATR% Grid – automatic plotting of support and resistance levels based on current price and volatility (ATR). Useful for identifying potential targets and entry/exit zones.
SuperTrend – a classic trend indicator with an adaptive ATR multiplier that adjusts based on average volatility.
BSSSv2BSSSv2 is a market-structure-based tool designed to highlight potential liquidity zones and liquidity voids on the chart. It detects recurring pivot-based price levels using a custom zigzag structure and marks buyside and sellside liquidity areas with dynamic boxes and lines. The script also tracks breaches of these zones and visually updates levels as new structure forms. Optional liquidity-void visualization is included for users who want to study displacement or imbalance behavior.
This tool is intended for chart analysis and helps traders observe how price interacts with liquidity-related areas. It does not provide trade signals or recommendations.
EGGY SIGNALEGGY SIGNAL is a custom trading system designed to eliminate market noise and provide clean, high-probability entry signals. Unlike standard indicators that often give conflicting information, this script uses a Triple Confirmation Algorithm that works in the background.
The script combines three essential market elements:
Trend Filter: Determines the overall market direction to prevent counter-trend trading.
Momentum Detector: Identifies the speed of price movement.
Strength Validator: Confirms the power of the current candle.
How it Works: This indicator utilizes a "Clean Chart" philosophy. You will not see messy lines or clouds.
BUY Signal: Appears only when the Trend is Bullish, Momentum is shifting upwards, and Market Strength is confirmed.
SELL Signal: Appears only when the Trend is Bearish, Momentum is shifting downwards, and Market Strength is confirmed.
Features:
No Repaint: Signals are permanent once the candle closes.
False Signal Filtering: The algorithm automatically filters out signals during choppy/sideways markets.
Proprietary Settings: The input parameters are hardcoded and optimized for specific market conditions to ensure strategy integrity.
How to Use: Simply wait for the "BUY" or "SELL" label to appear. If no label is present, the market is considered neutral or too risky for entry.
Adaptive MACD PROAdaptive MACD PRO
Highlights structural momentum changes using dynamic normalization of MACD and Signal.
Phase Momentum Core
Adds directional confirmation based on short-term phase behavior.
Visual Output
• MACD & Signal lines with trend-based coloring
• Adaptive histogram reflecting momentum strength
• Fixed-position Buy/Sell dots at predefined levels
• AutoCalib dots on MACD_z threshold crossings
• Optional HUD panel displaying calibration levels and MACD_z
Features
• Selectable MA types (EMA, SMA, KAMA)
• Z-score normalization
• ATR-based volatility weighting
• Higher timeframe alignment
• Auto-calibration with SAFE / AGGRESSIVE modes
• Unified long/short triggers
• Full bar-coloring control
• Works on all assets and timeframes
The full source code is visible and may be modified or extended.
This script is intended for technical analysis and research only.
This indicator is published as a free, open-source script with full visible code.
MRC Supply & Demand Zones by rnd🚀 MRC Supply & Demand Zones: Professional Reversal & Liquidity Detection
MRC Supply & Demand Zones is a premium hybrid trading tool combining two of the most powerful concepts in technical analysis: Mean Reversion and Volume Profile.
This indicator doesn’t just show arrows — it provides deep market context by defining dynamic volatility channels and hidden supply & demand zones based on real volume data from lower timeframes.
🔥 Key Features
1. MRC (Mean Reversion Channel)
At the core lies the SuperSmoother MA (SSMA) — a next-generation moving average that eliminates market noise significantly more effectively than standard SMAs or EMAs, while maintaining minimal lag.
Logic: Price always tends to return to its mean. The indicator constructs dynamic channels (Inner and Outer) around the SSMA based on volatility (True Range).
Signals:
Long (Buy): Price extends beyond the lower outer boundary (oversold) and closes back above it.
Short (Sell): Price extends beyond the upper outer boundary (overbought) and closes back below it.
2. Supply & Demand Zones
This is not just drawing levels based on simple highs and lows. The indicator utilizes Lower Timeframe (LTF) Data to construct a detailed volume profile inside the candles.
How it works: The algorithm scans history, identifies volume imbalances, and highlights zones where major players have shown significant interest.
Visualization: Automatically draws red (Supply) and blue (Demand) rectangles that act as price magnets and strong support/resistance levels.
⚙️ Settings Guide
🔹 Block: MRC Settings (Channel Settings)
Control signal sensitivity and channel width here.
Min Range %:
What: Sets the minimum channel width as a percentage of the current price.
Why: Prevents the channel from squeezing into a "thin line" during flat markets, filtering out false signals during low volatility.
Outer Multiplier:
Default: 1.9
Role: Defines the boundaries for "extreme" overbought/oversold conditions. Higher values result in fewer, but more accurate entry signals.
Inner Multiplier:
Default: 1.0
Role: Defines the boundaries of "normal" price oscillation. Often used as the first target for taking profits (Take Profit).
SSMA Length:
Default: 200
Role: The period of the main trend line. 200 is ideal for defining the long-term trend and the global "center" of price.
Source:
Default: hlc3 (High+Low+Close / 3).
Role: The price data used for calculations.
🔹 Block: Supply & Demand Zones
Controls the liquidity search algorithm.
Supply & Demand Zones (On/Off): Toggle the display of the rectangular zones.
Threshold %: Defines how "significant" the volume must be. Adjusts the filtering of weak zones.
Supply/Demand Zones Color: Select the color and opacity for seller and buyer zones.
Profile Lookback Range:
Fixed Range: Analyzes a fixed number of recent bars.
Visible Range: Analyzes only the bars currently visible on the screen.
Lookback Length: The depth of history (number of bars) for volume analysis (works in Fixed Range mode).
Profile Number of Rows: Profile resolution. Higher numbers result in more detailed and narrower zones.
🔔 Alert System
You will never miss an entry. The indicator includes built-in conditions for creating alerts:
Long Signal: Triggers on a green triangle (upward reversal from the lower boundary).
Short Signal: Triggers on a red triangle (downward reversal from the upper boundary).
💡 Why use this indicator?
This is a ready-made "all-in-one" trading strategy. You get the trend (SSMA), volatility (MRC), and liquidity levels (S&D) in one compact script. It is perfect for scalping and day trading on any asset (Crypto, Forex, Stocks).
QLC - Gibaum 1.0 QLC - Gibaum 1.0
Good for Leverage AND Short - 5 to 20 minutes >70%.
Gibaum The Beast
Little Black Guy suffers in america
Kernel Market Dynamics [WFO - MAB]Kernel Market Dynamics
⚛️ CORE INNOVATION: KERNEL-BASED DISTRIBUTION ANALYSIS
The Kernel Market Dynamics system represents a fundamental departure from traditional technical indicators. Rather than measuring price levels, momentum, or oscillator extremes, KMD analyzes the statistical distribution of market returns using advanced kernel methods from machine learning theory. This allows the system to detect when market behavior has fundamentally changed—not just when price has moved, but when the underlying probability structure has shifted.
The Distribution Hypothesis:
Traditional indicators assume markets move in predictable patterns. KMD assumes something more profound: markets exist in distinct distributional regimes , and profitable trading opportunities emerge during regime transitions . When the distribution of recent returns diverges significantly from the historical baseline, the market is restructuring—and that's when edge exists.
Maximum Mean Discrepancy (MMD):
At the heart of KMD lies a sophisticated statistical metric called Maximum Mean Discrepancy. MMD measures the distance between two probability distributions by comparing their representations in a high-dimensional feature space created by a kernel function.
The Mathematics:
Given two sets of normalized returns:
• Reference period (X) : Historical baseline (default 100 bars)
• Test period (Y) : Recent behavior (default 20 bars)
MMD is calculated as:
MMD² = E + E - 2·E
Where:
• E = Expected kernel similarity within reference period
• E = Expected kernel similarity within test period
• E = Expected cross-similarity between periods
When MMD is low : Test period behaves like reference (stable regime)
When MMD is high : Test period diverges from reference (regime shift)
The final MMD value is smoothed with EMA(5) to reduce single-bar noise while maintaining responsiveness to genuine distribution changes.
The Kernel Functions:
The kernel function defines how similarity is measured. KMD offers four mathematically distinct kernels, each with different properties:
1. RBF (Radial Basis Function / Gaussian):
• Formula: k(x,y) = exp(-d² / (2·σ²·scale))
• Properties: Most sensitive to distribution changes, smooth decision boundaries
• Best for: Clean data, clear regime shifts, low-noise markets
• Sensitivity: Highest - detects subtle changes
• Use case: Stock indices, major forex pairs, trending environments
2. Laplacian:
• Formula: k(x,y) = exp(-|d| / σ)
• Properties: Medium sensitivity, robust to moderate outliers
• Best for: Standard market conditions, balanced noise/signal
• Sensitivity: Medium - filters minor fluctuations
• Use case: Commodities, standard timeframes, general trading
3. Cauchy (Default - Most Robust):
• Formula: k(x,y) = 1 / (1 + d²/σ²)
• Properties: Heavy-tailed, highly robust to outliers and spikes
• Best for: Noisy markets, choppy conditions, crypto volatility
• Sensitivity: Lower - only major distribution shifts trigger
• Use case: Cryptocurrencies, illiquid markets, volatile instruments
4. Rational Quadratic:
• Formula: k(x,y) = (1 + d²/(2·α·σ²))^(-α)
• Properties: Tunable via alpha parameter, mixture of RBF kernels
• Alpha < 1.0: Heavy tails (like Cauchy)
• Alpha > 3.0: Light tails (like RBF)
• Best for: Adaptive use, mixed market conditions
• Use case: Experimental optimization, regime-specific tuning
Bandwidth (σ) Parameter:
The bandwidth controls the "width" of the kernel, determining sensitivity to return differences:
• Low bandwidth (0.5-1.5) : Narrow kernel, very sensitive
- Treats small differences as significant
- More MMD spikes, more signals
- Use for: Scalping, fast markets
• Medium bandwidth (1.5-3.0) : Balanced sensitivity (recommended)
- Filters noise while catching real shifts
- Professional-grade signal quality
- Use for: Day/swing trading
• High bandwidth (3.0-10.0) : Wide kernel, less sensitive
- Only major distribution changes register
- Fewer, stronger signals
- Use for: Position trading, trend following
Adaptive Bandwidth:
When enabled (default ON), bandwidth automatically scales with market volatility:
Effective_BW = Base_BW × max(0.5, min(2.0, 1 / volatility_ratio))
• Low volatility → Tighter bandwidth (0.5× base) → More sensitive
• High volatility → Wider bandwidth (2.0× base) → Less sensitive
This prevents signal flooding during wild markets and avoids signal drought during calm periods.
Why Kernels Work:
Kernel methods implicitly map data to infinite-dimensional space where complex, nonlinear patterns become linearly separable. This allows MMD to detect distribution changes that simpler statistics (mean, variance) would miss. For example:
• Same mean, different shape : Traditional metrics see nothing, MMD detects shift
• Same volatility, different skew : Oscillators miss it, MMD catches it
• Regime rotation : Price unchanged, but return distribution restructured
The kernel captures the entire distributional signature —not just first and second moments.
🎰 MULTI-ARMED BANDIT FRAMEWORK: ADAPTIVE STRATEGY SELECTION
Rather than forcing one strategy on all market conditions, KMD implements a Multi-Armed Bandit (MAB) system that learns which of seven distinct strategies performs best and dynamically selects the optimal approach in real-time.
The Seven Arms (Strategies):
Each arm represents a fundamentally different trading logic:
ARM 0 - MMD Regime Shift:
• Logic: Distribution divergence with directional bias
• Triggers: MMD > threshold AND direction_bias confirmed AND velocity > 5%
• Philosophy: Trade the regime transition itself
• Best in: Volatile shifts, breakout moments, crisis periods
• Weakness: False alarms in choppy consolidation
ARM 1 - Trend Following:
• Logic: Aligned EMAs with strong ADX
• Triggers: EMA(9) > EMA(21) > EMA(50) AND ADX > 25
• Philosophy: Ride established momentum
• Best in: Strong trending regimes, directional markets
• Weakness: Late entries, whipsaws at reversals
ARM 2 - Breakout:
• Logic: Bollinger Band breakouts with volume
• Triggers: Price crosses BB outer band AND volume > 1.2× average
• Philosophy: Capture volatility expansion events
• Best in: Range breakouts, earnings, news events
• Weakness: False breakouts in ranging markets
ARM 3 - RSI Mean Reversion:
• Logic: RSI extremes with reversal confirmation
• Triggers: RSI < 30 with uptick OR RSI > 70 with downtick
• Philosophy: Fade overbought/oversold extremes
• Best in: Ranging markets, mean-reverting instruments
• Weakness: Fails in strong trends, catches falling knives
ARM 4 - Z-Score Statistical Reversion:
• Logic: Price deviation from 50-period mean
• Triggers: Z-score < -2 (oversold) OR > +2 (overbought) with reversal
• Philosophy: Statistical bounds reversion
• Best in: Stable volatility regimes, pairs trading
• Weakness: Trend continuation through extremes
ARM 5 - ADX Momentum:
• Logic: Strong directional movement with acceleration
• Triggers: ADX > 30 with DI+ or DI- strengthening
• Philosophy: Momentum begets momentum
• Best in: Trending with increasing velocity
• Weakness: Late exits, momentum exhaustion
ARM 6 - Volume Confirmation:
• Logic: OBV trend + volume spike + candle direction
• Triggers: OBV > EMA(20) AND volume > average AND bullish candle
• Philosophy: Follow institutional money flow
• Best in: Liquid markets with reliable volume
• Weakness: Manipulated volume, thin markets
Q-Learning with Rewards:
Each arm maintains a Q-value representing its expected reward. After every bar, the system calculates a reward based on the arm's signal and actual price movement:
Reward Calculation:
If arm signaled LONG:
reward = (close - close ) / close
If arm signaled SHORT:
reward = -(close - close ) / close
If arm signaled NEUTRAL:
reward = 0
Penalty multiplier: If loss > 0.5%, reward × 1.3 (punish big losses harder)
Q-Value Update (Exponential Moving Average):
Q_new = Q_old + α × (reward - Q_old)
Where α (learning rate, default 0.08) controls adaptation speed:
• Low α (0.01-0.05): Slow, stable learning
• Medium α (0.06-0.12): Balanced (recommended)
• High α (0.15-0.30): Fast, reactive learning
This gradually shifts Q-values toward arms that generate positive returns and away from losing arms.
Arm Selection Algorithms:
KMD offers four mathematically distinct selection strategies:
1. UCB1 (Upper Confidence Bound) - Recommended:
Formula: Select arm with max(Q_i + c·√(ln(t)/n_i))
Where:
• Q_i = Q-value of arm i
• c = exploration constant (default 1.5)
• t = total pulls across all arms
• n_i = pulls of arm i
Philosophy: Balance exploitation (use best arm) with exploration (try uncertain arms). The √(ln(t)/n_i) term creates an "exploration bonus" that decreases as an arm gets more pulls, ensuring all arms get sufficient testing.
Theoretical guarantee: Logarithmic regret bound - UCB1 provably converges to optimal arm selection over time.
2. UCB1-Tuned (Variance-Aware UCB):
Formula: Select arm with max(Q_i + √(ln(t)/n_i × min(0.25, V_i + √(2·ln(t)/n_i))))
Where V_i = variance of rewards for arm i
Philosophy: Incorporates reward variance into exploration. Arms with high variance (unpredictable) get less exploration bonus, focusing effort on stable performers.
Better bounds than UCB1 in practice, slightly more conservative exploration.
3. Epsilon-Greedy (Simple Random):
Algorithm:
With probability ε: Select random arm (explore)
With probability 1-ε: Select highest Q-value arm (exploit)
Default ε = 0.10 (10% exploration, 90% exploitation)
Philosophy: Simplest algorithm, easy to understand. Random exploration ensures all arms stay updated but may waste time on clearly bad arms.
4. Thompson Sampling (Bayesian):
The most sophisticated selection algorithm, using true Bayesian probability.
Each arm maintains Beta distribution parameters:
• α (alpha) = successes + 1
• β (beta) = failures + 1
Selection Process:
1. Sample θ_i ~ Beta(α_i, β_i) for each arm using Marsaglia-Tsang Gamma sampler
2. Select arm with highest sample: argmax_i(θ_i)
3. After reward, update:
- If reward > 0: α += |reward| × 100 (increment successes)
- If reward < 0: β += |reward| × 100 (increment failures)
Why Thompson Sampling Works:
The Beta distribution naturally represents uncertainty about an arm's true win rate. Early on with few trials, the distribution is wide (high uncertainty), leading to more exploration. As evidence accumulates, it narrows around the true performance, naturally shifting toward exploitation.
Unlike UCB which uses deterministic confidence bounds, Thompson Sampling is probabilistic—it samples from the posterior distribution of each arm's success rate, providing automatic exploration/exploitation balance without tuning.
Comparison:
• UCB1: Deterministic, guaranteed regret bounds, requires tuning exploration constant
• Thompson: Probabilistic, natural exploration, no tuning required, best empirical performance
• Epsilon-Greedy: Simplest, consistent exploration %, less efficient
• UCB1-Tuned: UCB1 + variance awareness, best for risk-averse
Exploration Constant (c):
For UCB algorithms, this multiplies the exploration bonus:
• Low c (0.5-1.0): Strongly prefer proven arms, rare exploration
• Medium c (1.2-1.8): Balanced (default 1.5)
• High c (2.0-3.0): Frequent exploration, diverse arm usage
Higher exploration constant in volatile/unstable markets, lower in stable trending environments.
🔬 WALK-FORWARD OPTIMIZATION: PREVENTING OVERFITTING
The single biggest problem in algorithmic trading is overfitting—strategies that look amazing in backtest but fail in live trading because they learned noise instead of signal. KMD's Walk-Forward Optimization system addresses this head-on.
How WFO Works:
The system divides time into repeating cycles:
1. Training Window (default 500 bars): Learn arm Q-values on historical data
2. Testing Window (default 100 bars): Validate on unseen "future" data
Training Phase:
• All arms accumulate rewards and update Q-values normally
• Q_train tracks in-sample performance
• System learns which arms work on historical data
Testing Phase:
• System continues using arms but tracks separate Q_test metrics
• Counts trades per arm (N_test)
• Testing performance is "out-of-sample" relative to training
Validation Requirements:
An arm is only "validated" (approved for live use) if:
1. N_test ≥ Minimum Trades (default 10): Sufficient statistical sample
2. Q_test > 0 : Positive out-of-sample performance
Arms that fail validation are blocked from generating signals, preventing the system from trading strategies that only worked on historical data.
Performance Decay:
At the end of each WFO cycle, all Q-values decay exponentially:
Q_new = Q_old × decay_rate (default 0.95)
This ensures old performance doesn't dominate forever. An arm that worked 10 cycles ago but fails recently will eventually lose influence.
Decay Math:
• 0.95 decay after 10 periods → 0.95^10 = 0.60 (40% forgotten)
• 0.90 decay after 10 periods → 0.90^10 = 0.35 (65% forgotten)
Fast decay (0.80-0.90): Quick adaptation, forgets old patterns rapidly
Slow decay (0.96-0.99): Stable, retains historical knowledge longer
WFO Efficiency Metric:
The key metric revealing overfitting:
Efficiency = (Q_test / Q_train) for each validated arm, averaged
• Efficiency > 0.8 : Excellent - strategies generalize well (LOW overfit risk)
• Efficiency 0.5-0.8 : Acceptable - moderate generalization (MODERATE risk)
• Efficiency < 0.5 : Poor - strategies curve-fitted to history (HIGH risk)
If efficiency is low, the system has learned noise. Training performance was good but testing (forward) performance is weak—classic overfitting.
The dashboard displays real-time WFO efficiency, allowing users to gauge system robustness. Low efficiency should trigger parameter review or reduced position sizing.
Why WFO Matters:
Consider two scenarios:
Scenario A - No WFO:
• Arm 3 (RSI Reversion) shows Q-value of 0.15 on all historical data
• System trades it aggressively
• Reality: It only worked during one specific ranging period
• Live trading: Fails because market has trended since backtest
Scenario B - With WFO:
• Arm 3 shows Q_train = 0.15 (good in training)
• But Q_test = -0.05 (loses in testing) with 12 test trades
• N_test ≥ 10 but Q_test < 0 → Arm BLOCKED
• System refuses to trade it despite good backtest
• Live trading: Protected from false strategy
WFO ensures only strategies that work going forward get used, not just strategies that fit the past.
Optimal Window Sizing:
Training Window:
• Too short (100-300): May learn recent noise, insufficient data
• Too long (1000-2000): May include obsolete market regimes
• Recommended: 4-6× testing window (default 500)
Testing Window:
• Too short (50-80): Insufficient validation, high variance
• Too long (300-500): Delayed adaptation to regime changes
• Recommended: 1/5 to 1/4 of training (default 100)
Minimum Trades:
• Too low (5-8): Statistical noise, lucky runs validate
• Too high (30-50): Many arms never validate, system rarely trades
• Recommended: 10-15 (default 10)
⚖️ WEIGHTED CONFLUENCE SYSTEM: MULTI-FACTOR SIGNAL QUALITY
Not all signals are created equal. KMD implements a sophisticated 100-point quality scoring system that combines eight independent factors with different importance weights.
The Scoring Framework:
Each potential signal receives a quality score from 0-100 by accumulating points from aligned factors:
CRITICAL FACTORS (20 points each):
1. Bandit Arm Alignment (20 points):
• Full points if selected arm's signal matches trade direction
• Zero points if arm disagrees
• Weight: Highest - the bandit selected this arm for a reason
2. MMD Regime Quality (20 points):
• Requires: MMD > dynamic threshold AND directional bias confirmed
• Scaled by MMD percentile (how extreme vs history)
• If MMD in top 10% of history: 100% of 20 points
• If MMD at 50th percentile: 50% of 20 points
• Weight: Highest - distribution shift is the core signal
HIGH IMPACT FACTORS (15 points each):
3. Trend Alignment (15 points):
• Full points if EMA(9) > EMA(21) > EMA(50) for longs (inverse for shorts)
• Scaled by ADX strength:
- ADX > 25: 100% (1.0× multiplier) - strong trend
- ADX 20-25: 70% (0.7× multiplier) - moderate trend
- ADX < 20: 40% (0.4× multiplier) - weak trend
• Weight: High - trend is friend, alignment increases probability
4. Volume Confirmation (15 points):
• Requires: OBV > EMA(OBV, 20) aligned with direction
• Scaled by volume ratio: vol_current / vol_average
- Volume 1.5×+ average: 100% of points (institutional participation)
- Volume 1.0-1.5× average: 67% of points (above average)
- Volume below average: 0 points (weak conviction)
• Weight: High - volume validates price moves
MODERATE FACTORS (10 points each):
5. Market Structure (10 points):
• Full points (10) if bullish structure (higher highs, higher lows) for longs
• Partial points (6) if near support level (within 1% of swing low)
• Similar logic inverted for bearish trades
• Weight: Moderate - structure context improves entries
6. RSI Positioning (10 points):
• For long signals:
- RSI < 50: 100% of points (1.0× multiplier) - room to run
- RSI 50-60: 60% of points (0.6× multiplier) - neutral
- RSI 60-70: 30% of points (0.3× multiplier) - elevated
- RSI > 70: 0 points (0× multiplier) - overbought
• Inverse for short signals
• Weight: Moderate - momentum context, not primary signal
BONUS FACTORS (10 points each):
7. Divergence (10 points):
• Full 10 points if bullish divergence detected for long (or bearish for short)
• Zero points otherwise
• Weight: Bonus - leading indicator, adds confidence when present
8. Multi-Timeframe Confirmation (10 points):
• Full 10 points if higher timeframe aligned (HTF EMA trending same direction, RSI supportive)
• Zero points if MTF disabled or HTF opposes
• Weight: Bonus - macro context filter, prevents counter-trend disasters
Total Maximum: 110 points (20+20+15+15+10+10+10+10)
Signal Quality Calculation:
Quality Score = (Accumulated_Points / Maximum_Possible) × 100
Where Maximum_Possible = 110 points if all factors active, adjusts if MTF disabled.
Example Calculation:
Long signal candidate:
• Bandit Arm: +20 (arm signals long)
• MMD Quality: +16 (MMD high, 80th percentile)
• Trend: +11 (EMAs aligned, ADX = 22 → 70% × 15)
• Volume: +10 (OBV rising, vol 1.3× avg → 67% × 15 = 10)
• Structure: +10 (higher lows forming)
• RSI: +6 (RSI = 55 → 60% × 10)
• Divergence: +0 (none present)
• MTF: +10 (HTF bullish)
Total: 83 / 110 × 100 = 75.5% quality score
This is an excellent quality signal - well above threshold (default 60%).
Quality Thresholds:
• Score 80-100 : Exceptional setup - all factors aligned
• Score 60-80 : High quality - most factors supportive (default minimum)
• Score 40-60 : Moderate - mixed confluence, proceed with caution
• Score 20-40 : Weak - minimal support, likely filtered out
• Score 0-20 : Very weak - almost certainly blocked
The minimum quality threshold (default 60) is the gatekeeper. Only signals scoring above this value can trigger trades.
Dynamic Threshold Adjustment:
The system optionally adjusts the threshold based on historical signal distribution:
If Dynamic Threshold enabled:
Recent_MMD_Mean = SMA(MMD, 50)
Recent_MMD_StdDev = StdDev(MMD, 50)
Dynamic_Threshold = max(Base_Threshold × 0.5,
min(Base_Threshold × 2.0,
MMD_Mean + MMD_StdDev × 0.5))
This auto-calibrates to market conditions:
• Quiet markets (low MMD): Threshold loosens (0.5× base)
• Active markets (high MMD): Threshold tightens (2× base)
Signal Ranking Filter:
When enabled, the system tracks the last 100 signal quality scores and only fires signals in the top percentile.
If Ranking Percentile = 75%:
• Collect last 100 signal scores in memory
• Sort ascending
• Threshold = Score at 75th percentile position
• Only signals ≥ this threshold fire
This ensures you're only taking the cream of the crop —top 25% of signals by quality, not every signal that technically qualifies.
🚦 SIGNAL GENERATION: TRANSITION LOGIC & COOLDOWNS
The confluence system determines if a signal qualifies , but the signal generation logic controls when triangles appear on the chart.
Core Qualification:
For a LONG signal to qualify:
1. Bull quality score ≥ signal threshold (default 60)
2. Selected arm signals +1 (long)
3. Cooldown satisfied (bars since last signal ≥ cooldown period)
4. Drawdown protection OK (current drawdown < pause threshold)
5. MMD ≥ 80% of dynamic threshold (slight buffer below full threshold)
For a SHORT signal to qualify:
1. Bear quality score ≥ signal threshold
2. Selected arm signals -1 (short)
3-5. Same as long
But qualification alone doesn't trigger a chart signal.
Three Signal Modes:
1. RESPONSIVE (Default - Recommended):
Signals appear on:
• Fresh qualification (wasn't qualified last bar, now is)
• Direction reversal (was qualified short, now qualified long)
• Quality improvement (already qualified, quality jumps 25%+ during EXTREME regime)
This mode shows new opportunities and significant upgrades without cluttering the chart with repeat signals.
2. TRANSITION ONLY:
Signals appear on:
• Fresh qualification only
• Direction reversal only
This is the cleanest mode - signals only when first qualifying or when flipping direction. Misses re-entries if quality improves mid-regime.
3. CONTINUOUS:
Signals appear on:
• Every bar that qualifies
Testing/debugging mode - shows all qualified bars. Very noisy but useful for understanding when system wants to trade.
Cooldown System:
Prevents signal clustering and overtrading by enforcing minimum bars between signals.
Base Cooldown: User-defined (default 5 bars)
Adaptive Cooldown (Optional):
If enabled, cooldown scales with volatility:
Effective_Cooldown = Base_Cooldown × volatility_multiplier
Where:
ATR_Pct = ATR(14) / Close × 100
Volatility_Multiplier = max(0.5, min(3.0, ATR_Pct / 2.0))
• Low volatility (ATR 1%): Multiplier ~0.5× → Cooldown = 2-3 bars (tight)
• Medium volatility (ATR 2%): Multiplier 1.0× → Cooldown = 5 bars (normal)
• High volatility (ATR 4%+): Multiplier 2.0-3.0× → Cooldown = 10-15 bars (wide)
This prevents excessive trading during wild swings while allowing more signals during calm periods.
Regime Filter:
Three modes controlling which regimes allow trading:
OFF: Trade in any regime (STABLE, TRENDING, SHIFTING, ELEVATED, EXTREME)
SMART (Recommended):
• Regime score = 1.0 for SHIFTING, ELEVATED (optimal)
• Regime score = 0.8 for TRENDING (acceptable)
• Regime score = 0.5 for EXTREME (too chaotic)
• Regime score = 0.2 for STABLE (too quiet)
Quality scores are multiplied by regime score. A 70% quality signal in STABLE regime becomes 70% × 0.2 = 14% → blocked.
STRICT:
• Regime score = 1.0 for SHIFTING, ELEVATED only
• Regime score = 0.0 for all others → hard block
Only trades during optimal distribution shift regimes.
Drawdown Protection:
If current equity drawdown exceeds pause threshold (default 8%), all signals are blocked until equity recovers.
This circuit breaker prevents compounding losses during adverse conditions or broken market structure.
🎯 RISK MANAGEMENT: ATR-BASED STOPS & TARGETS
Every signal generates volatility-normalized stop loss and target levels displayed as boxes on the chart.
Stop Loss Calculation:
Stop_Distance = ATR(14) × ATR_Multiplier (default 1.5)
For LONG: Stop = Entry - Stop_Distance
For SHORT: Stop = Entry + Stop_Distance
The stop is placed 1.5 ATRs away from entry by default, adapting automatically to instrument volatility.
Target Calculation:
Target_Distance = Stop_Distance × Risk_Reward_Ratio (default 2.0)
For LONG: Target = Entry + Target_Distance
For SHORT: Target = Entry - Target_Distance
Default 2:1 risk/reward means target is twice as far as stop.
Example:
• Price: $100
• ATR: $2
• ATR Multiplier: 1.5
• Risk/Reward: 2.0
LONG Signal:
• Entry: $100
• Stop: $100 - ($2 × 1.5) = $97.00 (-$3 risk)
• Target: $100 + ($3 × 2.0) = $106.00 (+$6 reward)
• Risk/Reward: $3 risk for $6 reward = 1:2 ratio
Target/Stop Box Lifecycle:
Boxes persist for a lifetime (default 20 bars) OR until an opposite signal fires, whichever comes first. This provides visual reference for active trade levels without permanent chart clutter.
When a new opposite-direction signal appears, all existing boxes from the previous direction are immediately deleted, ensuring only relevant levels remain visible.
Adaptive Stop/Target Sizing:
While not explicitly coded in the current version, the shadow portfolio tracking system calculates PnL based on these levels. Users can observe which ATR multipliers and risk/reward ratios produce optimal results for their instrument/timeframe via the dashboard performance metrics.
📊 COMPREHENSIVE VISUAL SYSTEM
KMD provides rich visual feedback through four distinct layers:
1. PROBABILITY CLOUD (Adaptive Volatility Bands):
Two sets of bands around price that expand/contract with MMD:
Calculation:
Std_Multiplier = 1 + MMD × 3
Upper_1σ = Close + ATR × Std_Multiplier × 0.5
Lower_1σ = Close - ATR × Std_Multiplier × 0.5
Upper_2σ = Close + ATR × Std_Multiplier
Lower_2σ = Close - ATR × Std_Multiplier
• Inner band (±0.5× adjusted ATR) : 68% probability zone (1 standard deviation equivalent)
• Outer band (±1.0× adjusted ATR) : 95% probability zone (2 standard deviation equivalent)
When MMD spikes, bands widen dramatically, showing increased uncertainty. When MMD calms, bands tighten, showing normal price action.
2. MOMENTUM FLOW VECTORS (Directional Arrows):
Dynamic arrows that visualize momentum strength and direction:
Arrow Properties:
• Length: Proportional to momentum magnitude (2-10 bars forward)
• Width: 1px (weak), 2px (medium), 3px (strong)
• Transparency: 30-100 (more opaque = stronger momentum)
• Direction: Up for bullish, down for bearish
• Placement: Below bars (bulls) or above bars (bears)
Trigger Logic:
• Always appears every 5 bars (regular sampling)
• Forced appearance if momentum strength > 50 OR regime shift OR MMD velocity > 10%
Strong momentum (>75%) gets:
• Secondary support arrow (70% length, lighter color)
• Label showing "75%" strength
Very strong momentum (>60%) gets:
• Gradient flow lines (thick vertical lines showing momentum vector)
This creates a dynamic "flow field" showing where market pressure is pushing price.
3. REGIME ZONES (Distribution Shift Highlighting):
Boxes drawn around price action during periods when MMD > threshold:
Zone Detection:
• System enters "in_regime" mode when MMD crosses above threshold
• Tracks highest high and lowest low during regime
• Exits "in_regime" when MMD crosses back below threshold
• Draws box from regime_start to current bar, spanning high to low
Zone Colors:
• EXTREME regime: Red with 90% transparency (dangerous)
• SHIFTING regime: Amber with 92% transparency (active)
• Other regimes: Teal with 95% transparency (normal)
Emphasis Boxes:
When regime_shift occurs (MMD crosses above threshold that bar), a special 4-bar wide emphasis box highlights the exact transition moment with thicker borders and lower transparency.
This visual immediately shows "the market just changed" moments.
4. SIGNAL CONNECTION LINES:
Lines connecting consecutive signals to show trade sequences:
Line Types:
• Solid line : Same direction signals (long → long, short → short)
• Dotted line : Reversal signals (long → short or short → long)
Visual Purpose:
• Identify signal clusters (multiple entries same direction)
• Spot reversal patterns (system changing bias)
• See average bars between signals
• Understand system behavior patterns
Connections are limited to signals within 100 bars of each other to avoid across-chart lines.
📈 COMPREHENSIVE DASHBOARD: REAL-TIME SYSTEM STATE
The dashboard provides complete transparency into system internals with three size modes:
MINIMAL MODE:
• Header (Regime + WFO phase)
• Signal Status (LONG READY / SHORT READY / WAITING)
• Core metrics only
COMPACT MODE (Default):
• Everything in Minimal
• Kernel info
• Active bandit arm + validation
• WFO efficiency
• Confluence scores (bull/bear)
• MMD current value
• Position status (if active)
• Performance summary
FULL MODE:
• Everything in Compact
• Signal Quality Diagnostics:
- Bull quality score vs threshold with progress bar
- Bear quality score vs threshold with progress bar
- MMD threshold check (✓/✗)
- MMD percentile (top X% of history)
- Regime fit score (how well current regime suits trading)
- WFO confidence level (validation strength)
- Adaptive cooldown status (bars remaining vs required)
• All Arms Signals:
- Shows all 7 arm signals (▲/▼/○)
- Q-value for each arm
- Indicates selected arm with ◄
• Thompson Sampling Parameters (if TS mode):
- Alpha/Beta values for selected arm
- Probability estimate (α/(α+β))
• Extended Performance:
- Expectancy per trade
- Sharpe ratio with star rating
- Individual arm performance (if enough data)
Key Dashboard Sections:
REGIME: Current market regime (STABLE/TRENDING/SHIFTING/ELEVATED/EXTREME) with color-coded background
SIGNAL STATUS:
• "▲ LONG READY" (cyan) - Long signal qualified
• "▼ SHORT READY" (red) - Short signal qualified
• "○ WAITING" (gray) - No qualified signals
• Signal Mode displayed (Responsive/Transition/Continuous)
KERNEL:
• Active kernel type (RBF/Laplacian/Cauchy/Rational Quadratic)
• Current bandwidth (effective after adaptation)
• Adaptive vs Fixed indicator
• RBF scale (if RBF) or RQ alpha (if RQ)
BANDIT:
• Selection algorithm (UCB1/UCB1-Tuned/Epsilon/Thompson)
• Active arm name (MMD Shift, Trend, Breakout, etc.)
• Validation status (✓ if validated, ? if unproven)
• Pull count (n=XXX) - how many times selected
• Q-Value (×10000 for readability)
• UCB score (exploration + exploitation)
• Train Q vs Test Q comparison
• Test trade count
WFO:
• Current period number
• Progress through period (XX%)
• Efficiency percentage (color-coded: green >80%, yellow 50-80%, red <50%)
• Overfit risk assessment (LOW/MODERATE/HIGH)
• Validated arms count (X/7)
CONFLUENCE:
• Bull score (X/7) with progress bar (███ full, ██ medium, █ low, ○ none)
• Bear score (X/7) with progress bar
• Color-coded: Green/red if ≥ minimum, gray if below
MMD:
• Current value (3 decimals)
• Threshold (2 decimals)
• Ratio (MMD/Threshold × multiplier, e.g. "1.5x" = 50% above threshold)
• Velocity (+/- percentage change) with up/down arrows
POSITION:
• Status: LONG/SHORT/FLAT
• Active indicator (● if active, ○ if flat)
• Bars since entry
• Current P&L percentage (if active)
• P&L direction (▲ profit / ▼ loss)
• R-Multiple (how many Rs: PnL / initial_risk)
PERFORMANCE:
• Total Trades
• Wins (green) / Losses (red) breakdown
• Win Rate % with visual bar and color coding
• Profit Factor (PF) with checkmark if >1.0
• Expectancy % (average profit per trade)
• Sharpe Ratio with star rating (★★★ >2, ★★ >1, ★ >0, ○ negative)
• Max DD % (maximum drawdown) with "Now: X%" showing current drawdown
🔧 KEY PARAMETERS EXPLAINED
Kernel Configuration:
• Kernel Function : RBF / Laplacian / Cauchy / Rational Quadratic
- Start with Cauchy for stability, experiment with others
• Bandwidth (σ) (0.5-10.0, default 2.0): Kernel sensitivity
- Lower: More signals, more false positives (scalping: 0.8-1.5)
- Medium: Balanced (swing: 1.5-3.0)
- Higher: Fewer signals, stronger quality (position: 3.0-8.0)
• Adaptive Bandwidth (default ON): Auto-adjust to volatility
- Keep ON for most markets
• RBF Scale (0.1-2.0, default 0.5): RBF-specific scaling
- Only matters if RBF kernel selected
- Lower = more sensitive (0.3 for scalping)
- Higher = less sensitive (1.0+ for position)
• RQ Alpha (0.5-5.0, default 2.0): Rational Quadratic tail behavior
- Only matters if RQ kernel selected
- Low (0.5-1.0): Heavy tails, robust to outliers (like Cauchy)
- High (3.0-5.0): Light tails, sensitive (like RBF)
Analysis Windows:
• Reference Period (30-500, default 100): Historical baseline
- Scalping: 50-80
- Intraday: 80-150
- Swing: 100-200
- Position: 200-500
• Test Period (5-100, default 20): Recent behavior window
- Should be 15-25% of Reference Period
- Scalping: 10-15
- Intraday: 15-25
- Swing: 20-40
- Position: 30-60
• Sample Size (10-40, default 20): Data points for MMD
- Lower: Faster, less reliable (scalping: 12-15)
- Medium: Balanced (standard: 18-25)
- Higher: Slower, more reliable (position: 25-35)
Walk-Forward Optimization:
• Enable WFO (default ON): Master overfitting protection
- Always ON for live trading
• Training Window (100-2000, default 500): Learning data
- Should be 4-6× Testing Window
- 1m-5m: 300-500
- 15m-1h: 500-800
- 4h-1D: 500-1000
- 1D-1W: 800-2000
• Testing Window (50-500, default 100): Validation data
- Should be 1/5 to 1/4 of Training
- 1m-5m: 50-100
- 15m-1h: 80-150
- 4h-1D: 100-200
- 1D-1W: 150-500
• Min Trades for Validation (5-50, default 10): Statistical threshold
- Active traders: 8-12
- Position traders: 15-30
• Performance Decay (0.8-0.99, default 0.95): Old data forgetting
- Aggressive: 0.85-0.90 (volatile markets)
- Moderate: 0.92-0.96 (most use cases)
- Conservative: 0.97-0.99 (stable markets)
Multi-Armed Bandit:
• Learning Rate (α) (0.01-0.3, default 0.08): Adaptation speed
- Low: 0.01-0.05 (position trading, stable)
- Medium: 0.06-0.12 (day/swing trading)
- High: 0.15-0.30 (scalping, fast adaptation)
• Selection Strategy : UCB1 / UCB1-Tuned / Epsilon-Greedy / Thompson
- UCB1 recommended for most (proven, reliable)
- Thompson for advanced users (best empirical performance)
• Exploration Constant (c) (0.5-3.0, default 1.5): Explore vs exploit
- Low: 0.5-1.0 (conservative, proven strategies)
- Medium: 1.2-1.8 (balanced)
- High: 2.0-3.0 (experimental, volatile markets)
• Epsilon (0.0-0.3, default 0.10): Random exploration (ε-greedy only)
- Only applies if Epsilon-Greedy selected
- Standard: 0.10 (10% random)
Signal Configuration:
• MMD Threshold (0.05-1.0, default 0.15): Distribution divergence trigger
- Low: 0.08-0.12 (scalping, sensitive)
- Medium: 0.12-0.20 (day/swing)
- High: 0.25-0.50 (position, strong signals)
- Stocks/indices: 0.12-0.18
- Forex: 0.15-0.25
- Crypto: 0.20-0.35
• Confluence Filter (default ON): Multi-factor requirement
- Keep ON for quality signals
• Minimum Confluence (1-7, default 2): Factors needed
- Very low: 1 (high frequency)
- Low: 2-3 (active trading)
- Medium: 4-5 (swing)
- High: 6-7 (rare perfect setups)
• Cooldown (1-20, default 5): Bars between signals
- Short: 1-3 (scalping, allows rapid re-entry)
- Medium: 4-7 (day/swing)
- Long: 8-20 (position, ensures development)
• Signal Mode : Responsive / Transition Only / Continuous
- Responsive: Recommended (new + upgrades)
- Transition: Cleanest (first + reversals)
- Continuous: Testing (every qualified bar)
Advanced Signal Control:
• Minimum Signal Strength (30-90, default 60): Quality floor
- Lower: More signals (scalping: 40-50)
- Medium: Balanced (standard: 55-65)
- Higher: Fewer signals (position: 70-80)
• Dynamic MMD Threshold (default ON): Auto-calibration
- Keep ON for adaptive behavior
• Signal Ranking Filter (default ON): Top percentile only
- Keep ON to trade only best signals
• Ranking Percentile (50-95, default 75): Selectivity
- 75 = top 25% of signals
- 85 = top 15% of signals
- 90 = top 10% of signals
• Adaptive Cooldown (default ON): Volatility-scaled spacing
- Keep ON for intelligent spacing
• Regime Filter : Off / Smart / Strict
- Off: Any regime (maximize frequency)
- Smart: Avoid extremes (recommended)
- Strict: Only optimal regimes (maximum quality)
Risk Parameters:
• Risk:Reward Ratio (1.0-5.0, default 2.0): Target distance multiplier
- Conservative: 1.0-1.5 (higher WR needed)
- Balanced: 2.0-2.5 (standard professional)
- Aggressive: 3.0-5.0 (lower WR acceptable)
• Stop Loss (ATR mult) (0.5-4.0, default 1.5): Stop distance
- Tight: 0.5-1.0 (scalping, low vol)
- Medium: 1.2-2.0 (day/swing)
- Wide: 2.5-4.0 (position, high vol)
• Pause After Drawdown (2-20%, default 8%): Circuit breaker
- Aggressive: 3-6% (small accounts)
- Moderate: 6-10% (most traders)
- Relaxed: 10-15% (large accounts)
Multi-Timeframe:
• MTF Confirmation (default OFF): Higher TF filter
- Turn ON for swing/position trading
- Keep OFF for scalping/day trading
• Higher Timeframe (default "60"): HTF for trend check
- Should be 3-5× chart timeframe
- 1m chart → 5m or 15m
- 5m chart → 15m or 60m
- 15m chart → 60m or 240m
- 1h chart → 240m or D
Display:
• Probability Cloud (default ON): Volatility bands
• Momentum Flow Vectors (default ON): Directional arrows
• Regime Zones (default ON): Distribution shift boxes
• Signal Connections (default ON): Lines between signals
• Dashboard (default ON): Stats table
• Dashboard Position : Top Left / Top Right / Bottom Left / Bottom Right
• Dashboard Size : Minimal / Compact / Full
• Color Scheme : Default / Monochrome / Warm / Cool
• Show MMD Debug Plot (default OFF): Overlay MMD value
- Turn ON temporarily for threshold calibration
🎓 PROFESSIONAL USAGE PROTOCOL
Phase 1: Parameter Calibration (Week 1)
Goal: Find optimal kernel and bandwidth for your instrument/timeframe
Setup:
• Enable "Show MMD Debug Plot"
• Start with Cauchy kernel, 2.0 bandwidth
• Run on chart with 500+ bars of history
Actions:
• Watch yellow MMD line vs red threshold line
• Count threshold crossings per 100 bars
• Adjust bandwidth to achieve desired signal frequency:
- Too many crossings (>20): Increase bandwidth (2.5-3.5)
- Too few crossings (<5): Decrease bandwidth (1.2-1.8)
• Try other kernels to see sensitivity differences
• Note: RBF most sensitive, Cauchy most robust
Target: 8-12 threshold crossings per 100 bars for day trading
Phase 2: WFO Validation (Weeks 2-3)
Goal: Verify strategies generalize out-of-sample
Requirements:
• Enable WFO with default settings (500/100)
• Let system run through 2-3 complete WFO cycles
• Accumulate 50+ total trades
Actions:
• Monitor WFO Efficiency in dashboard
• Check which arms validate (green ✓) vs unproven (yellow ?)
• Review Train Q vs Test Q for selected arm
• If efficiency < 0.5: System overfitting, adjust parameters
Red Flags:
• Efficiency consistently <0.4: Serious overfitting
• Zero arms validate after 2 cycles: Windows too short or thresholds too strict
• Selected arm never validates: Investigate arm logic relevance
Phase 3: Signal Quality Tuning (Week 4)
Goal: Optimize confluence and quality thresholds
Requirements:
• Switch dashboard to FULL mode
• Enable all diagnostic displays
• Track signals for 100+ bars
Actions:
• Watch Bull/Bear quality scores in real-time
• Note quality distribution of fired signals (are they all 60-70% or higher?)
• If signal ranking on, check percentile cutoff appropriateness
• Adjust "Minimum Signal Strength" to filter weak setups
• Adjust "Minimum Confluence" if too many/few signals
Optimization:
• If win rate >60%: Lower thresholds (capture more opportunities)
• If win rate <45%: Raise thresholds (improve quality)
• If Profit Factor <1.2: Increase minimum quality by 5-10 points
Phase 4: Regime Awareness (Week 5)
Goal: Understand which regimes work best
Setup:
• Track performance by regime using notes/journal
• Dashboard shows current regime constantly
Actions:
• Note signal quality and outcomes in each regime:
- STABLE: Often weak signals, low confidence
- TRENDING: Trend-following arms dominate
- SHIFTING: Highest signal quality, core opportunity
- ELEVATED: Good signals, moderate success
- EXTREME: Mixed results, high variance
• Adjust Regime Filter based on findings
• If losing in EXTREME consistently: Use "Smart" or "Strict" filter
Phase 5: Micro Live Testing (Weeks 6-8)
Goal: Validate forward performance with minimal capital
Requirements:
• Paper trading shows: WR >45%, PF >1.2, Efficiency >0.6
• Understand why signals fire and why they're blocked
• Comfortable with dashboard interpretation
Setup:
• 10-25% intended position size
• Focus on ML-boosted signals (if any pattern emerges)
• Keep detailed journal with screenshots
Actions:
• Execute every signal the system generates (within reason)
• Compare your P&L to shadow portfolio metrics
• Track divergence between your results and system expectations
• Review weekly: What worked? What failed? Any execution issues?
Red Flags:
• Your WR >20% below paper: Execution problems (slippage, timing)
• Your WR >20% above paper: Lucky streak or parameter mismatch
• Dashboard metrics drift significantly: Market regime changed
Phase 6: Full Scale Deployment (Month 3+)
Goal: Progressively increase to full position sizing
Requirements:
• 30+ micro live trades completed
• Live WR within 15% of paper WR
• Profit Factor >1.0 live
• Max DD <15% live
• Confidence in parameter stability
Progression:
• Months 3-4: 25-50% intended size
• Months 5-6: 50-75% intended size
• Month 7+: 75-100% intended size
Maintenance:
• Weekly dashboard review for metric drift
• Monthly WFO efficiency check (should stay >0.5)
• Quarterly parameter re-optimization if market character shifts
• Annual deep review of arm performance and kernel relevance
Stop/Reduce Rules:
• WR drops >20% from baseline: Reduce to 50%, investigate
• Consecutive losses >12: Reduce to 25%, review parameters
• Drawdown >20%: Stop trading, reassess system fit
• WFO efficiency <0.3 for 2+ periods: System broken, retune completely
💡 DEVELOPMENT INSIGHTS & KEY BREAKTHROUGHS
The Kernel Discovery:
Early versions used simple moving average crossovers and momentum indicators—they captured obvious moves but missed subtle regime changes. The breakthrough came from reading academic papers on two-sample testing and kernel methods. Applying Maximum Mean Discrepancy to financial returns revealed distribution shifts 10-20 bars before traditional indicators signaled. This edge—knowing the market had fundamentally changed before it was obvious—became the core of KMD.
Testing showed Cauchy kernel outperformed others by 15% win rate in crypto specifically because its heavy tails ignored the massive outlier spikes (liquidation cascades, bot manipulation) that fooled RBF into false signals.
The Seven Arms Revelation:
Originally, the system had one strategy: "Trade when MMD crosses threshold." Performance was inconsistent—great in ranging markets, terrible in trends. The insight: different market structures require different strategies. Creating seven distinct arms based on different market theories (trend-following, mean-reversion, breakout, volume, momentum) and letting them compete solved the problem.
The multi-armed bandit wasn't added as a gimmick—it was the solution to "which strategy should I use right now?" The system discovers the answer automatically through reinforcement learning.
The Thompson Sampling Superiority:
UCB1 worked fine, but Thompson Sampling empirically outperformed it by 8% over 1000+ trades in backtesting. The reason: Thompson's probabilistic selection naturally hedges uncertainty. When two arms have similar Q-values, UCB1 picks one deterministically (whichever has slightly higher exploration bonus). Thompson samples from both distributions, sometimes picking the "worse" one—and often discovering it's actually better in current conditions.
Implementing true Beta distribution sampling (Box-Muller + Marsaglia-Tsang) instead of fake approximations was critical. Fake Thompson (using random with bias) underperformed UCB1. Real Thompson with proper Bayesian updating dominated.
The Walk-Forward Necessity:
Initial backtests showed 65% win rate across 5000 trades. Live trading: 38% win rate over first 100 trades. Crushing disappointment. The problem: overfitting. The training data included the test data (look-ahead bias). Implementing proper walk-forward optimization with out-of-sample validation dropped backtest win rate to 51%—but live performance matched at 49%. That's a system you can trust.
WFO efficiency metric became the North Star. If efficiency >0.7, live results track paper. If efficiency <0.5, prepare for disappointment.
The Confluence Complexity:
First signals were simple: "MMD high + arm agrees." This generated 200+ signals on 1000 bars with 42% win rate—not tradeable. Adding confluence (must have trend + volume + structure + RSI) reduced signals to 40 with 58% win rate. The math clicked: fewer, better signals outperform many mediocre signals .
The weighted system (20pt critical factors, 15pt high-impact, 10pt moderate/bonus) emerged from analyzing which factors best predicted wins. Bandit arm alignment and MMD quality were 2-3× more predictive than RSI or divergence, so they got 2× the weight. This isn't arbitrary—it's data-driven.
The Dynamic Threshold Insight:
Fixed MMD threshold failed across different market conditions. 0.15 worked perfectly on ES but fired constantly on Bitcoin. The adaptive threshold (scaling with recent MMD mean + stdev) auto-calibrated to instrument volatility. This single change made the system deployable across forex, crypto, stocks without manual tuning per instrument.
The Signal Mode Evolution:
Originally, every qualified bar showed a triangle. Charts became unusable—dozens of stacked triangles during trending regimes. "Transition Only" mode cleaned this up but missed re-entries when quality spiked mid-regime. "Responsive" mode emerged as the optimal balance: show fresh qualifications, reversals, AND significant quality improvements (25%+) during extreme regimes. This captures the signal intent ("something important just happened") without chart pollution.
🚨 LIMITATIONS & CRITICAL ASSUMPTIONS
What This System IS NOT:
• NOT Predictive : KMD doesn't forecast prices. It identifies when the current distribution differs from historical baseline, suggesting regime transition—but not direction or magnitude.
• NOT Holy Grail : Typical performance is 48-56% win rate with 1.3-1.8 avg R-multiple. This is a probabilistic edge, not certainty. Expect losing streaks of 8-12 trades.
• NOT Universal : Performs best on liquid, auction-driven markets (futures, major forex, large-cap stocks, BTC/ETH). Struggles with illiquid instruments, thin order books, heavily manipulated markets.
• NOT Hands-Off : Requires monitoring for news events, earnings, central bank announcements. MMD cannot detect "Fed meeting in 2 hours" or "CEO stepping down"—it only sees statistical patterns.
• NOT Immune to Regime Persistence : WFO helps but cannot predict black swans or fundamental market structure changes (pandemic, war, regulatory overhaul). During these events, all historical patterns may break.
Core Assumptions:
1. Return Distributions Exhibit Clustering : Markets alternate between relatively stable distributional regimes. Violation: Permanent random walk, no regime structure.
2. Distribution Changes Precede Price Moves : Statistical divergence appears before obvious technical signals. Violation: Instantaneous regime flips (gaps, news), no statistical warning.
3. Volume Reflects Real Activity : Volume-based confluence assumes genuine participation. Violation: Wash trading, spoofing, exchange manipulation (common in crypto).
4. Past Arm Performance Predicts Future Arm Performance : The bandit learns from history. Violation: Fundamental strategy regime change (e.g., market transitions from mean-reverting to trending permanently).
5. ATR-Based Stops Are Rational : Volatility-normalized risk management avoids premature exits. Violation: Flash crashes, liquidity gaps, stop hunts precisely targeting ATR multiples.
6. Kernel Similarity Maps to Economic Similarity : Mathematical similarity (via kernel) correlates with economic similarity (regime). Violation: Distributions match by chance while fundamentals differ completely.
Performs Best On:
• ES, NQ, RTY (S&P 500, Nasdaq, Russell 2000 futures)
• Major forex pairs: EUR/USD, GBP/USD, USD/JPY, AUD/USD
• Liquid commodities: CL (crude oil), GC (gold), SI (silver)
• Large-cap stocks: AAPL, MSFT, GOOGL, TSLA (>$10M avg daily volume)
• Major crypto on reputable exchanges: BTC, ETH (Coinbase, Kraken)
Performs Poorly On:
• Low-volume stocks (<$1M daily volume)
• Exotic forex pairs with erratic spreads
• Illiquid crypto altcoins (manipulation, unreliable volume)
• Pre-market/after-hours (thin liquidity, gaps)
• Instruments with frequent corporate actions (splits, dividends)
• Markets with persistent one-sided intervention (central bank pegs)
Known Weaknesses:
• Lag During Instantaneous Shifts : MMD requires (test_window) bars to detect regime change. Fast-moving events (5-10 bar crashes) may bypass detection entirely.
• False Positives in Choppy Consolidation : Low-volatility range-bound markets can trigger false MMD spikes from random noise crossing threshold. Regime filter helps but doesn't eliminate.
• Parameter Sensitivity : Small bandwidth changes (2.0→2.5) can alter signal frequency by 30-50%. Requires careful calibration per instrument.
• Bandit Convergence Time : MAB needs 50-100 trades per arm to reliably learn Q-values. Early trades (first 200 bars) are essentially random exploration.
• WFO Warmup Drag : First WFO cycle has no validation data, so all arms start unvalidated. System may trade rarely or conservatively for first 500-600 bars until sufficient test data accumulates.
• Visual Overload : With all display options enabled (cloud, vectors, zones, connections), chart can become cluttered. Disable selectively for cleaner view.
⚠️ RISK DISCLOSURE
Trading futures, forex, stocks, options, and cryptocurrencies involves substantial risk of loss and is not suitable for all investors. Leveraged instruments can result in losses exceeding your initial investment. Past performance, whether backtested or live, is not indicative of future results.
The Kernel Market Dynamics system, including its multi-armed bandit and walk-forward optimization components, is provided for educational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any security or instrument.
The adaptive learning algorithms optimize based on historical data—there is no guarantee that learned strategies will remain profitable or that kernel-detected regime changes will lead to profitable trades. Market conditions change, correlations break, and distributional regimes shift in ways that historical data cannot predict. Black swan events occur.
Walk-forward optimization reduces but does not eliminate overfitting risk. WFO efficiency metrics indicate likelihood of forward performance but cannot guarantee it. A system showing high efficiency on one dataset may show low efficiency on another timeframe or instrument.
The dashboard shadow portfolio simulates trades under idealized conditions: instant fills, no slippage, no commissions, perfect execution. Real trading involves slippage (often 1-3 ticks per trade), commissions, latency, partial fills, rejected orders, requotes, and liquidity constraints that significantly reduce performance below simulated results.
Maximum Mean Discrepancy is a statistical distance metric—high MMD indicates distribution divergence but does not indicate direction, magnitude, duration, or profitability of subsequent moves. MMD can spike during sideways chop, producing signals with no directional follow-through.
Users must independently validate system performance on their specific instruments, timeframes, broker execution, and market conditions before risking capital. Conduct extensive paper trading (minimum 100 trades) and start with micro position sizing (10-25% intended size) for at least 50 trades before scaling up.
Never risk more capital than you can afford to lose completely. Use proper position sizing (1-2% risk per trade maximum). Implement stop losses on every trade. Maintain adequate margin/capital reserves. Understand that most retail traders lose money. Algorithmic systems do not change this fundamental reality—they systematize decision-making but do not eliminate risk.
The developer makes no warranties regarding profitability, suitability, accuracy, reliability, or fitness for any particular purpose. Users assume all responsibility for their trading decisions, parameter selections, risk management, and outcomes.
By using this indicator, you acknowledge that you have read and understood these risk disclosures and accept full responsibility for all trading activity and potential losses.
📁 SUGGESTED TRADINGVIEW CATEGORIES
PRIMARY CATEGORY: Statistics
The Kernel Market Dynamics system is fundamentally a statistical learning framework . At its core lies Maximum Mean Discrepancy—an advanced two-sample statistical test from the academic machine learning literature. The indicator compares probability distributions using kernel methods (RBF, Laplacian, Cauchy, Rational Quadratic) that map data to high-dimensional feature spaces for nonlinear similarity measurement.
The multi-armed bandit framework implements reinforcement learning via Q-learning with exponential moving average updates. Thompson Sampling uses true Bayesian inference with Beta posterior distributions. Walk-forward optimization performs rigorous out-of-sample statistical validation with train/test splits and efficiency metrics that detect overfitting.
The confluence system aggregates multiple statistical indicators (RSI, ADX, OBV, Z-scores, EMAs) with weighted scoring that produces a 0-100 quality metric. Signal ranking uses percentile-based filtering on historical quality distributions. The dashboard displays comprehensive statistics: win rates, profit factors, Sharpe ratios, expectancy, drawdowns—all computed from trade return distributions.
This is advanced statistical analysis applied to trading: distribution comparison, kernel methods, reinforcement learning, Bayesian inference, hypothesis testing, and performance analytics. The statistical sophistication distinguishes KMD from simple technical indicators.
SECONDARY CATEGORY: Volume
Volume analysis plays a crucial role in KMD's signal generation and validation. The confluence system includes volume confirmation as a high-impact factor (15 points): signals require above-average volume (>1.2× mean) for full points, with scaling based on volume ratio. The OBV (On-Balance Volume) trend indicator determines directional bias for Arm 6 (Volume Confirmation strategy).
Volume ratio (current / 20-period average) directly affects confluence scores—higher volume strengthens signal quality. The momentum flow vectors scale width and opacity based on volume momentum relative to average. Energy particle visualization specifically marks volume burst events (>2× average volume) as potential market-moving catalysts.
Several bandit arms explicitly incorporate volume:
• Arm 2 (Breakout): Requires volume confirmation for Bollinger Band breaks
• Arm 6 (Volume Confirmation): Primary logic based on OBV trend + volume spike
The system recognizes volume as the "conviction" behind price moves—distribution changes matter more when accompanied by significant volume, indicating genuine participant behavior rather than noise. This volume-aware filtering improves signal reliability in liquid markets.
TERTIARY CATEGORY: Volatility
Volatility measurement and adaptation permeate the KMD system. ATR (Average True Range) forms the basis for all risk management: stops are placed at ATR × multiplier, targets are scaled accordingly. The adaptive bandwidth feature scales kernel bandwidth (0.5-2.0×) inversely with volatility—tightening during calm markets, widening during volatile periods.
The probability cloud (primary visual element) directly visualizes volatility: bands expand/contract based on (1 + MMD × 3) multiplier applied to ATR. Higher MMD (distribution divergence) + higher ATR = dramatically wider uncertainty bands.
Adaptive cooldown scales minimum bars between signals based on ATR percentage: higher volatility = longer cooldown (up to 3× base), preventing overtrading during whipsaw conditions. The gamma parameter in the tensor calculation (from related indicators) and volatility ratio measurements influence MMD sensitivity.
Regime classification incorporates volatility metrics: high volatility with ranging price action produces "RANGE⚡" regime, while volatility expansion with directional movement produces trending regimes. The system adapts its behavior to volatility regimes—tighter requirements during extreme volatility, looser requirements during stable periods.
ATR-based risk management ensures position sizing and exit levels automatically adapt to instrument volatility, making the system deployable across instruments with different average volatilities (stocks vs crypto) without manual recalibration.
══════════════════════════════════════════
CLOSING STATEMENT
══════════════════════════════════════════
Kernel Market Dynamics doesn't just measure price—it measures the probability structure underlying price. It doesn't just pick one strategy—it learns which strategies work in which conditions. It doesn't just optimize on history—it validates on the future.
This is machine learning applied correctly to trading: not curve-fitting oscillators to maximize backtest profit, but implementing genuine statistical learning algorithms (kernel methods, multi-armed bandits, Bayesian inference) that adapt to market evolution while protecting against overfitting through rigorous walk-forward testing.
The seven arms compete. The Thompson sampler selects. The kernel measures. The confluence scores. The walk-forward validates. The signals fire.
Most indicators tell you what happened. KMD tells you when the game changed.
"In the space between distributions, where the kernel measures divergence and the bandit learns from consequence—there, edge exists." — KMD-WFO-MAB v2
Taking you to school. — Dskyz, Trade with insight. Trade with anticipation.
Monitor Posición Bollinger Multi-TFThis indicator provides a comprehensive dashboard that allows you to monitor the price position relative to Bollinger Bands across 7 different timeframes simultaneously, without the need to switch charts.
It uses the %B (Percent B) logic to normalize the price position, giving you an instant "Heatmap" view of the market state (Overbought/Oversold) from the 1-minute chart up to the Weekly chart.
Key Features:
Multi-Timeframe Monitoring: Watch 1m, 5m, 15m, 1h, 4h, Daily, and Weekly timeframes in a single panel.
Dynamic Color Coding:
Dark Red: Price breaking above the Upper Band (>100%).
Light Red: Price near the Upper Band (Resistance zone).
Gray: Price in the neutral middle zone.
Light Green: Price near the Lower Band (Support zone).
Dark Green: Price breaking below the Lower Band (<0%).
Trend Arrows: Indicates momentum (▲ or ▼) based on the previous candle's position.
Current Timeframe Highlight: Automatically highlights the row corresponding to your current chart view in orange.
Fully Customizable: Adjust Bollinger settings (Length, Mult), choose your preferred timeframes, and change the table position/size.
Movable Panel: Includes X/Y offset settings to prevent the table from blocking price action or menu buttons.
How to Use:
Add the indicator to your chart.
Use the dashboard to spot confluence across timeframes.
Example: If 15m, 1H, and 4H are all showing Red, the asset is likely overextended to the upside.
Example: If the lower timeframes are turning Green while the higher timeframes remain Gray/Bullish, it might indicate a pullback opportunity.
Settings:
Bollinger Config: Length (20) and Multiplier (2.0) by default.
Timeframes: Select the 7 specific TFs you want to track.
Visuals: Change table position, text size, and offset coordinates.
This tool is essential for scalpers and day traders who need situational awareness across multiple fractals instantly.
Institutional Valuation SuiteStandard volatility indicators often fail on long-term growth charts because they measure volatility in dollars rather than percentages. This causes bands to break or become irrelevant during exponential price moves (e.g., Bitcoin going from $1,000 to $100,000).
The Institutional Valuation Suite solves this by utilising Geometric (Log-Normal) Standard Deviation. This allows the model to adapt to the asset's price scale, providing accurate valuation zones regardless of price magnitude.
The model functions as a mean-reversion tool, visualizing price as an elastic band anchored to a "Fair Value" baseline. It identifies when the asset is statistically overextended (Bubble/FOMO) or undervalued (Deep Discount).
Key Features
1. Log-Normal Math Engine
Geometric Mode (Default): Calculates volatility in percentage terms. Essential for Crypto and Growth Stocks.
Arithmetic Mode: Available for Forex or range-bound assets where linear standard deviation is preferred.
2. Sentiment Heat map
Visualises valuation directly on the candles to remove interpretation bias.
GREEN: Deep Value / Accumulation Zone (< -0.5σ).
ORANGE: Overvalued / FOMO Zone (> 2.0σ).
RED: Speculative Bubble Zone (> 3.0σ).
3. Reversion Signals
"VALUE RECLAIM": Triggers when price re-enters the bottom band from below, filtering out "falling knife" scenarios.
"TOP EXIT": Triggers when price breaks down from the speculative top zone.
4. Statistical Dashboard
Displays the real-time Z-Score to quantify how "stretched" the price is relative to its baseline.
> 3.0: Statistical Anomaly (Top).
< -0.5: Statistical Discount (Bottom).
Optimisation Cheat Sheet
The "Cycle Length" input determines the lookback period for the baseline. Recommended settings:
Crypto Macro: 200 (Approx. 4 Years).
Altcoins: 100 (Approx. 2 Years).
Stocks (S&P 500): 50 (1 Year Trend).
Day Trading: Set "Timeframe Lock" to "Chart".
Technical Note
This indicator uses strict offset logic (`barmerge.lookahead_on`) to ensure historical consistency. The signals displayed on historical bars match exactly what would have appeared in real-time.
*Disclaimer: This script provides statistical analysis based on historical volatility and does not constitute financial advice.*
New York Session Volume Momentum SystemNew York Session Volume Momentum System
This indicator is specifically designed for stock trading during New York market hours on the 1-hour timeframe. It combines volume spike detection with adaptive volatility bands and directional momentum filtering to identify high-probability entry points during the most liquid trading sessions.
Optimal Usage:
Timeframe: 1-Hour chart (critical for proper signal generation)
Market: U.S. stocks during New York open (9:30 AM - 4:00 PM EST)
Asset Class: Equities with sufficient volume characteristics
Technical Methodology:
Volume Spike Detection:
Continuously monitors volume relative to a 14-period moving average
Identifies abnormal volume events (threshold: 1.0x average) which typically occur at market open and during significant price moves
Volume confirmation reduces false signals during low-liquidity periods
Adaptive Volatility Bands:
Uses an 8-period volatility measurement (Average True Range) to create dynamic upper and lower bands
Bands automatically tighten during volume spikes (0.8x multiplier) to capture early momentum shifts
Trailing mechanism adjusts based on price action to lock in directional bias
Directional Momentum Filter:
Employs dual exponential moving averages (8-period fast, 21-period slow) to determine market bias
When fast MA > slow MA: System only generates buy signals (bullish environment)
When fast MA < slow MA: System only generates sell signals (bearish environment)
Filter can be toggled off for range-bound markets
Signal Generation Logic:
VOL BUY/SELL: High-confidence signals requiring both momentum shift AND volume confirmation
TREND FLIP: All momentum reversals (green to red or red to green) regardless of volume
Signals only trigger on candle close to eliminate intra-bar repainting
Visual labels placed dynamically using volatility-based spacing for clarity
Risk Management Framework:
This system is designed around a fixed risk-reward ratio methodology:
Required Target: 2R (2x your initial risk)
Stop Loss Placement: Place stops beyond the green/red momentum line (not the candle wick). This line represents the validated support/resistance level based on volatility and volume dynamics.
Position Sizing: Calculate risk per trade based on distance from entry to stop loss
Example: If your stop loss is $1 away from entry, your profit target should be $2 away
The 2R target aligns with the statistical distribution of price moves following volume-confirmed momentum shifts on the 1-hour timeframe. Historical testing shows this ratio provides optimal balance between achievable targets and favorable win rates.
Critical Entry Rules:
AVOID EARNINGS REPORTS:
Never trade signals on stocks during their earnings announcement days or the immediate session following earnings releases. Earnings volatility creates unpredictable price action that invalidates the volume/momentum relationship this system relies upon. Always check the earnings calendar before taking positions.
Large Opening Candle Strategy:
If the first 1-hour candle after New York open (9:30-10:30 AM EST) shows an unusually large range:
DO NOT enter immediately on the signal
WAIT for the second candle to form a pullback toward the momentum line
Enter on the pullback candle when price approaches the green (for buys) or red (for sells) momentum line
Benefit: This gives you a much tighter stop loss placement directly below/above the colored line, improving your risk-reward ratio significantly
Why it works: Large opening candles often retrace before continuing, allowing better entry positioning without changing your 2R target
Why 1-Hour and New York Open?
The 1-hour timeframe captures institutional order flow without the noise of lower timeframes while remaining responsive enough for intraday position management. New York market hours provide the highest volume and liquidity for U.S. equities, making volume spike signals more statistically significant and reliable.
Settings Overview:
Volatility Period: 8 (optimized for 1H)
Volatility Multiplier: 3.0
Volume MA Period: 14
Volume Spike Threshold: 1.0
Fast/Slow MA: 8/21 (responsive for hourly trading)
Trend Filter: Enabled by default
Alert options for both VOL signals and all trend flips
Important Disclaimers:
This indicator does not predict future price movements. It identifies historical patterns and volume anomalies based on mathematical calculations. The 2R target is a risk management guideline, not a performance guarantee. Market conditions vary, and not all setups will reach their targets.
Proper position sizing, stop loss discipline, and understanding of market context are essential. This tool is most effective when combined with broader market analysis, sector rotation awareness, and sound trading psychology.
Past signal accuracy does not guarantee future results. All trading involves risk of loss. Users should paper trade and backtest on their specific instruments before risking capital.
Compression Breakout [30min 65+33 EMA]Compression Breakout
by GhostMMXM (inspired by Chris Cady & Steidlmayer Market Profile principles)
This indicator automates the exact compression-to-displacement setup that veteran CBOT floor trader and Market Profile pioneer Chris Cady describes in interviews and his work with Peter Steidlmayer.
Core idea
Chris Cady uses two simple moving averages on the 30-minute chart — a 33-period and a 65-period — to visually detect when the market falls into “balance” (compression). When both lines go almost perfectly flat for several bars, the market is in a low-volatility, high-consensus state — the calm before a violent vertical breakout.
What this script does
• Detects when both the 33 EMA and 65 EMA are virtually flat (user-adjustable sensitivity)
• Requires a minimum of 6 consecutive flat bars (adjustable) before declaring compression
• Draws a light-grey background + live-updating box showing the detecting compression
• Triggers only on the first strong displacing bar that:
– closes entirely above the compression high OR entirely below the compression low
– has a range ≥ 1.5× the average bar range inside the compression zone (adjustable)
• Plots a clear “LONG Cady Break” or “SHORT Cady Break” label on the breakout bar
• Fires a clean alert instantly usable on entire watchlists:
BTC → Compression LONG breakout!
ES1! → Compression SHORT breakout!
Designed for 30-minute charts (BTC, ETH, SOL, NQ, CL, GC, etc.) but works on any timeframe.
Perfect for traders who want to catch the highest-conviction vertical moves that Chris Cady has traded for decades with only a few contracts scaled in aggressively on the break.
Settings
• Minimum flat bars for compression (default 6)
• Max % slope to be considered flat (default 0.08 %)
• Minimum range multiplier vs compression average (default 1.5×)
Enjoy the cleanest, most mechanical version of Chris Cady’s famous compression breakout strategy available on TradingView.
Happy trading!
able MACD Overview
Purpose: The indicator combines the traditional MACD (Moving Average Convergence Divergence) with a short-term “forecast” (projection) of MACD/histogram values to give early warning of momentum changes.
Typical outputs:
MACD line (fastEMA − slowEMA)
Signal line (EMA of MACD)
Histogram (MACD − signal)
Forecasted MACD or histogram projected N bars ahead
Optional buy/sell markers and alert conditions
Add the indicator to TradingView (Installation)
Open TradingView and the chart you want to apply the indicator to.
Click “Pine Editor” at the bottom of the chart.
Copy the contents of able_macd_forecast.pine into the Pine Editor window.
Click “Add to chart” (or Save then Add to chart). If it’s a study, it will appear on the chart below price.
If you plan to re-use the script, click Save and give it a meaningful name.
Inputs / Parameters (typical) Note: exact input names may differ in your script. Replace the names below with the script’s input labels when you inspect it.
Source: price source for calculations (close, hl2, etc.).
Fast Length: length for the fast EMA (commonly 12).
Slow Length: length for the slow EMA (commonly 26).
Signal Length: length for the MACD signal EMA (commonly 9).
Forecast Length / Horizon: how many bars ahead the script projects the MACD/histogram (e.g., 1–5).
Forecast Method / Smoothing: choice of projection method (linear regression, EMA extrapolation, simple slope * N, etc.) if available.
Histogram Thresholds: numeric thresholds to emphasize significant momentum (optional).
Show Forecast: toggle on/off the forecast plot.
Alerts On/Off toggles: enable or disable alert conditions baked into the indicator.
Visual / Style settings: colors, plot thickness, histogram style (columns/areas), show labels, show buy/sell arrows.
How the indicator is typically calculated (summary)
MACD line = EMA(source, fast) − EMA(source, slow)
Signal line = EMA(MACD line, signal length)
Histogram = MACD − Signal
Forecast = method-specific short-term projection of MACD or histogram (for example: extend the last slope forward, apply linear regression to MACD values and extrapolate N bars, or apply an additional smoothing and extend that value) Note: For exact math, I need to inspect the script; this is the typical approach.
How to read the indicator (signals & interpretation)
Bullish signal:
MACD line crossing above the signal line (MACD cross up).
Histogram turns positive (cross above zero).
Forecast shows MACD/histogram moving higher in the next N bars (if forecast is positive or trending up).
Bearish signal:
MACD line crossing below the signal line (MACD cross down).
Histogram turns negative (cross below zero).
Forecast shows MACD/histogram moving lower ahead.
Confirmations:
Use price action (higher highs/lows for bullish, lower highs/lows for bearish).
Volume or other momentum/confluence indicators (RSI, ADX).
Divergences:
Bullish divergence: price makes lower low while MACD histogram makes higher low.
Bearish divergence: price makes higher high while MACD histogram makes lower high.
Forecast behavior:
If the forecast leads the MACD cross (forecast crosses before the current MACD does), it’s an early warning.
Use caution: forecasts are prone to false signals; always confirm.
Common trading setups using this indicator
Conservative:
Wait for MACD to cross signal + histogram above zero + forecast already trending same direction.
Use stop below recent swing low (for long) or above recent swing high (for short).
Aggressive (early entry):
Enter when forecast turns positive while MACD still below signal (anticipating cross).
Use tighter stops and smaller position sizes.
Exit rules:
Opposite MACD cross, histogram flipping sign, or a target based on risk-reward.
Use trailing stop based on ATR or structure.
Example settings for different timeframes (starting points)
Scalping / 5–15 min:
Fast 8, Slow 21, Signal 5, Forecast 1–2
Intraday / 1H:
Fast 12, Slow 26, Signal 9, Forecast 2–3
Swing / 4H–Daily:
Fast 12, Slow 26, Signal 9, Forecast 3–5 Adjust based on the asset volatility and backtests.
Adding alerts (TradingView)
Click the “Alerts” button (clock icon) or press Alt + A.
In the Condition dropdown, select the indicator name (able_macd_forecast) and choose a plotted series or built-in alert condition (if the script uses alertcondition).
Common alert types:
MACD crosses Signal (Crossing)
Histogram crosses 0 (Crossing)
Forecast crosses 0 or Forecast trend change (if provided)
Message templates:
“{{ticker}}: MACD crossed above signal on {{interval}}”
“{{ticker}} Forecast positive: MACD forecast shows upward momentum”
Customize the message for your trade automation or notifications.
Configure frequency (Only once, Once per bar, or Once per bar close) — for signals like crossovers, “Once per bar close” is usually safer to avoid repainting issues. Note: If the script includes alertcondition() calls with explicit IDs/messages, use those directly — they are the most reliable for automation.
Backtesting / Strategy conversion
If this script is a study (indicator), you can:
Convert it to a strategy by adding strategy.* order calls (strategy.entry, strategy.close) using the entry/exit logic you prefer, or
Use TradingView’s “Bar Replay” to manually test signals across different markets/timeframes.
If you want, I can help convert or write a strategy wrapper that uses the indicator’s signals to place backtest trades (I’ll need the code).
Practical tips & best practices
Use higher timeframe confirmation for lower-timeframe entries (e.g., check daily MACD momentum before trading 15m signals).
Beware of choppy markets; MACD / forecast may produce whipsaws. Combine with trend filters (moving average direction, ADX).
If you rely on forecasted values, prefer alerts “on bar close” when possible to reduce false alerts from intra-bar noise.
Tune parameters for the specific asset (FX, crypto, stocks have different behavior).
Record each signal and outcome for a sample period (20–100 trades) to evaluate performance.
Troubleshooting
Indicator won’t add: verify Pine version in script header (//@version=4 or //@version=5). TradingView may reject scripts with unsupported version syntax.
Plots missing: check script inputs (Some scripts hide plots if toggles are off).
Alerts firing too often: change alert frequency to “Once per bar close” or adjust threshold values.
Forecast seems to repaint: some forecast methods can repaint (use “bar_index” or store values only on closed bars, or use non-repainting forecast methods). Ask me to inspect the script for repainting logic.
What I can do next (recommended)
If you paste the content of able_macd_forecast.pine here, I will:
Produce a precise, line-by-line usage guide mapping to the exact input names and default values.
Show the exact plotted series names and how to reference them for alerts.
Point out any repainting risks and suggest fixes.
Provide example alert messages that match the script’s alertcondition IDs (if any).
Optionally convert it into a strategy for backtesting, or add non-repainting forecast logic if needed.
Daily RDR (Prev Day H/L, Intraday)This indicator identifies intraday Range-Deviation Reversal (RDR) signals using the previous day’s high and low. At each new session, it stores yesterday’s levels and resets today’s range tracking. During the day, it detects when price first breaks above the prior high or below the prior low, then waits for a reversal: a bearish RDR triggers when price exceeds yesterday’s high and then closes back below it, while a bullish RDR triggers when price undercuts yesterday’s low and then closes back above it. The script plots the previous day’s levels and marks RDR reversals with small up/down triangles.
Global Liquidity Score
Global Liquidity Score – Simple Risk-On / Risk-Off Gauge
This indicator measures overall market liquidity conditions using a single, normalized score.
It takes several macro and crypto variables, standardizes each one (z-score), and combines them into one clear Liquidity Score Line.
You only follow one line (your pink/white line).
The background color shows the current liquidity regime.
⸻
What the indicator measures
The algorithm looks at four major liquidity sources:
1. USD Liquidity (tightening or easing)
• DXY (strong dollar = tighter global liquidity)
• US10Y yield (higher yields = liquidity drain)
2. Risk Sentiment (risk-on vs risk-off)
• VIX index (volatility)
• S&P 500 index (SPX)
3. Credit Market Strength
• High-yield ETFs: HYG, JNK
• Investment-grade corporate credit: LQD
Stronger credit = easier liquidity.
Weaker credit = tightening risk.
4. Internal Crypto Liquidity
• USDT dominance (higher = risk-off in crypto)
• Bitcoin price
• TOTAL2 (crypto market cap excluding BTC)
These are all converted into z-scores and combined into one metric:
Total Liquidity Score =
USD Block + Risk Block − Credit Block − 0.5 × Crypto Block
⸻
How to read the colors
The indicator uses background colors to show the liquidity regime:
Color Meaning
Dark Red Severe liquidity tightening / strong risk-off
Red Mild-to-moderate tightening
Green Liquidity easing / soft risk-on
Dark Green Strong easing, high liquidity / risk-on
Your pink/white line = the final liquidity score.
You only need to follow that single line.
⸻
How to interpret the score
📉 Positive score → Liquidity Tightening (Risk-Off)
• USD stronger
• Yields rising
• Volatility rising
• Credit markets weakening
• Crypto rotating to stablecoins
📈 Negative score → Liquidity Easing (Risk-On)
• USD weakening
• Yields falling
• Stocks rising
• Volatility low
• Credit markets strong
• Crypto beta assets outperform
⸻
What this indicator is NOT
This is not a price predictor.
It does not follow BTC directly.
It tells you liquidity conditions, not immediate price direction.
It answers the macro question:
“Is liquidity flowing INTO the market or OUT of the market?”
If liquidity is tightening (red), crypto rallies are harder to sustain.
If liquidity is easing (green), crypto rallies have more fuel.






















