MTF rsi/stoch imdI just built this indicator.
It displays a multi-timeframe (MTF) table directly on the chart, showing Stoch RSI K and RSI values per timeframe.
Cell background colors are driven by predefined value ranges, while text color turns green or red depending on whether the value is rising or falling compared to the previous candle on the same timeframe.
The RSI color conditions are based on the levels 36, 46, 56, and 65.
The Timeframe Pack selector works as follows:
Pack 1 (BNC): 3m, 9m, 27m, 1h, 81m, 3h, 9h, 12h, 1D, 3D, 1W, 9D
Pack 2: 1h through 24h
Pack 3: 1D through 24D
Pack 4 (Custom): fully user-defined timeframes via the 24 slots
Only when Pack 4 (Custom) is selected do the custom timeframe slots apply; in Packs 1–3 they are ignored.
All visual behavior (box colors, text colors, transparency, or a single-color override) is configurable under Style, and the entire table can be toggled on or off.
Göstergeler ve stratejiler
Liquidity Sweep Guardian (Universal % or point based)
Liquidity Sweep Guardian - Complete User Guide
## Overview
The **Liquidity Sweep Guardian** is a visual warning system designed to prevent premature counter-trend trades (fades) near Previous Day High (PDH) and Previous Day Low (PDL) levels. This indicator helps you avoid one of the most common trading mistakes: fading too early before liquidity sweeps complete.
---
## 🎯 Core Trading Principle
### **THE GOLDEN RULE: Don't Fade Until It's Unlocked**
Price often **accelerates into key levels** to sweep liquidity before reversing. Trading against this momentum is extremely dangerous.
**The Process:**
1. **Danger Zone** (Red/White Box) = ⚠️ **DO NOT FADE** - Sweep likely incoming
2. **Sweep Occurs** (Triangle marker appears) = Price penetrates the level
3. **Reclaim Happens** (Price returns above/below level) = Level is tested
4. **🔓 UNLOCKED** (Gold border, green label) = **NOW you may CONSIDER a fade**
> **Important:** "UNLOCKED" means you may now *consider* a fade setup. It is NOT a trade signal itself. You still need your entry confirmation, risk management, and trade plan.
---
## 📊 Visual Elements Explained
### 1. **Danger Zone Boxes (Red Border by Default)**
**Two types of zones around PDH/PDL:**
- **Outer Danger Zone** (White fill): ±75pts (or 0.30%) around the level
- Indicates proximity to a key level where sweeps commonly occur
- Yellow/cautious trading zone
- **Inner Critical Zone** (Black fill): ±25pts (or 0.10%) around the level
- Highest probability area for liquidity sweep traps
- Avoid fading here at all costs
**What to do:**
- When price enters these zones, **wait and watch**
- Do not initiate counter-trend positions
- Allow the sweep to play out
### 2. **Unlocked Zones (Gold Border #ffeb3b)**
When a zone turns **gold/yellow** with green fill:
- The level has been swept AND reclaimed
- The liquidity grab is complete
- You may now look for fade opportunities with proper confirmation
### 3. **PDH/PDL Lines**
- **PDH Line** (Red): Previous Day High with price label
- **PDL Line** (Green): Previous Day Low with price label
- These are your key reference levels for the session
### 4. **Sweep Labels**
**Triangle Markers (SWEEP):**
- **Green Triangle** = Clean sweep (10-25pts penetration)
- **Orange Triangle** = Extended sweep (25-50pts penetration)
- **Red Triangle** = Deep penetration (50+ pts) - likely continuation, not reversal
**Warning Labels:**
- **⚠️ DEEP CONTINUATION?** = Penetration too deep, probably NOT a reversal setup
**Unlock Labels:**
- **🔓 LONG UNLOCKED** = PDL swept and reclaimed, may consider long fades
- **🔓 SHORT UNLOCKED** = PDH swept and reclaimed, may consider short fades
---
## ⚙️ Settings Guide
### **Calculation Mode**
**Use Percentage Mode (Default: ON)**
- ✅ **Enabled**: Universal mode - works on NQ, ES, RTY, stocks, crypto, forex
- ❌ **Disabled**: Fixed points mode - for specific instruments only
**When to use each:**
- **Percentage Mode**: Trading multiple instruments, or instruments with varying price levels
- **Fixed Points Mode**: Single instrument focus (e.g., only trading NQ at current levels)
### **Danger Zone Settings**
**Percentage Mode (Default for Universal Use):**
- **Danger Zone**: 0.30% each side (≈75pts on NQ@25,000)
- **Critical Zone**: 0.10% each side (≈25pts on NQ@25,000)
**Fixed Points Mode (For NQ Specifically):**
- **Danger Zone**: 75 points each side
- **Critical Zone**: 25 points each side
**Adjustment Tips:**
- For more volatile instruments: Increase percentages/points
- For less volatile instruments: Decrease percentages/points
- For higher timeframes: Use wider zones
- For lower timeframes: Use tighter zones
### **Sweep Classification**
**What defines a "real" sweep:**
- **Minimum**: 10pts / 0.04% - Shallow penetration may not grab enough liquidity
- **Optimal**: 10-25pts / 0.04-0.10% - "Goldilocks zone" for reversal setups
- **Extended**: 25-50pts / 0.10-0.20% - Deeper sweep, less reliable
- **Continuation**: 50+pts / 0.20%+ - Too deep, likely NOT reversing
**Max Bars for Reclaim**: 5 bars (default)
- Price should reclaim the level relatively quickly
- If it takes too long, the sweep may have failed
### **Visual Customization**
**Box Settings:**
- **Left Extension**: 60 bars (how far back the box extends)
- **Right Extension**: 50 bars (how far forward the box extends)
**Toggle Options:**
- Show/Hide Danger Zone Boxes
- Show/Hide PDH/PDL Lines
- Show/Hide Price Labels on lines
- Show/Hide Sweep Labels
- Show/Hide Unlock Labels
### **Color Customization**
All colors are fully customizable:
- Danger Zone Fill & Border
- Critical Zone Fill & Border
- Unlocked Zone Fill & Border
- PDH/PDL Line Colors
- PDH/PDL Label Colors
- Border Widths (1-5 pixels)
- Line Widths (1-5 pixels)
---
## 🎓 Trading Strategy Examples
### **Example 1: Long Setup at PDL**
1. **Morning**: Price approaches PDL (danger zone appears)
2. **Don't Fade Yet**: Price enters critical zone - resist urge to buy
3. **Sweep**: Price drops 15pts below PDL (green triangle appears)
4. **Reclaim**: Price closes back above PDL within 3 bars
5. **🔓 UNLOCKED**: Gold border + "LONG UNLOCKED" label appears
6. **Trade Setup**: Now look for bullish confirmation (order flow, structure, etc.)
### **Example 2: Avoiding a Trap at PDH**
1. **Afternoon**: Price rallies into PDH danger zone
2. **Temptation**: You want to short here (it "looks toppy")
3. **Sweep**: Price breaks 50pts above PDH (red triangle + ⚠️ warning)
4. **Continuation**: Deep penetration suggests continuation, not reversal
5. **Result**: No unlock occurs, price keeps running higher - trap avoided!
### **Example 3: Failed Unlock (No Trade)**
1. Price sweeps PDL by 12pts (green triangle)
2. Price struggles to reclaim PDL, stays below for 10+ bars
3. No "UNLOCKED" label appears
4. **Correct Action**: Do not fade - sweep failed to reclaim
---
## 📱 Alerts
The indicator includes built-in alerts for:
- **Entering Danger Zones**: Get warned when price approaches PDH/PDL
- **Sweep Detection**: Know immediately when a level is swept
- **Unlock Signals**: Get notified when fade setups become available
- **Continuation Warnings**: Alert when penetration suggests continuation
**To Set Alerts:**
1. Right-click indicator → "Add Alert"
2. Select desired alert condition
3. Configure notification preferences
---
## ⚠️ Important Disclaimers
### **What This Indicator IS:**
✅ A visual warning system to prevent premature fades
✅ A tool to identify when liquidity sweeps have completed
✅ A framework for counter-trend trade timing
### **What This Indicator IS NOT:**
❌ A complete trading system
❌ An entry signal generator
❌ A guarantee of trade success
❌ A substitute for proper risk management
### **Always Remember:**
- "UNLOCKED" = You may CONSIDER a fade (not a signal to trade)
- You still need your own entry confirmation
- You still need proper stop placement
- You still need position sizing and risk management
- Not every unlock leads to a successful trade
- Market context and order flow still matter
---
## 🔧 Recommended Settings by Instrument
### **NQ (Nasdaq-100 E-mini Futures)**
- Mode: Percentage or Fixed Points
- Percentage: 0.30% / 0.10% (default)
- Fixed Points: 75pts / 25pts (default)
### **ES (S&P 500 E-mini Futures)**
- Mode: Percentage
- Danger: 0.25% / Critical: 0.08%
- Or Fixed Points: 15pts / 5pts
### **RTY (Russell 2000 E-mini Futures)**
- Mode: Percentage
- Danger: 0.35% / Critical: 0.12%
- Or Fixed Points: 8pts / 3pts
### **Stocks (High Volume Large Caps)**
- Mode: Percentage (recommended)
- Danger: 0.20-0.40% / Critical: 0.08-0.15%
- Adjust based on ATR and volatility
### **Crypto (BTC, ETH)**
- Mode: Percentage (essential)
- Danger: 0.40-0.60% / Critical: 0.15-0.20%
- Higher volatility requires wider zones
---
## 💡 Pro Tips
1. **Use on Higher Timeframes**: Works best on 5min, 15min, 1hr charts
2. **Combine with Order Flow**: Use with footprint/delta for confirmation
3. **Watch Volume**: Strong volume on sweep = better reversal potential
4. **Consider Time of Day**: Sweeps during RTH often more reliable
5. **Multiple Timeframes**: Check if higher TF also shows unlock
6. **Don't Force Trades**: Not every session produces clean setups
7. **Journal Results**: Track which unlock types work best for you
8. **Respect Continuation Signals**: When indicator says "too deep," listen
---
## 🆘 Troubleshooting
**Q: Box isn't showing up**
A: Check that "Show Danger Zone Boxes" is enabled in Visual Settings
**Q: No price on labels**
A: Enable "Show Price Labels on Lines" in Visual Settings
**Q: Zones seem too tight/wide**
A: Adjust Danger Zone % or points based on current volatility
**Q: Getting too many/too few unlocks**
A: Adjust sweep classification thresholds (min/max penetration)
**Q: Want thicker/thinner lines**
A: Adjust line widths in "PDH/PDL Line Colors" section
**Q: Colors not matching my chart theme**
A: Fully customize all colors in the color settings groups
---
## 📚 Additional Resources
- Study price action around PDH/PDL on your instruments
- Learn about liquidity sweeps and stop hunts
- Understand market structure and order flow
- Practice identifying setups on replay/historical data
- Keep a trading journal of unlock scenarios
---
*Remember: The best trade is often the one you don't take. This indicator helps you avoid the trades you shouldn't take, so you can focus on the ones you should.*
ORB M15 Fibo din ORB EMA200 MTFTesting a new idea based on ORB m15. Still on testing, not worth it to translate it into English
First Candle Range (FCR) Gold Strategy - EtubersThe 18:00 (6:00 PM) candle is widely used by traders in the Forex and Futures markets because it marks the New York market rollover and the start of the Asian session.
How the Strategy Works:
- The Range: The High and Low prices of the 1-hour candle (18:00–19:00) create a "Supply and Demand" zone.
- The Breakout: A candle closing above the high signals a bullish breakout; a candle closing below the low signals a bearish breakout.
- Institutional Memory: By extending this zone forward for 4 days, traders can identify where "old" 18:00 levels act as support or resistance in the future.
- Execution: Traders often wait for a breakout followed by a "retest" of the box boundary to enter a high-probability trade.
Unmitigated High Low (Day/MTF)
# Unmitigated High Low (Day/MTF)
## Overview
The **Unmitigated High Low (Day/MTF)** indicator tracks previous timeframe highs and lows that remain "unmitigated" (untouched by price) and displays them as dynamic support and resistance levels. By default, the indicator monitors daily highs and lows, making it ideal for intraday traders seeking key institutional levels, though it supports any multi-timeframe (MTF) interval. The indicator extends horizontal lines from each level until price touches them, creating visual "zones of interest" where price action may react.
## What It Does
This indicator identifies and plots two types of levels on your chart:
- **High Levels** (yellow lines) - Previous timeframe highs that price has not yet reached or exceeded
- **Low Levels** (cyan lines) - Previous timeframe lows that price has not yet broken below
Each time a new timeframe period completes (e.g., daily candle closes), the indicator captures that period's high and low and extends them forward as horizontal reference lines. When price finally touches or crosses these levels, they become "mitigated" - the line stops extending, becomes transparent (60% opacity), and is marked as historical.
## Key Features
**Multi-Timeframe Capability**: While defaulting to daily ("D") timeframe, you can switch to any interval (15-minute, 4-hour, weekly, etc.) to match your trading style.
**Band Visualization**: The indicator creates colored bands between the two most recent active levels in each direction - an upper band (purple fill) between the 1st and 2nd unmitigated highs, and a lower band (cyan fill) between the 1st and 2nd unmitigated lows.
**Visual Clarity**: Active unmitigated levels display in full color with customizable line width (default: 2), while mitigated levels fade to 60% transparency, helping you distinguish between current zones and historical references.
## How to Use It
Add the indicator to your chart and observe where unmitigated levels cluster - these zones often act as magnets for institutional order flow. The most recent unmitigated high represents overhead supply/resistance, while the most recent unmitigated low represents underlying demand/support. Traders commonly use these levels for:
- Entry zones when price approaches unmitigated levels with confluent signals
- Stop-loss placement beyond unmitigated levels to avoid institutional sweeps
- Profit targets at the next unmitigated level in the direction of your trade
- Breakout confirmation when price finally mitigates a long-standing level
The colored bands between the 1st and 2nd levels highlight "zones of friction" where price may consolidate or reverse before continuing its trend.
## Settings
**HL interval**: Select your desired timeframe (default: "D" for daily)
**High Line Color**: Color for unmitigated high levels (default: yellow #fff176)
**Low Line Color**: Color for unmitigated low levels (default: cyan #00bcd4)
**Upper Band Fill**: Fill color between 1st and 2nd highs (default: purple #880e4f at 85% transparency)
**Lower Band Fill**: Fill color between 1st and 2nd lows (default: cyan #00bcd4 at 85% transparency)
**Line Width**: Thickness of level lines (default: 2, range: 1-5)
Power Law of Diminishing Returns for BTC:USDTThis is a script to see if the Law of Diminshining Returns is applicable to BTC/USD
ATR Daily & Weekly With Stop Buffer this script shows Daily & Weekly ATR and also add 10% Stop buffer calculation so you can add stop loss.
Multi-Timeframe 5 Moving Averages//@version=5
indicator("Multi-Timeframe 5 Moving Averages", shorttitle="MTF MA x5", overlay=true)
// ============== MOVING AVERAGE 1 ==============
ma1_enabled = input(true, title="Enable MA1", group="Moving Average 1")
ma1_period = input.int(9, title="MA1 Period", minval=1, group="Moving Average 1")
ma1_type = input.string("EMA", title="MA1 Type", options= , group="Moving Average 1")
ma1_color = input(color.new(#FF6B35, 0), title="MA1 Color", group="Moving Average 1")
// ============== MOVING AVERAGE 2 ==============
ma2_enabled = input(true, title="Enable MA2", group="Moving Average 2")
ma2_period = input.int(20, title="MA2 Period", minval=1, group="Moving Average 2")
ma2_type = input.string("EMA", title="MA2 Type", options= , group="Moving Average 2")
ma2_color = input(color.new(#004E89, 0), title="MA2 Color", group="Moving Average 2")
// ============== MOVING AVERAGE 3 ==============
ma3_enabled = input(true, title="Enable MA3", group="Moving Average 3")
ma3_period = input.int(50, title="MA3 Period", minval=1, group="Moving Average 3")
ma3_type = input.string("SMA", title="MA3 Type", options= , group="Moving Average 3")
ma3_color = input(color.new(#F7931E, 0), title="MA3 Color", group="Moving Average 3")
// ============== MOVING AVERAGE 4 ==============
ma4_enabled = input(true, title="Enable MA4", group="Moving Average 4")
ma4_period = input.int(100, title="MA4 Period", minval=1, group="Moving Average 4")
ma4_type = input.string("SMA", title="MA4 Type", options= , group="Moving Average 4")
ma4_color = input(color.new(#1E88E5, 0), title="MA4 Color", group="Moving Average 4")
// ============== MOVING AVERAGE 5 ==============
ma5_enabled = input(true, title="Enable MA5", group="Moving Average 5")
ma5_period = input.int(200, title="MA5 Period", minval=1, group="Moving Average 5")
ma5_type = input.string("EMA", title="MA5 Type", options= , group="Moving Average 5")
ma5_color = input(color.new(#43A047, 0), title="MA5 Color", group="Moving Average 5")
// ============== FUNCTION TO CALCULATE MA ==============
calcMA(period, maType, source) =>
switch maType
"SMA" => ta.sma(source, period)
"EMA" => ta.ema(source, period)
"WMA" => ta.wma(source, period)
=> ta.sma(source, period)
// ============== CALCULATE MOVING AVERAGES (CHART TIMEFRAME ONLY) ==============
ma1_value = calcMA(ma1_period, ma1_type, close)
ma2_value = calcMA(ma2_period, ma2_type, close)
ma3_value = calcMA(ma3_period, ma3_type, close)
ma4_value = calcMA(ma4_period, ma4_type, close)
ma5_value = calcMA(ma5_period, ma5_type, close)
// ============== PLOT MOVING AVERAGES ==============
plot(ma1_enabled ? ma1_value : na, title="MA1", color=ma1_color, linewidth=2)
plot(ma2_enabled ? ma2_value : na, title="MA2", color=ma2_color, linewidth=2)
plot(ma3_enabled ? ma3_value : na, title="MA3", color=ma3_color, linewidth=2)
plot(ma4_enabled ? ma4_value : na, title="MA4", color=ma4_color, linewidth=2)
plot(ma5_enabled ? ma5_value : na, title="MA5", color=ma5_color, linewidth=2)
Strat Structure Engine 3-F2 Tiered Strat Structure Engine – 3→F2 Tiered Dashboard
Overview
The Strat Structure Engine – 3→F2 Tiered Dashboard is a structure-focused indicator built on The Strat methodology, designed to identify, score, and tier high-quality 3 → Failed 2 (3→F2) structural failures in real time.
Rather than treating all Failed 2s equally, this script evaluates structure strength, volatility, volume participation, and candle quality, producing a tiered signal system that helps traders prioritize only the most meaningful setups.
This indicator is intended for traders who want objective structure validation, not subjective pattern guessing.
Core Concepts
This script focuses on three-bar structure transitions, specifically:
3 → Failed 2 (3→F2)
Supporting context via 3→1 and 1→3 structural sequences
Optional Inside Bar detection for compression awareness
The primary edge comes from grading the quality of the 3→F2, not merely detecting it.
3→F2 Tiered Scoring System
When a confirmed 3-bar is followed by a strict Failed 2, the script assigns a numeric score (0–8) based on four objective components:
1. Three-Bar Structure Quality
Measured using ATR-based range expansion:
Large expansion relative to ATR receives higher scores
Ensures the setup originates from meaningful volatility, not noise
2. Failed 2 Close Quality
Evaluates where price closes relative to the midpoint of the prior 3-bar:
Strong closes through the midpoint score higher
Weak or indecisive closes are downgraded
3. Body Dominance
Measures the body-to-range ratio of the Failed 2 candle:
Large, decisive bodies indicate real participation
Wicks and indecision reduce the score
4. Relative Volume Confirmation
Compares current volume against a moving average baseline:
Elevated volume confirms acceptance
Low volume reduces conviction
Tier Classification
Based on the total score, each valid 3→F2 is classified into a tier:
A+ Tier → Exceptional structure, volatility, and participation
A Tier → High-quality, trade-worthy setup
B Tier → Valid but lower-confidence structure
Below Threshold → Ignored (filtered out)
Only setups meeting a minimum quality threshold are labeled, helping reduce chart clutter and overtrading.
Visual & Dashboard Features
Clear directional labels plotted above or below bars
Tier designation and score display (e.g., 6/8)
Configurable toggles for:
Failed 2 labels
3→1 and 1→3 sequence labels
Inside Bar labels
3→F2 tier labels
Designed to work cleanly across all timeframes and instruments
Intended Use
This indicator is best used as:
A structure qualification layer, not a standalone entry trigger
A tool to rank setups, not force trades
Confirmation alongside:
Key levels (VWAP, Value Area, prior highs/lows)
Order flow or delta tools
Session context (RTH, Globex, IB)
What This Indicator Is Not
Not a prediction tool
Not a signal that guarantees outcome
Not a replacement for risk management
It objectively answers one question only:
“Is this 3→Failed 2 structurally strong enough to matter?”
Goldbach Timing Model This indicator is designed as a simple visual framework rather than a rigid signal system. It highlights time-based structure and key alignment zones to help identify when price behavior is more likely to be active or responsive. The logic is intentionally flexible, allowing the user to apply their own discretion instead of relying on strict conditions. Its primary value is visual clarity and context, not automatic entries or exits.
Composite Index [Auto Signals]Composite Index
Description (描述正文):
Overview This is an enhanced version of the famous Composite Index (CI) developed by Connie Brown. While the traditional RSI is confined between 0 and 100, often masking true momentum in strong trends, the Composite Index is uncapped and incorporates a momentum component to reveal the market's true structural strength.
I have engineered this script to include Automated Signal Markers based on the crossover of the Composite Index and its Slow Moving Average. This helps traders instantly identify momentum shifts and "Timing" entries/exits without manual guesswork.
Key Features
Uncapped Momentum: Unlike RSI, the CI can go anywhere, preventing the "flattening" effect seen in strong trending markets (e.g., TSLA, NVDA).
Automated Signals:
▲ Green Triangle (Launch): Triggers when the Gray CI line crosses ABOVE the Red Slow MA. This indicates bearish momentum is exhausted and bulls are regaining control.
▼ Red Triangle (Warning): Triggers when the Gray CI line crosses BELOW the Red Slow MA. This indicates bullish momentum is failing, serving as an early warning for exits or tightening stops.
Classic Formula: Uses the standard Connie Brown parameters (14, 9, 3) + SMA smoothing for reliable divergence detection.
How to Use This Indicator This script is best used as a companion to trend indicators like TTM Squeeze or Moving Average Ribbons.
For Entries (The "Dip Buy"): In an uptrend, wait for a pullback. When the Green Triangle (▲) appears, it confirms that the pullback is over and momentum has turned back up.
For Exits (The "Top"): Look for Divergence. If Price makes a Higher High but the Composite Index makes a Lower High—followed by a Red Triangle (▼)—this is a high-probability sell signal.
The "Slow MA" Filter: The signals are generated only when the CI crosses the Slow MA (Red Line). This filters out the noise of minor fluctuations (crossing the Green line) and focuses on significant momentum changes.
Settings
RSI Period: 14 (Default)
Momentum Period: 9 (Default)
Signal Logic: Crossover/Crossunder of the Slow MA (33 Period).
Disclaimer This tool is for educational purposes only. Always combine momentum signals with price action and structure analysis.
ADX&DIThis is an enhanced version of the classic ADX and Directional Movement Index (DMI). It is designed to filter out ranging markets and visually highlight trend strength.
Key Features:
Dual Threshold System:
Level 1 (Default 20): Signals the start of a trend. The background fill appears with high transparency.
Level 2 (Default 25): Signals a strong trend. The background fill becomes more opaque/solid to indicate momentum.
Visual Clarity: The area between DI+ and DI- is only filled when the ADX is above your defined thresholds. This helps you ignore noise in low-volatility environments.
Clean Settings: The logic is optimized so you can easily adjust colors and transparency directly in the "Style" tab without cluttered input menus.
Professional 3SD Institutional Rejection
This indicator identifies institutional "liquidity grab" and "momentum exhaustion" zones using the statistical extremes of 3 Standard Deviations (3SD) on Bollinger Bands. Unlike standard strategies, it doesn't just look for band touches; it confirms price "wicking" outside the 3SD and closing back inside the 2SD band (rejection), while ensuring the Money Flow Index (MFI) shows signs of exhaustion. It is highly effective on 1H, 4H, and Daily timeframes for mean-reversion setups targeting the median line.
A program written by a beginner# TXF Choppy Market Detector (Whipsaw Filter)
## Introduction
This project is a technical indicator developed in **Pine Script v5**, specifically optimized for **Taiwan Index Futures (TXF)** intraday trading.
The TXF market is known for its frequent periods of low-volatility consolidation following sharp moves, often resulting in "whipsaws" (double-loss scenarios for trend followers). This script utilizes **volatility analysis** and **trend efficiency metrics** to filter out noise and detect potential "Stop Hunting" or "Liquidity Sweep" setups within range-bound markets.
## Methodology & Algorithms
The strategy operates on the principle of **Mean Reversion**, combining two core components:
### 1. Market Regime Filter: Choppiness Index (CHOP)
We use the Choppiness Index (originally developed by E.W. Dreiss) to determine if the market is trending or consolidating based on **Fractal Dimension** theory.
* **Logic**:
The index ranges from 0 to 100. Higher values indicate low trend efficiency (consolidation), while lower values indicate strong directional trends.
* **Condition**: `CHOP > Threshold` (Default: 50).
* **Application**: When this condition is met, the background turns **gray**, signaling a "No-Trade Zone" for trend strategies and activating the Mean Reversion logic.
### 2. Whipsaw Detection: Bollinger Bands
Bollinger Bands are used to define the dynamic statistical extremities of price action.
* **Logic**:
We identify **Fakeouts** (False Breakouts) that occur specifically during the choppy regime identified above. This is often where institutional traders hunt for liquidity (stops) before reversing the price.
#### Signal Algorithms (Pseudocode)
**A. Bull Trap (Washout High)**
A false upside breakout designed to trap long traders.
```pine
Condition:
1. Is_Choppy == true (Market is sideways)
2. High > Upper_Bollinger_Band (Price pierces the upper band)
3. Close < Upper_Bollinger_Band (Price fails to hold and closes back inside)
Global J-1 & W-1 Levels (Fixed Lines / Lignes Fixes)Description
This indicator automatically plots key price levels from the previous day (D-1) and the previous week (W-1). It is designed for Day Traders and Scalpers who need clear visual references without cluttering their chart with past history.
Unlike standard indicators that use plot() and create "step-like" lines, this script uses graphic objects (line.new) to display fixed, infinite horizontal lines, just as if you had drawn them manually.
Key Features:
D-1 Levels (Blue): Previous Day High (DR-1) and Low (DS-1).
W-1 Levels (Red): Previous Week High (WR-1) and Low (WS-1).
Clean Chart: Lines are displayed only for the current session. No historical clutter.
Readability: Dashed lines with level names and exact prices displayed on the right.
How to use it? These levels often act as institutional support and resistance. Watch for price reactions (bounces or breakouts) near these zones to confirm your trade entries.
Vishall BTST- final - option 1.2Reverse of X, Z from - Vishall BTST- final - option 1.1
X = Spot Price @ Normal - Spot Price @HA
Z = Spot Future@ Normal - Spot Future Price @ HA
MACD Divergences + RSI/ADXMACD Divergences + RSI/ADX Indicator
This indicator combines the classic MACD divergence detection with real-time RSI and ADX monitoring in fixed corner labels.
🔹 MAIN FEATURES:
- Automatic MACD divergence detection (Classic & Hidden)
- Visual RSI and ADX labels fixed in the right corner
- Color-coded trend direction (Green: DI+ > DI- | Red: DI- > DI+)
- Customizable MACD settings (Fast/Slow Length, Signal Smoothing)
- Configurable RSI and ADX periods
- Built-in alerts for all divergence types
🔹 DIVERGENCE TYPES:
- Classic Bullish: Price makes lower lows, MACD makes higher lows (Reversal signal)
- Classic Bearish: Price makes higher highs, MACD makes lower highs (Reversal signal)
- Hidden Bullish: Price makes higher lows, MACD makes lower lows (Continuation signal)
- Hidden Bearish: Price makes lower highs, MACD makes higher highs (Continuation signal)
🔹 RSI & ADX DISPLAY:
- Fixed labels in top-right (RSI) and bottom-right (ADX) corners
- Real-time values updated on every bar
- Background color changes based on directional movement (DI+ vs DI-)
- Large, easy-to-read format
🔹 HOW TO USE:
1. Watch for divergence patterns on MACD histogram
2. Monitor RSI for overbought/oversold conditions
3. Check ADX for trend strength (>25 = strong trend)
4. Green labels = Bullish momentum (DI+ > DI-)
5. Red labels = Bearish momentum (DI- > DI+)
🔹 BEST FOR:
- Swing trading on 4H and Daily timeframes
- Trend-following strategies with mo
QuantLabs Multi Asset Similarity Matrix [V3 Final]The Market is a graph. See the flows:
The QuantLabs MASM is not a standard correlation table. It is an Alpha-Grade Scanner architected to reveal the hidden "hydraulic" relationships between global macro assets in real-time.
Rebuilt from the ground up for Version 3, this engine pushes the absolute limits of the Pine Script™ runtime. It utilizes a proprietary Logarithmic Math Engine, Symmetric Compute Optimization, and a futuristic "Ghost Mode" interface to deliver a 15x15 real-time correlation matrix with zero lag.
Under the Hood: The Quant Architecture
We stripped away standard libraries to build a lean, high-performance engine designed for institutional-grade accuracy.
1. Alpha Math Engine (Logarithmic Returns) Most tools calculate correlation based on Price, which generates spurious signals (e.g., "Everything is correlated in a bull run").
The Solution: Our engine computes Logarithmic Returns (log(close /close )) by default. This measures the correlation of change (Velocity & Vector), not price levels.
The Result: A mathematically rigorous view of statistical relationships that filters out the noise of general market drift.
Dual-Core: Toggle seamlessly between "Alpha Mode" (Log Returns) for verified stats and "Visual Mode" (Price) for trend alignment.
Calculation Modes: Pearson (Standard), Euclidean (Distance), Cosine (Vector), Manhattan (Grid).
2. Symmetric Compute Optimization Calculating a 15x15 matrix requires evaluating 225 unique relationships per bar, which often crashes memory limits.
The Fix: The V3 Engine utilizes Symmetric Logic, recognizing that Correlation(A, B) == Correlation(B, A).
The Gain: By computing only the lower triangle of the matrix and mirroring pointers to the upper triangle, we reduced computational load by 50%, ensuring a lightning-fast data feed even on lower timeframes.
3. Context-Aware "Ghost Mode" The UI is designed for professional traders who need focus, not clutter.
Smart Detection: The matrix automatically detects your current chart's Ticker ID. If you are trading QQQ, the matrix will visually highlight the Nas100 row and column, making them opaque and bright while dimming the rest.
Dynamic Transparency: Irrelevant data ("Noise" < 0.3 correlation) fades into the background. Only significant "Alpha Signals" (> 0.7) glow with full Neon Saturation.
Key Features
Dominant Flow Scanner: The matrix scans all 105 unique pairs every tick and prints the #1 Strongest Correlation at the bottom of the pane (e.g., DOMINANT FLOW: Bitcoin ↔ Nas100 ).
Streak Counter: A "Stubbornness" metric that tracks how many consecutive days a strong correlation has persisted. Instantly identify if a move is a "flash event" or a "structural trend."
Neon Palette: Proprietary color mapping using Electric Blue (+1.0) for lockstep correlation and Deep Red (-1.0) for inverse hedging.
Usage Guide
Placement: Best viewed in a bottom pane (Footer).
Assets: Pre-loaded with the Essential 15 Macro Drivers (Indices, BTC, Gold, Oil, Rates, FX, Key Sectors). Fully editable via settings (Ticker|Name).
Reading the Grid:
🔵 Bright Blue: Assets moving in lockstep (Risk-On).
🔴 Bright Red: Assets moving perfectly opposite (Hedge/Risk-Off).
⚫ Faded/Black: No statistical relationship (Decoupled).
Key Improvements Made:
Formatting: Added clear bullet points and bolding to make it scannable.
Clarity: Clarified the "Logarithmic Returns" section to explain why it matters (Velocity vs. Price Levels).
Tone: Maintained the "high-tech/quant" vibe but removed slightly clunky phrases like "spurious signals" (unless you prefer that academic tone, in which case I left it in as it fits the persona).
Structure: Grouped the "Modes" under the Math Engine for better logic.
Created and designed with love by David James @QuantLabs : )
Multi-Timeframe High Low Marking LinesThis indicator automatically draws clean horizontal lines at the high and low of the previous 10 periods (adjustable) for four different timeframes simultaneously: Daily, Weekly, Monthly, and Quarterly.
Perfect for marking key support/resistance levels across multiple timeframes on any chart.
Key features:
• Shows previous 10 highs and lows per timeframe (change to 5, 15, 20 etc. in settings)
• Lines extend 20 bars to the right so they remain visible (adjustable)
• Individual on/off switch for each timeframe
• Clean blue lines, max 500 lines limit respected
• Works perfectly on any chart timeframe (1-minute to monthly)
• No repainting – lines only appear after the period has closed
Use cases:
Spot major daily/weekly/monthly support & resistance at a glance
Trade breakouts and reversals with higher-timeframe confirmation
Combine with your existing strategy (ICT, SMC, price action)
Ideal for stocks, forex, crypto and futures
Settings explained:
Timeframe 1–4 → Choose any timeframe (D, W, M, 3M already preset)
Show/Hide → Turn any timeframe on or off instantly
Periods to show → How many previous highs/lows you want visible
Extend lines → How far right each line continues (default 20 bars)
Completely free to use.
If you like it, please add to favorites and leave a comment – it helps other traders find it!
Enjoy cleaner charts and stronger confluence.
Happy trading!
Bollinger Bands + MA 50/100/200📊 Bollinger Bands + MA 50 / 100 / 200 Indicator
This indicator combines Bollinger Bands with key Moving Averages (50, 100, 200) to help you spot trend direction, volatility, and potential reversal zones in one clean view.
🔹 Bollinger Bands
* Customizable length & MA type (SMA, EMA, RMA, WMA, VWMA)
* Visualizes market volatility
* Upper & lower bands help identify overbought / oversold conditions
🔹 Moving Averages
* MA 50 → Short-term trend
* MA 100 → Medium-term trend
* MA 200 → Long-term trend & major support/resistance
* Easy toggle on/off for clean charting
💡 How to use
* Price near upper band + strong MA trend → possible continuation
* Price near lower band → watch for bounce or breakdown
* MA alignment (50 > 100 > 200) → bullish trend
* MA cross & BB squeeze → potential breakout incoming
⚠️ Best used with price action & risk management
📌 Works on stocks, crypto, forex, indices
Markov: Transition Matrix [Daily Timeframe]Description
This indicator computes a 3-state Markov chain from price action and visualizes the transition probabilities between daily states:
• Up: daily % change > threshold
• Down: daily % change < -threshold
• Sideways: |daily % change| ≤ threshold
From those states, it builds transition matrices:
• Today → Tomorrow (1 day ahead)
• Today → In 2 days
• Today → In 3 days
Each matrix cell shows:
P(next state | current state)
Rows are the current state (today), columns are the future state (tomorrow / +2 / +3).
Each row sums to 100% (when there is sufficient sample size).
________________________________________
How to read it (trader workflow)
1. Identify the current regime (the most recent confirmed daily state).
2. Look at the row matching that regime:
• The ★ marks the highest probability outcome for that row (most likely next state).
• Heatmap intensity increases as probability increases.
• Each row shows its own sample size (n=...) so you can judge statistical support.
3. Use Quick-read:
• “Now” = current regime
• “Best” = top conditional outcome + probability
• “2nd” = second-best outcome + probability
4. Use Universe (N):
• Shows the marginal distribution: how often days are Up/Down/Sideways across the whole dataset.
________________________________________
Settings
Core logic
• Sideways threshold: controls how strict “Sideways” is.
Example: 0.001 = ±0.10% daily move is considered Sideways.
Display
• Toggle 1D / 2D / 3D matrices.
• Highlight best probability per row (★).
• Show n per row (row transition count).
• Focus: current state row only to reduce noise and speed decision-making.
• Quick-read row for the current regime.
Theme (fully customizable)
All colors can be customized:
• Up / Down / Sideways base colors
• Header background + header text
• Values text
• Quick-read neutral background
This makes it suitable for both light and dark chart themes.
________________________________________
Notes / Limitations
• The indicator is designed for daily sessions. It uses daily close-to-close returns to classify states and update the Markov chain once per day.
• On very volatile assets, a very small threshold can make Sideways rare. If you want a more frequent Sideways regime, increase the threshold.
• This is a statistical visualization tool, not a trading system.
________________________________________
Disclaimer (TradingView-friendly)
This script is provided for educational and informational purposes only and does not constitute financial advice. Trading involves risk. Past probabilities do not guarantee future results. Use at your own discretion and always apply proper risk management.






















