Göstergeler ve stratejiler
ICT Macro H1"H1 Candle Time Box" is a custom TradingView indicator that highlights a configurable time window surrounding the close of each 1-hour (H1) candle. The indicator draws a transparent box 15 minutes before and after each H1 candle close (by default), helping traders visualize time-based reaction zones.
🔍 Features:
Custom time window: Users can set how many minutes before and after the H1 close the box should appear.
Dynamic positioning: Boxes are drawn slightly above the candles to avoid overlap with price bars.
Live time labels: Each box displays its time range (e.g., "08:45 - 09:15") based on the start and end time of the zone.
Auto-cleaning: Only a limited number of recent boxes (default: 5) are shown, keeping the chart clean.
Requires 1-minute chart for precise timing.
This tool is especially helpful for intraday traders to identify areas of interest or market reactions before and after key hourly closes.
True Range Orginal📌 Description – True Range Original
This indicator calculates the range (price spread) of the last N candles and displays it directly on the chart, along with suggested dynamic stop-loss levels based on recent volatility. Ideal for scalpers and day traders working on short timeframes such as 1-minute charts.
🔍 Features:
Calculates the difference between the highest high and lowest low of the last N bars (default: 15).
Plots a floating label with the current range value, updated every 5 candles.
Displays 4 dynamic stop levels:
For long positions:
Stop at 1x range (green line)
Stop at 1.5x range (light green line)
For short positions:
Stop at 1x range (red line)
Stop at 1.5x range (dark red line)
⚙️ Inputs:
Range period (number of bars)
Stop multiplier 1 (default: 1.0)
Stop multiplier 2 (default: 1.5)
📈 Usage:
This tool helps you size your stop-loss dynamically based on recent price action instead of using fixed values. It can be used alone or in combination with other tools like support/resistance, volume, or aggression indicators.
[blackcat] L3 Ichimoku FusionCOMPREHENSIVE ANALYSIS OF THE L3 ICHIMOKU FUSION INDICATOR
🌐 Overview:
The L3 Ichimoku Fusion is a sophisticated multi-layered technical analysis tool integrating classic Japanese market forecasting techniques with enhanced dynamic elements designed specifically for identifying potential turning points in financial instruments' pricing action.
Key Purpose:
To provide traders with an intuitive yet powerful framework combining established ichimoku principles while incorporating additional validation checkpoints derived from cross-timeframe convergence studies.
THEORETICAL FOUNDATION EXPLAINED
🎓 Conceptual Background:
:
• Conversion & Base Lines tracking intermediate term averages
• Lagging Span providing delayed feedback mechanism
• Lead Spans projecting future equilibrium states
:
• Adaptive parameter scaling options
• Automated labeling system for critical junctures
• Real-time alert infrastructure enabling immediate response capability
PARAMETER CONFIGURATION GUIDE
⚙️ Input Parameters Explained In Detail:
Regional Setting Selection:**
→ Oriental Configuration: Standardized approach emphasizing slower oscillation cycles
→ Occidental Variation: Optimized settings reducing lag characteristics typical of original methodology
Multiplier Adjustment Functionality:**
↔ Allows fine-graining oscillator responsiveness without altering core relationship dynamics
↕ Enables adaptation to various instrument volatility profiles efficiently
Displacement Value Control:**
↓ Controls lead/lag offset positioning relative to current prices
↑ Provides flexibility in adjusting visual representation alignment preferences
DYNAMIC CALCULATION PROCESSES
💻 Algorithmic Foundation:
:
Utilizes highest/lowest extremes over specified lookback windows
Produces more responsive conversions compared to simple MAs
:
→ Confirms directional bias across multiple independent criteria
← Ensures higher probability outcomes reduce random noise influence
:
♾ Creates persistent annotations documenting significant events
🔄 Handles complex state transitions maintaining historical record integrity
VISUALIZATION COMPONENTS OVERVIEW
🎨 Display Architecture Details:
:
→ Solid colored trendlines representing conversion/base relationships
↑ Fill effect overlay differentiating expansion/compression phases
↔ Offset spans positioned according to calculated displacement values
:
→ Green shading indicates positive configuration scenarios
↘ Red filling highlights negative arrangement situations
⟳ Orange transition areas mark transitional periods requiring caution
:
✔️ LE: Long Entry opportunity confirmed
❌ SE: Short Setup validated
☑ XL/XS: Position closure triggers active
✓ RL/RS: Potential re-entry chances emerging
STRATEGIC APPLICATION FRAMEWORK
📋 Practical Deployment Guidelines:
Initial Integration Phase:
Select appropriate timeframe matching trading horizon preference
Configure input parameters aligning with target asset behavior traits
Test thoroughly under simulated conditions prior to live usage
Active Monitoring Procedures:
• Regular observation of cloud formation evolution
• Tracking label placements against actual price movements
• Noting pattern development leading up to signaled entry/exit moments
Decision Making Process Flowchart:
→ Identify clear breakout/crossover events exceeding confirmation thresholds
← Evaluate contextual factors supporting/rejecting indicated direction
↑ Execute trades only after achieving required number of confirming inputs
PERFORMANCE OPTIMIZATION TECHNIQUES
🚀 Refinement Strategies:
Calibration Optimization Approach:
→ Start testing with default suggested configurations
↓ Gradually adjust individual components observing outcome changes
↑ Document findings systematically building personalized version profile
Context Adaptability Methods:
➕ Add supplementary indicators enhancing overall reliability
➖ Remove unnecessary complexity layers if causing confusion
✨ Incorporate custom rules adapting to specific security behaviors
Efficiency Improvement Tactics:
🔧 Streamline redundant processing routines where possible
♻️ Leverage shared data streams whenever feasible
⚡ Optimize refresh frequencies balancing update speed vs computational load
RISK MITIGATION PROTOCOLS
🛡️ Safety Measures Implementation Guide:
Position Sizing Principles:
∅ Never exceed preset maximum exposure limits defined by risk tolerance
± Scale positions proportionally per account size/market capitalization
× Include slippage allowances within planning stages accounting for liquidity variations
Validation Requirements Hierarchy:
☐ Verify signals meet minimum number of concurrent validations
⛔ Ignore isolated occurrences lacking adequate evidence backing
▶ Look for convergent evidence strengthening conviction level
Emergency Response Planning:
↩ Establish predefined exit strategies including trailing stops mechanisms
🌀 Plan worst-case scenario responses ahead avoiding panic reactions
⇄ Maintain contingency plans addressing unexpected adverse developments
USER EXPERIENCE ENHANCEMENT FEATURES
🌟 Additional Utility Functions:
Alert System Infrastructure:
→ Automatic notifications delivered directly to user devices
↑ Message content customized explaining triggered condition specifics
↔ Timing optimization ensuring minimal missed opportunities due to latency issues
Historical Review Capability:
→ Ability to analyze past performance retrospectively
↓ Assess effectiveness across varying market regimes objectively
↗ Generate statistics measuring success/failure rates quantitatively
Community Collaboration Support:
↪ Share personal optimizations benefiting wider trader community
↔ Exchange experiences improving collective understanding base
✍️ Provide constructive feedback aiding ongoing refinement process
CONCLUSION AND NEXT STEPS
This comprehensive guide serves as your roadmap toward mastering the capabilities offered by the L3 Ichimoku Fusion indicator effectively. Success relies heavily on disciplined application combined with continuous learning and adjustment processes throughout implementation journey.
Wishing you prosperous trading endeavors! 👋💰
ICT Macro H1"H1 Candle Time Box" is a custom TradingView indicator that highlights a configurable time window surrounding the close of each 1-hour (H1) candle. The indicator draws a transparent box 15 minutes before and after each H1 candle close (by default), helping traders visualize time-based reaction zones.
🔍 Features:
Custom time window: Users can set how many minutes before and after the H1 close the box should appear.
Dynamic positioning: Boxes are drawn slightly above the candles to avoid overlap with price bars.
Live time labels: Each box displays its time range (e.g., "08:45 - 09:15") based on the start and end time of the zone.
Auto-cleaning: Only a limited number of recent boxes (default: 5) are shown, keeping the chart clean.
Requires 1-minute chart for precise timing.
This tool is especially helpful for intraday traders to identify areas of interest or market reactions before and after key hourly closes.
Hộp thời gian quanh đóng nến H1"H1 Candle Time Box" is a custom TradingView indicator that highlights a configurable time window surrounding the close of each 1-hour (H1) candle. The indicator draws a transparent box 15 minutes before and after each H1 candle close (by default), helping traders visualize time-based reaction zones.
🔍 Features:
Custom time window: Users can set how many minutes before and after the H1 close the box should appear.
Dynamic positioning: Boxes are drawn slightly above the candles to avoid overlap with price bars.
Live time labels: Each box displays its time range (e.g., "08:45 - 09:15") based on the start and end time of the zone.
Auto-cleaning: Only a limited number of recent boxes (default: 5) are shown, keeping the chart clean.
Requires 1-minute chart for precise timing.
This tool is especially helpful for intraday traders to identify areas of interest or market reactions before and after key hourly closes.
Volatility Regime Classifier | ATRP Percentile ZonesThis indicator helps you understand the current volatility environment of any asset by comparing recent ATR-based values to its historical range.
It defines four regimes:
🔴 Low Volatility: Volatility is decreasing
🟢 Normal: Volatility is increasing but still below average
🟠 High: Volatility is elevated
🟣 Extreme: Volatility is very high compared to recent history
⚙️ How it works
We calculate the Average True Range (ATR) as a percentage of price (ATRP), then compare a short-term ATR to a longer-term one. Their difference shows whether volatility is picking up or slowing down.
To make the signal more adaptive, we look at the distribution of recent volatility over a rolling window. We compute the 50th and 70th percentiles of that history to set dynamic thresholds.
About distribution & percentiles
Volatility in financial markets doesn't follow a normal (Gaussian) distribution, it's often skewed, with sudden spikes and fat tails. That means fixed thresholds (like "ATR > 20") can be misleading or irrelevant across assets and timeframes.
Using percentiles solves this:
The 50th percentile marks the middle of the recent volatility range.
The 70th percentile captures a zone where volatility is unusually high, but not too rare, which keeps the signal usable and not overly sensitive.
These levels offer a balance:
⚖️ not too reactive, not too slow — just enough to highlight meaningful shifts.
✅ Use cases
Spot changes in market conditions
Filter or adapt strategies depending on the regime
Adjust position sizing and risk dynamically
G-Channel Strategy - Strategy with EMA FilterG-Channel Strategy with an 200 EMA, full credit of this strategy goes to Income |Nomad on youtube. the video shows you how to create the strategy.
This strategy is best used on lower timer frames, the 1 min, 3 min or 5 min time frame.
Dont trade this strategy in a ranging market, it doesnt work well.
Small Cap Momentum Entry System✅ Features Included:
Momentum entry detection
Trailing stop overlay
Alert for entry and exit
Pre-market high line (optional display toggle)
Dual-Phase Trend Regime Oscillator (Zeiierman)█ Overview
Trend Regime: Dual-Phase Oscillator (Zeiierman) is a volatility-sensitive trend classification tool that dynamically switches between two oscillators, one optimized for low volatility, the other for high volatility.
By analyzing standard deviation-based volatility states and applying correlation-derived oscillators, this indicator reveals not only whether the market is trending but also what kind of trend regime it is in —Bullish or Bearish —and how that regime reacts to market volatility.
█ Its Uniqueness
Most trend indicators assume a static market environment; they don't adjust their logic when the underlying volatility shifts. That often leads to false signals in choppy conditions or late entries in trending phases.
Trend Regime: Dual-Phase Oscillator solves this by introducing volatility-aware adaptability. It switches between a slow, stable oscillator in calm markets and a fast, reactive oscillator in volatile ones, ensuring the right sensitivity at the right time.
█ How It Works
⚪ Volatility State Engine
Calculates returns-based volatility using standard deviation of price change
Smooths the current volatility with a moving average
Builds a volatility history window and performs median clustering to determine typical "Low" and "High" volatility zones
Dynamically assigns the chart to one of two internal volatility regimes: Low or High
⚪ Dual Oscillators
In Low Volatility, it uses a Slow Trend Oscillator (longer lookback, smoother)
In High Volatility, it switches to a Fast Trend Oscillator (shorter lookback, responsive)
Both oscillators use price-time correlation as a measure of directional strength
The output is normalized between 0 and 1, allowing for consistent interpretation
⚪ Trend Regime Classification
The active oscillator is compared to a neutral threshold (0.5)
If above: Bullish Regime, if below: Bearish Regime, else: Neutral
The background and markers update to reflect regime changes visually
Triangle markers highlight bullish/bearish regime shifts
█ How to Use
⚪ Identify Current Trend Regime
Use the background color and chart table to immediately recognize whether the market is trending up or down.
⚪ Trade Regime Shifts
Use triangle markers (▲ / ▼) to spot fresh regime entries, which are ideal for confirming breakouts within trends.
⚪ Pullback Trading
Look for pullbacks when the trend is in a stable condition and the slow oscillator remains consistently near the upper or lower threshold. Watch for moments when the fast oscillator retraces back toward the midline, or slightly above/below it — this often signals a potential pullback entry in the direction of the prevailing trend.
█ Settings Explained
Length (Slow Trend Oscillator) – Used in calm conditions. Longer = smoother signals
Length (Fast Trend Oscillator) – Used in volatile conditions. Shorter = more responsive
Volatility Refit Interval – Controls how often the system recalculates Low/High volatility levels
Current Volatility Period – Lookback used for immediate volatility measurement
Volatility Smoothing Length – Applies an SMA to the raw volatility to reduce noise
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
1-Candle Order Block DetectorThis simple indicator is based on the 1-Candle rule. During an impulsive move toward the upside or downside, an order block is plotted based on a single down-closed or up-closed candle.
Inputs can be easily customized based on preferences or strength of trend filtering.
Premium Lux AlgoCombining multiple indicators to receive buy and sell signals and create support and resistance levels and cloud space
Global Liquidity IndexThis indicator tracks worldwide liquidity by aggregating the sum of the global M2 money supply, and major central bank balance sheets and subtracting the U.S. Treasury General Account (TGA), the Federal Reserve’s Reverse Repo (RRP) facility. It offers insight into the overall liquidity environment, often a key driver of risk asset performance.
Custom MACD//@version=5
indicator("Custom MACD", overlay=false)
fastLength = input.int(8, title="Fast EMA Length")
slowLength = input.int(21, title="Slow EMA Length")
signalSmoothing = input.int(5, title="Signal Smoothing")
= ta.macd(close, fastLength, slowLength, signalSmoothing)
plot(macdLine, color=color.blue, title="MACD Line")
plot(signalLine, color=color.red, title="Signal Line")
plot(histLine, style=plot.style_histogram, color=histLine >= 0 ? color.green : color.red, title="Histogram")
Fakeout Filter📈 Fakeout Filter by ARV
🔍 Overview:
The Fakeout Filter is a smart breakout validation tool designed to help traders avoid false breakouts and focus only on high-probability breakout trades. This indicator combines price action, volume analysis, RSI divergence detection, and OBV trend confirmation to filter out noise and improve your entries.
⚙️ Key Features:
✅ Breakout Detection
Detects when the price closes above a user-defined resistance level.
✅ Volume Spike Confirmation
Confirms breakouts only if there’s a significant increase in volume (customizable via settings).
✅ RSI Bearish Divergence Filter
Warns you of bearish RSI divergence, which often signals fakeouts during breakouts.
✅ OBV Trend Confirmation
Ensures On-Balance Volume (OBV) is rising, aligning volume flow with price movement.
✅ EMA Filter (Trend Confirmation)
Adds a safety filter using Exponential Moving Average (EMA) to ensure price action aligns with the short-term trend.
📌 How to Use:
Set Resistance Level:
In the indicator settings, input a key resistance level (manual input based on your chart analysis).
Watch for Signals:
A green background and “Breakout” label appear when:
Price closes above the resistance.
Volume is significantly higher than average.
OBV is rising.
No bearish RSI divergence is detected.
Price is above the EMA (trend confirmation).
Entry Suggestion:
Consider entering long positions only when the breakout label appears.
For additional confirmation, wait for a retest of the resistance as support before entering.
🔧 Settings:
Resistance Level – Manually set the level you're watching.
Volume Multiplier – Adjusts sensitivity to volume spikes (default: 1.5x average).
RSI Period – RSI used for divergence detection (default: 14).
EMA Period – For trend direction confirmation (default: 21).
✅ Best Use Cases:
Scalpers and intraday traders avoiding fakeouts on 5m–1H timeframes.
Swing traders validating breakout setups.
BTC, ETH, and major altcoins in consolidation or breakout zones.
⚠️ Disclaimer:
This tool is for educational purposes only. Always combine it with your own market analysis and risk management.
3-Candle Pattern StrategyBuy Conditions:
Candle 2 bars ago: close > open
Previous candle: close < open
Current candle: close > open
Current candle: (high - close) < (high - low) * 0.15
Current candle: volume > previous volume
Sell Conditions:
Candle 2 bars ago: close < open
Previous candle: close > open
Current candle: close < open
Current candle: (close - low) < (high - low) * 0.15
Current candle: volume > previous volume
ICT Macro Zone Boxes w/ Individual H/L Tracking v3.1ICT Macro Zones (Grey Box Version
This indicator dynamically highlights key intraday time-based macro sessions using a clean, minimalistic grey box overlay, helping traders align with institutional trading cycles. Inspired by ICT (Inner Circle Trader) concepts, it tracks real-time highs and lows for each session and optionally extends the zone box after the session ends — making it a precision tool for intraday setups, order flow analysis, and macro-level liquidity sweeps.
### 🔍 **What It Does**
- Plots **six predefined macro sessions** used in Smart Money Concepts:
- AM Macro (09:50–10:10)
- London Close (10:50–11:10)
- Lunch Macro (11:30–13:30)
- PM Macro (14:50–15:10)
- London SB (03:00–04:00)
- PM SB (15:00–16:00)
- Each zone:
- **Tracks high and low dynamically** throughout the session.
- **Draws a consistent grey shaded box** to visualize price boundaries.
- **Displays a label** at the first bar of the session (optional).
- **Optionally extends** the box to the right after the session closes.
### 🧠 **How It Works**
- Uses Pine Script arrays to define each session’s time window, label, and color.
- Detects session entry using `time()` within a New York timezone context.
- High/Low values are updated per bar inside the session window.
- Once a session ends, the box is optionally closed and fixed in place.
- All visual zones use a standardized grey tone for clarity and consistency across charts.
### 🛠️ **Settings**
- **Shade Zone High→Low:** Enable/disable the grey macro box.
- **Extend Box After Session:** Keep the zone visible after it ends.
- **Show Entry Label:** Display a label at the start of each session.
### 🎯 **Why This Script is Unique**
Unlike basic session markers or colored backgrounds, this tool:
- Focuses on **macro moments of liquidity and reversal**, not just open/close times.
- Uses **per-session logic** to individually track price behavior inside key time windows.
- Supports **real-time high/low tracking and clean zone drawing**, ideal for Smart Money and ICT-style strategies.
Perfect — based on your list, here's a **bundle-style description** that not only explains the function of each script but also shows how they **work together** in a Smart Money/ICT workflow. This kind of cross-script explanation is exactly what TradingView wants to see to justify closed-source mashups or interdependent tools.
---
📚 ICT SMC Toolkit — Script Integration Guide
This set of advanced Smart Money Concept (SMC) tools is designed for traders who follow ICT-based methodologies, combining liquidity theory, time-based precision, and engineered confluences for high-probability trades. Each indicator is optimized to work both independently and synergistically, forming a comprehensive trading framework.
---
First FVG Custom Time Range
**Purpose:**
Plots the **first Fair Value Gap (FVG)** that appears within a defined session (e.g., NY Kill Zone, Custom range). Includes optional retest alerts.
**Best Used With:**
- Use with **ICT Macro Zones (Grey Box Version)** to isolate FVGs during high-probability times like AM Macro or PM SB.
- Combine with **Liquidity Levels** to assess whether FVGs form near swing points or liquidity voids.
---
ICT SMC Liquidity Grabs and OB s
**Purpose:**
Detects **liquidity grabs** (stop hunts above/below swing highs/lows) and **bullish/bearish order blocks**. Includes optional Fibonacci OTE levels for sniper entries.
**Best Used With:**
- Use with **ICT Turtle Soup (Reversal)** for confirmation after a liquidity grab.
- Combine with **Macro Zones** to catch order blocks forming inside timed macro windows.
- Match with **Smart Swing Levels** to confirm structure breaks before entry.
ICT SMC Liquidity Levels (Smart Swing Lows)
**Purpose:**
Automatically marks swing highs/lows based on user-defined lookbacks. Tracks whether those levels have been breached or respected.
**Best Used With:**
- Combine with **Turtle Soup** to detect if a swing level was swept, then reversed.
- Use with **Liquidity Grabs** to confirm a grab occurred at a meaningful structural point.
- Align with **Macro Zones** to understand when liquidity events occur within macro session timing.
ICT Turtle Soup (Liquidity Reversal)
**Purpose:**
Implements the classic ICT Turtle Soup model. Looks for swing failure and quick reversals after a liquidity sweep — ideal for catching traps.
Best Used With:
- Confirm with **Liquidity Grabs + OBs** to identify institutional activity at the reversal point.
- Use **Liquidity Levels** to ensure the reversal is happening at valid previous swing highs/lows.
- Amplify probability when pattern appears during **Macro Zones** or near the **First FVG**.
ICT Turtle Soup Ultimate V2
**Purpose:**
An enhanced, multi-layer version of the Turtle Soup setup that includes built-in liquidity checks, OTE levels, structure validation, and customizable visual output.
**Best Used With:**
- Use as an **entry signal generator** when other indicators (e.g., OBs, liquidity grabs) are aligned.
- Pair with **Macro Zones** for high-precision timing.
- Combine with **First FVG** to anticipate price rebalancing before explosive moves.
---
## 🧠 Workflow Example:
1. **Start with Macro Zones** to focus only on institutional trading windows.
2. Look for **Liquidity Grabs or Swing Sweeps** around key highs/lows.
3. Check for a **Turtle Soup Reversal** or **Order Block Reaction** near that level.
4. Confirm confluence with a **Fair Value Gap**.
5. Execute using the **OTE level** from the Liquidity Grabs + OB script.
---
Let me know which script you want to publish first — I’ll tailor its **individual TradingView description** and flag its ideal **“Best Used With” partners** to help users see the value in your ecosystem.
Price Change Sentiment Index [tradeviZion]Price Change Sentiment Index
A technical indicator that measures price changes relative to the day's range.
Indicator Overview
Normalizes price changes on a 0-100 scale
Uses a smoothing period for signal clarity
Shows potential overbought/oversold conditions
Inputs
Smoothing Period (default: 3)
Show Background Colors (on/off)
Overbought Level (default: 75)
Oversold Level (default: 25)
Reading the Indicator
Values above 75: Price change showing strong upward movement
Values below 25: Price change showing strong downward movement
Around 50: Neutral price movement
Technical Details
// Core calculation
changePct = (currClose - prevClose) / (high - low)
normalized = 50 + (changePct * 50)
smoothedNormalized = ta.sma(normalizedClamped, smoothingPeriod)
Usage Notes
Best used with other technical analysis tools
Adjustable smoothing period affects signal sensitivity
Background colors highlight extreme readings
Works on any timeframe
Settings Guide
Smoothing Period:
- Lower values (1-3): More responsive
- Higher values (5-10): Smoother output
Visual Settings: Toggle background colors
Levels: Adjust overbought/oversold thresholds
This indicator is a technical analysis tool. Please conduct your own research and testing before use.
AP_Ultimate CCI MTF v5**AP Ultimate CCI Multi-Timeframe Indicator**
*Track Commodity Channel Index trends across multiple timeframes in one view!*
**Overview:**
Adapted from ChrisMoody's popular RSI MTF concept, this enhanced version brings powerful multi-timeframe analysis to the CCI indicator. Perfect for traders who want to confirm trends across different time horizons without switching charts.
**Key Features:**
📈 **Dual CCI Analysis**
- Primary CCI (Default: 1H) + Secondary CCI (Default: 4H)
- Fully customizable timeframes for both indicators
- Independent length settings (14-50 periods recommended)
🚦 **Visual Trading Signals**
- Automatic Buy/Sell markers on crossovers
- 🟢 **B** Signals: When CCI crosses above -100 (Oversold reversal)
- 🔴 **S** Signals: When CCI crosses below +100 (Overbought reversal)
- Clean triangular markers at chart edges for clear visibility
🎨 **Customizable Visuals**
- Adjustable overbought/oversold levels (Default: ±100)
- Background highlights for extreme zones
- Modern color schemes with transparency control
- Optional zero line display
⚙️ **Technical Specs**
- Built in Pine Script v6
- Non-repainting calculations
- Timeframe-aware alerts support
- Optimized for all asset classes
**How to Use (my use case):**
1. Apply to 15M-4H charts for intraday trading
2. Default setup: Compare 1H vs 4H CCI
3. Look for confluence between timeframes:
- Strong trend = Both CCIs moving in same direction
- Reversal signal = Crossovers with volume confirmation
4. Combine with price action or support/resistance
**Why this Indicator:**
✅ Eliminates manual timeframe switching
✅ Identifies hidden divergences between time horizons
✅ Works equally well for stocks, forex, and crypto
✅ Perfect for momentum and mean-reversion strategies
*Pro Tip: Pair with volume indicators and moving averages for enhanced confirmation!*
Dskyz (DAFE) Adaptive Regime - Quant Machine ProDskyz (DAFE) Adaptive Regime - Quant Machine Pro:
Buckle up for the Dskyz (DAFE) Adaptive Regime - Quant Machine Pro, is a strategy that’s your ultimate edge for conquering futures markets like ES, MES, NQ, and MNQ. This isn’t just another script—it’s a quant-grade powerhouse, crafted with precision to adapt to market regimes, deliver multi-factor signals, and protect your capital with futures-tuned risk management. With its shimmering DAFE visuals, dual dashboards, and glowing watermark, it turns your charts into a cyberpunk command center, making trading as thrilling as it is profitable.
Unlike generic scripts clogging up the space, the Adaptive Regime is a DAFE original, built from the ground up to tackle the chaos of futures trading. It identifies market regimes (Trending, Range, Volatile, Quiet) using ADX, Bollinger Bands, and HTF indicators, then fires trades based on a weighted scoring system that blends candlestick patterns, RSI, MACD, and more. Add in dynamic stops, trailing exits, and a 5% drawdown circuit breaker, and you’ve got a system that’s as safe as it is aggressive. Whether you’re a newbie or a prop desk pro, this strat’s your ticket to outsmarting the markets. Let’s break down every detail and see why it’s a must-have.
Why Traders Need This Strategy
Futures markets are a gauntlet—fast moves, volatility spikes (like the April 28, 2025 NQ 1k-point drop), and institutional traps that punish the unprepared. Meanwhile, platforms are flooded with low-effort scripts that recycle old ideas with zero innovation. The Adaptive Regime stands tall, offering:
Adaptive Intelligence: Detects market regimes (Trending, Range, Volatile, Quiet) to optimize signals, unlike one-size-fits-all scripts.
Multi-Factor Precision: Combines candlestick patterns, MA trends, RSI, MACD, volume, and HTF confirmation for high-probability trades.
Futures-Optimized Risk: Calculates position sizes based on $ risk (default: $300), with ATR or fixed stops/TPs tailored for ES/MES.
Bulletproof Safety: 5% daily drawdown circuit breaker and trailing stops keep your account intact, even in chaos.
DAFE Visual Mastery: Pulsing Bollinger Band fills, dynamic SL/TP lines, and dual dashboards (metrics + position) make signals crystal-clear and charts a work of art.
Original Craftsmanship: A DAFE creation, built with community passion, not a rehashed clone of generic code.
Traders need this because it’s a complete, adaptive system that blends quant smarts, user-friendly design, and DAFE flair. It’s your edge to trade with confidence, cut through market noise, and leave the copycats in the dust.
Strategy Components
1. Market Regime Detection
The strategy’s brain is its ability to classify market conditions into five regimes, ensuring signals match the environment.
How It Works:
Trending (Regime 1): ADX > 20, fast/slow EMA spread > 0.3x ATR, HTF RSI > 50 or MACD bullish (htf_trend_bull/bear).
Range (Regime 2): ADX < 25, price range < 3% of close, no HTF trend.
Volatile (Regime 3): BB width > 1.5x avg, ATR > 1.2x avg, HTF RSI overbought/oversold.
Quiet (Regime 4): BB width < 0.8x avg, ATR < 0.9x avg.
Other (Regime 5): Default for unclear conditions.
Indicators: ADX (14), BB width (20), ATR (14, 50-bar SMA), HTF RSI (14, daily default), HTF MACD (12,26,9).
Why It’s Brilliant:
Regime detection adapts signals to market context, boosting win rates in trending or volatile conditions.
HTF RSI/MACD add a big-picture filter, rare in basic scripts.
Visualized via gradient background (green for Trending, orange for Range, red for Volatile, gray for Quiet, navy for Other).
2. Multi-Factor Signal Scoring
Entries are driven by a weighted scoring system that combines candlestick patterns, trend, momentum, and volume for robust signals.
Candlestick Patterns:
Bullish: Engulfing (0.5), hammer (0.4 in Range, 0.2 else), morning star (0.2), piercing (0.2), double bottom (0.3 in Volatile, 0.15 else). Must be near support (low ≤ 1.01x 20-bar low) with volume spike (>1.5x 20-bar avg).
Bearish: Engulfing (0.5), shooting star (0.4 in Range, 0.2 else), evening star (0.2), dark cloud (0.2), double top (0.3 in Volatile, 0.15 else). Must be near resistance (high ≥ 0.99x 20-bar high) with volume spike.
Logic: Patterns are weighted higher in specific regimes (e.g., hammer in Range, double bottom in Volatile).
Additional Factors:
Trend: Fast EMA (20) > slow EMA (50) + 0.5x ATR (trend_bull, +0.2); opposite for trend_bear.
RSI: RSI (14) < 30 (rsi_bull, +0.15); > 70 (rsi_bear, +0.15).
MACD: MACD line > signal (12,26,9, macd_bull, +0.15); opposite for macd_bear.
Volume: ATR > 1.2x 50-bar avg (vol_expansion, +0.1).
HTF Confirmation: HTF RSI < 70 and MACD bullish (htf_bull_confirm, +0.2); RSI > 30 and MACD bearish (htf_bear_confirm, +0.2).
Scoring:
bull_score = sum of bullish factors; bear_score = sum of bearish. Entry requires score ≥ 1.0.
Example: Bullish engulfing (0.5) + trend_bull (0.2) + rsi_bull (0.15) + htf_bull_confirm (0.2) = 1.05, triggers long.
Why It’s Brilliant:
Multi-factor scoring ensures signals are confirmed by multiple market dynamics, reducing false positives.
Regime-specific weights make patterns more relevant (e.g., hammers shine in Range markets).
HTF confirmation aligns with the big picture, a quant edge over simplistic scripts.
3. Futures-Tuned Risk Management
The risk system is built for futures, calculating position sizes based on $ risk and offering flexible stops/TPs.
Position Sizing:
Logic: Risk per trade (default: $300) ÷ (stop distance in points * point value) = contracts, capped at max_contracts (default: 5). Point value = tick value (e.g., $12.5 for ES) * ticks per point (4) * contract multiplier (1 for ES, 0.1 for MES).
Example: $300 risk, 8-point stop, ES ($50/point) → 0.75 contracts, rounded to 1.
Impact: Precise sizing prevents over-leverage, critical for micro contracts like MES.
Stops and Take-Profits:
Fixed: Default stop = 8 points, TP = 16 points (2:1 reward/risk).
ATR-Based: Stop = 1.5x ATR (default), TP = 3x ATR, enabled via use_atr_for_stops.
Logic: Stops set at swing low/high ± stop distance; TPs at 2x stop distance from entry.
Impact: ATR stops adapt to volatility, while fixed stops suit stable markets.
Trailing Stops:
Logic: Activates at 50% of TP distance. Trails at close ± 1.5x ATR (atr_multiplier). Longs: max(trail_stop_long, close - ATR * 1.5); shorts: min(trail_stop_short, close + ATR * 1.5).
Impact: Locks in profits during trends, a game-changer in volatile sessions.
Circuit Breaker:
Logic: Pauses trading if daily drawdown > 5% (daily_drawdown = (max_equity - equity) / max_equity).
Impact: Protects capital during black swan events (e.g., April 27, 2025 ES slippage).
Why It’s Brilliant:
Futures-specific inputs (tick value, multiplier) make it plug-and-play for ES/MES.
Trailing stops and circuit breaker add pro-level safety, rare in off-the-shelf scripts.
Flexible stops (ATR or fixed) suit different trading styles.
4. Trade Entry and Exit Logic
Entries and exits are precise, driven by bull_score/bear_score and protected by drawdown checks.
Entry Conditions:
Long: bull_score ≥ 1.0, no position (position_size <= 0), drawdown < 5% (not pause_trading). Calculates contracts, sets stop at swing low - stop points, TP at 2x stop distance.
Short: bear_score ≥ 1.0, position_size >= 0, drawdown < 5%. Stop at swing high + stop points, TP at 2x stop distance.
Logic: Tracks entry_regime for PNL arrays. Closes opposite positions before entering.
Exit Conditions:
Stop-Loss/Take-Profit: Hits stop or TP (strategy.exit).
Trailing Stop: Activates at 50% TP, trails by ATR * 1.5.
Emergency Exit: Closes if price breaches stop (close < long_stop_price or close > short_stop_price).
Reset: Clears stop/TP prices when flat (position_size = 0).
Why It’s Brilliant:
Score-based entries ensure multi-factor confirmation, filtering out weak signals.
Trailing stops maximize profits in trends, unlike static exits in basic scripts.
Emergency exits add an extra safety layer, critical for futures volatility.
5. DAFE Visuals
The visuals are pure DAFE magic, blending function with cyberpunk flair to make signals intuitive and charts stunning.
Shimmering Bollinger Band Fill:
Display: BB basis (20, white), upper/lower (green/red, 45% transparent). Fill pulses (30–50 alpha) by regime, with glow (60–95 alpha) near bands (close ≥ 0.995x upper or ≤ 1.005x lower).
Purpose: Highlights volatility and key levels with a futuristic glow.
Visuals make complex regimes and signals instantly clear, even for newbies.
Pulsing effects and regime-specific colors add a DAFE signature, setting it apart from generic scripts.
BB glow emphasizes tradeable levels, enhancing decision-making.
Chart Background (Regime Heatmap):
Green — Trending Market: Strong, sustained price movement in one direction. The market is in a trend phase—momentum follows through.
Orange — Range-Bound: Market is consolidating or moving sideways, with no clear up/down trend. Great for mean reversion setups.
Red — Volatile Regime: High volatility, heightened risk, and larger/faster price swings—trade with caution.
Gray — Quiet/Low Volatility: Market is calm and inactive, with small moves—often poor conditions for most strategies.
Navy — Other/Neutral: Regime is uncertain or mixed; signals may be less reliable.
Bollinger Bands Glow (Dynamic Fill):
Neon Red Glow — Warning!: Price is near or breaking above the upper band; momentum is overstretched, watch for overbought conditions or reversals.
Bright Green Glow — Opportunity!: Price is near or breaking below the lower band; market could be oversold, prime for bounce or reversal.
Trend Green Fill — Trending Regime: Fills between bands with green when the market is trending, showing clear momentum.
Gold/Yellow Fill — Range Regime: Fills with gold/aqua in range conditions, showing the market is sideways/oscillating.
Magenta/Red Fill — Volatility Spike: Fills with vivid magenta/red during highly volatile regimes.
Blue Fill — Neutral/Quiet: A soft blue glow for other or uncertain market states.
Moving Averages:
Display: Blue fast EMA (20), red slow EMA (50), 2px.
Purpose: Shows trend direction, with trend_dir requiring ATR-scaled spread.
Dynamic SL/TP Lines:
Display: Pulsing colors (red SL, green TP for Trending; yellow/orange for Range, etc.), 3px, with pulse_alpha for shimmer.
Purpose: Tracks stops/TPs in real-time, color-coded by regime.
6. Dual Dashboards
Two dashboards deliver real-time insights, making the strat a quant command center.
Bottom-Left Metrics Dashboard (2x13):
Metrics: Mode (Active/Paused), trend (Bullish/Bearish/Neutral), ATR, ATR avg, volume spike (YES/NO), RSI (value + Oversold/Overbought/Neutral), HTF RSI, HTF trend, last signal (Buy/Sell/None), regime, bull score.
Display: Black (29% transparent), purple title, color-coded (green for bullish, red for bearish).
Purpose: Consolidates market context and signal strength.
Top-Right Position Dashboard (2x7):
Metrics: Regime, position side (Long/Short/None), position PNL ($), SL, TP, daily PNL ($).
Display: Black (29% transparent), purple title, color-coded (lime for Long, red for Short).
Purpose: Tracks live trades and profitability.
Why It’s Brilliant:
Dual dashboards cover market context and trade status, a rare feature.
Color-coding and concise metrics guide beginners (e.g., green “Buy” = go).
Real-time PNL and SL/TP visibility empower disciplined trading.
7. Performance Tracking
Logic: Arrays (regime_pnl_long/short, regime_win/loss_long/short) track PNL and win/loss by regime (1–5). Updated on trade close (barstate.isconfirmed).
Purpose: Prepares for future adaptive thresholds (e.g., adjust bull_score min based on regime performance).
Why It’s Brilliant: Lays the groundwork for self-optimizing logic, a quant edge over static scripts.
Key Features
Regime-Adaptive: Optimizes signals for Trending, Range, Volatile, Quiet markets.
Futures-Optimized: Precise sizing for ES/MES with tick-based risk inputs.
Multi-Factor Signals: Candlestick patterns, RSI, MACD, and HTF confirmation for robust entries.
Dynamic Exits: ATR/fixed stops, 2:1 TPs, and trailing stops maximize profits.
Safe and Smart: 5% drawdown breaker and emergency exits protect capital.
DAFE Visuals: Shimmering BB fill, pulsing SL/TP, and dual dashboards.
Backtest-Ready: Fixed qty and tick calc for accurate historical testing.
How to Use
Add to Chart: Load on a 5min ES/MES chart in TradingView.
Configure Inputs: Set instrument (ES/MES), tick value ($12.5/$1.25), multiplier (1/0.1), risk ($300 default). Enable ATR stops for volatility.
Monitor Dashboards: Bottom-left for regime/signals, top-right for position/PNL.
Backtest: Run in strategy tester to compare regimes.
Live Trade: Connect to Tradovate or similar. Watch for slippage (e.g., April 27, 2025 ES issues).
Replay Test: Try April 28, 2025 NQ drop to see regime shifts and stops.
Disclaimer
Trading futures involves significant risk of loss and is not suitable for all investors. Past performance does not guarantee future results. Backtest results may differ from live trading due to slippage, fees, or market conditions. Use this strategy at your own risk, and consult a financial advisor before trading. Dskyz (DAFE) Trading Systems is not responsible for any losses incurred.
Backtesting:
Frame: 2023-09-20 - 2025-04-29
Slippage: 3
Fee Typical Range (per side, per contract)
CME Exchange $1.14 – $1.20
Clearing $0.10 – $0.30
NFA Regulatory $0.02
Firm/Broker Commis. $0.25 – $0.80 (retail prop)
TOTAL $1.60 – $2.30 per side
Round Turn: (enter+exit) = $3.20 – $4.60 per contract
Final Notes
The Dskyz (DAFE) Adaptive Regime - Quant Machine Pro is more than a strategy—it’s a revolution. Crafted with DAFE’s signature precision, it rises above generic scripts with adaptive regimes, quant-grade signals, and visuals that make trading a thrill. Whether you’re scalping MES or swinging ES, this system empowers you to navigate markets with confidence and style. Join the DAFE crew, light up your charts, and let’s dominate the futures game!
(This publishing will most likely be taken down do to some miscellaneous rule about properly displaying charting symbols, or whatever. Once I've identified what part of the publishing they want to pick on, I'll adjust and repost.)
Use it with discipline. Use it with clarity. Trade smarter.
**I will continue to release incredible strategies and indicators until I turn this into a brand or until someone offers me a contract.
Created by Dskyz, powered by DAFE Trading Systems. Trade smart, trade bold.
Major Session Highs/LowsThis indicator creates horizontal lines at major session high/lows (US, London, and Asian). The script updates the lines automatically, on session close.
For instance, when viewing during the US session, after the London overlap, horizontal lines will be displayed at the following levels.
The high/low of the most recent London session.
The high/low of the most recent Asian session.
The high/low of the last full US session, i.e. the session of the day prior.
When the current US session closes, the US levels automatically update.
Merged: Range Filter & Smart Envelope//@version=5
indicator("Merged: Range Filter & Smart Envelope", overlay=true, max_lines_count=500, max_labels_count=500)
// ==================== Range Filter Settings ====================
// Color variables
upColor = color.white
midColor = #90bff9
downColor = color.blue
// Source
src = input(defval=close, title="Source")
// Sampling Period
per = input.int(defval=100, minval=1, title="Sampling Period")
// Range Multiplier
mult = input.float(defval=3.0, minval=0.1, title="Range Multiplier")
// Smooth Average Range
smoothrng(x, t, m) =>
wper = t * 2 - 1
avrng = ta.ema(math.abs(x - x ), t)
smoothrng = ta.ema(avrng, wper) * m
smoothrng
smrng = smoothrng(src, per, mult)
// Range Filter
rngfilt(x, r) =>
rngfilt = x
rngfilt := x > nz(rngfilt ) ? x - r < nz(rngfilt ) ? nz(rngfilt ) : x - r :
x + r > nz(rngfilt ) ? nz(rngfilt ) : x + r
rngfilt
filt = rngfilt(src, smrng)
// Filter Direction
upward = 0.0
upward := filt > filt ? nz(upward ) + 1 : filt < filt ? 0 : nz(upward )
downward = 0.0
downward := filt < filt ? nz(downward ) + 1 : filt > filt ? 0 : nz(downward )
// Target Bands
hband = filt + smrng
lband = filt - smrng
// Colors
filtcolor = upward > 0 ? upColor : downward > 0 ? downColor : midColor
barcolor = src > filt and src > src and upward > 0 ? upColor :
src > filt and src < src and upward > 0 ? upColor :
src < filt and src < src and downward > 0 ? downColor :
src < filt and src > src and downward > 0 ? downColor : midColor
filtplot = plot(filt, color=filtcolor, linewidth=2, title="Range Filter")
// Target
hbandplot = plot(hband, color=color.new(upColor, 70), title="High Target")
lbandplot = plot(lband, color=color.new(downColor, 70), title="Low Target")
// Fills
fill(hbandplot, filtplot, color=color.new(upColor, 90), title="High Target Range")
fill(lbandplot, filtplot, color=color.new(downColor, 90), title="Low Target Range")
// Bar Color
barcolor(barcolor)
// Break Outs
longCond = bool(na)
shortCond = bool(na)
longCond := src > filt and src > src and upward > 0 or
src > filt and src < src and upward > 0
shortCond := src < filt and src < src and downward > 0 or
src < filt and src > src and downward > 0
CondIni = 0
CondIni := longCond ? 1 : shortCond ? -1 : CondIni
longCondition = longCond and CondIni == -1
shortCondition = shortCond and CondIni == 1
// ==================== Smart Envelope with Stochastic RSI ====================
h_env = input.float(8., 'Bandwidth', minval = 0)
mult_env = input.float(3., minval = 0)
repaint = input(true, 'Repainting Smoothing')
// Stochastic RSI Settings
smoothK = input.int(3, "K", minval=1)
smoothD = input.int(3, "D", minval=1)
lengthRSI = input.int(14, "RSI Length", minval=1)
lengthStoch = input.int(14, "Stochastic Length", minval=1)
rsi1 = ta.rsi(src, lengthRSI)
k = ta.sma(ta.stoch(rsi1, rsi1, rsi1, lengthStoch), smoothK)
d = ta.sma(k, smoothD)
// Nadaraya-Watson Envelope Functions
gauss(x, h) => math.exp(-(math.pow(x, 2)/(h * h * 2)))
var coefs = array.new_float(0)
var den = 0.
if barstate.isfirst and not repaint
for i = 0 to 499
w = gauss(i, h_env)
coefs.push(w)
den := coefs.sum()
out = 0.
if not repaint
for i = 0 to 499
out += src * coefs.get(i)
out /= den
mae = ta.sma(math.abs(src - out), 499) * mult_env
upper_env = out + mae
lower_env = out - mae
// Compute and display NWE
n = bar_index
var float y2 = na
var float y1 = na
nwe = array.new(0)
if barstate.islast and repaint
sae = 0.
for i = 0 to math.min(499,n - 1)
sum = 0.
sumw = 0.
for j = 0 to math.min(499,n - 1)
w = gauss(i - j, h_env)
sum += src * w
sumw += w
y2 := sum / sumw
sae += math.abs(src - y2)
nwe.push(y2)
sae := sae / math.min(499,n - 1) * mult_env
for i = 0 to math.min(499,n - 1)
if i % 2
line.new(n-i+1, y1 + sae, n-i, nwe.get(i) + sae, color=color.teal)
line.new(n-i+1, y1 - sae, n-i, nwe.get(i) - sae, color=color.red)
y1 := nwe.get(i)
// Plot Nadaraya-Watson Envelope
plot(repaint ? na : out + mae, 'Upper Envelope', color=color.teal)
plot(repaint ? na : out - mae, 'Lower Envelope', color=color.red)
// Stochastic RSI Plot
plot(k, "Stochastic RSI K", color=color.blue)
plot(d, "Stochastic RSI D", color=color.orange)
h0 = hline(80, "Upper Band", color=color.gray)
hline(50, "Middle Band", color=color.new(color.gray, 50))
h1 = hline(20, "Lower Band", color=color.gray)
fill(h0, h1, color=color.rgb(33, 150, 243, 90), title="Stochastic RSI Background")
// ==================== Combined Signal Logic ====================
// Enhanced Signal Confirmation
ma_length = input.int(20, "Filter Moving Average Length", minval=1)
ma = ta.sma(close, ma_length)
// Combined Buy Signal: Range Filter + Stochastic RSI + Envelope
combined_buy = (longCondition or (ta.crossover(k, d) and close > upper_env)) and close > ma
combined_sell = (shortCondition or (ta.crossunder(k, d) and close < lower_env)) and close < ma
// Plot combined signals with higher priority
plotshape(combined_buy, "Combined Buy", shape.labelup, location.belowbar, color=color.green, size=size.normal, text="STRONG BUY")
plotshape(combined_sell, "Combined Sell", shape.labeldown, location.abovebar, color=color.red, size=size.normal, text="STRONG SELL")
// Original signals (lower priority)
plotshape(longCondition and not combined_buy, "Buy Signal", shape.labelup, location.belowbar, color=color.lime, size=size.small, text="BUY")
plotshape(shortCondition and not combined_sell, "Sell Signal", shape.labeldown, location.abovebar, color=color.maroon, size=size.small, text="SELL")
// Plot the moving average filter line
plot(ma, "Filter MA", color=color.purple, linewidth=2)
// Alerts
alertcondition(combined_buy, title="Strong Buy Alert", message="Strong Buy Signal")
alertcondition(combined_sell, title="Strong Sell Alert", message="Strong Sell Signal")
Lot Size (USD)Calculate lot size and stop loss from the actual price to the stop loss that you enter manually. Only for Forex pairs with USD