3 EMA Breakout + RSI Pro3in 1 will mostly tell yuo the direction of the trend and tell you to buy and sell but it is not a guarantee that you will take the trade this is only a technical analysis.
تحليل الاتجاه
NY Session Divisions⭐NY Session Divisions - Professional Trading Session Manager
NY Session Divisions is an advanced trading indicator that professionally segments the New York trading day into precise sessions, providing institutional-grade market structure analysis with smart breakout detection and comprehensive filtering systems.
✨ KEY FEATURES
🕒 8 Professional Trading Sessions
- US Overnight Range (03:30-11:50)
- NY Pre-Open (16:45-17:00)
- NY First Session ORB (17:00-17:15)
- Premarket Range - Recommended by Mahdi Salari*
- NY Midday Range
- NY 2nd Pre-Open
- 2nd Session ORB
- US After Hours ORB
🎯 Advanced Trading Strategies
- School Run Strategy (SRS) by Tom Hougaard - Breakout-focused approach
- Anti-SRS Strategy - Range-trading methodology
- Dual Strategy System - Combine breakout and range trading for maximum flexibility
🔔 Smart Alert System
- Multi-timeframe confirmation
- Heiken Ashi candle validation
- Customizable alert conditions
- Sound notifications with detailed messages
- Post-close confirmation to avoid false signals
🛡️ Professional Filter Stack
- Ichimoku Baseline
- Divergence Detection - Advanced market analysis
- EMA 200 Filter - Trend alignment
- Ichimoku Baseline - Market structure
- ATR Filter - Volatility validation
- RSI Filter - Momentum confirmation
🎨 Advanced Visualization
- Clean session range displays
- Professional Heiken Ashi candles
- Smart breakout markers (Small/Tiny for signal strength)
- Take Profit lines with ATR-based calculations
- Customizable colors and opacity
🏆 WHY TRADERS LOVE THIS INDICATOR
✅ For Breakout Traders
- Precise session boundary detection
- Clean breakout signals with confirmation
- Multiple filter validation
✅ For Range Traders
- Clear session range identification
- Anti-SRS strategy for range-bound markets
- Support/Resistance level tracking
✅ For Professional Traders
- Institutional-grade session management
- Comprehensive filtering system
- Multi-timeframe analysis
- Customizable risk management
⚡ QUICK START GUIDE
Basic Setup (2 Minutes)
1. Enable Sessions** - Choose 1-2 sessions to start
2. Set Alerts - Configure your preferred notification method
3. Apply Filters - Enable EMA 200 and Ichimoku for starters
Advanced Configuration
- Combine SRS + Anti-SRS for comprehensive strategy
- Use multiple divergence filters for confirmation
- Customize TP lines based on your risk profile
- Drawing 1st and 2nd Session Close lines
PROFESSIONAL TIPS
Session Selection Strategy
- Start with Session 1 (US Overnight) for overall market trend identification
- Add Session 3 (NY First ORB) for opening momentum
- Use Session 4 (Premarket) for the best perfomance of the breakout strategy
Filter Optimization
- Conservative : EMA 200 + Ichimoku Baseline
- Balanced : Add ATR filter for volatility check 0.8 is enough
- Aggressive : Enable all filters for maximum confirmation but the number of signal and performance will decrease
Risk Management
- Use TP lines for automatic profit targets
- Combine with proper position sizing
- Always use stop losses
🔧 TECHNICAL SPECIFICATIONS
- Platform : TradingView Pine Script v6
- Markets : All US trading instruments (ES, NQ, YM, CL, etc.)
- Timeframes : 1min to Daily
- Auto DST Handling : Yes
- Real-time Processing : Yes
📊 PERFORMANCE FEATURES
- Zero Repaint - All signals confirmed after candle close
- Multi-Timeframe - Works across all chart timeframes
- Resource Optimized - Efficient calculation methods
- User Customizable - Complete control over all parameters
- Consistent Performance - Reliable session-based signals
- Professional Grade - Institutional-level analysis tools
- Continuous Updates - Regular improvements and enhancements
- Community Supported - Active user community and support
🔄 KEEP UPDATED
Click the Favorite Star ⭐ to receive update notifications and stay current with new features and improvements!
Professional traders don't guess - they analyze. NY Session Divisions gives you the analytical edge.
Happy Trading! 📈
Created with precision for serious traders
DISCLAIMER
This indicator is for educational and informational purposes only. It should not be considered as financial advice. Always practice proper risk management and test strategies in demo accounts before live trading. Past performance does not guarantee future results.
Heiken Ashi Bas - Multi-Timeframe Strategy with Advanced FiltersHeiken Ashi BAS - Multi-Timeframe Strategy with Advanced Filters
🚀 Revolutionary Multi-Filter Trading System
This advanced indicator combines the power of Heiken Ashi smoothing with Ichimoku Baseline analysis, enhanced by multiple sophisticated filters for precision trading. ⭐ Add to Favorites and Follow for future updates!
✨ KEY ADVANCEMENTS IN VERSION 2.0
🎯 Dual Slope Divergence System
First Slope (1-bar): Captures immediate momentum shifts
Second Slope (3-bar): Identifies sustained trend direction
Slope Threshold Control: Customizable sensitivity for precise entries
Visual Slope Lines: Real-time slope visualization with color-coded trends
📊 Advanced Filter Matrix
RSI Momentum Filter: Confirms strength with customizable thresholds
ATR Volatility Filter: Ensures meaningful market movements
Volume Spike Detection: Filters low-volume false signals
Session Time Filter: Trade only during optimal market hours
🎭 Revolutionary Trading Psychology Features
Real-Time HA Candle Hidden Mode: Eliminate emotional trading by hiding unfolding candles - only see confirmed formations
Smart Alert Confirmation: Choose between real-time alerts or wait for candle close confirmation
Sound Alert System: Audio notifications for instant signal recognition
Emotion-Free Environment: Trade without the psychological pressure of watching candles form
🔧 CORE FEATURES
Multi-Timeframe Architecture: Separate timeframes for each component: Baseline, EMA, Slope, ATR, RSI - all can operate on different timeframes
True Multi-Timeframe Analysis: Unlike basic indicators, each filter can reference its own optimal timeframe
Flexible configuration: Match timeframes to your trading style - intraday, swing, or position trading
Consistent performance: Works seamlessly across all market conditions and instruments
Smart Alert & Display System
Real-Time vs Confirmed Mode: Toggle between immediate signals or wait for candle close
Sound Alert Integration: Customizable audio notifications with clear distinction between long/short signals
Visual Signal Options: Multiple sizes and colors for clear identification
Background Highlighting: Color-coded backgrounds for quick signal recognition
Advanced Sound Alert System
Instant Audio Notifications: Never miss a signal with clear sound alerts
Customizable Alert Types: Choose which signals trigger audio alerts
Real-time vs Closed Alerts: Sound alerts respect your confirmation preferences
Professional Alert Messages: Clear audio cues for long/short positions with price levels
Real-Time Candle Hidden Technology
Emotion-Free Trading: Hide unfolding candles to eliminate psychological pressure
Professional Approach: Trade like institutions that don't watch tick-by-tick movements
Reduced Overtrading: Fewer impulsive decisions by waiting for confirmed closes
Enhanced Focus: Concentrate on completed price action, not forming candles
Smart Risk Management
Dynamic TP/SL System:
-TP based on higher timeframe ATR
-SL referenced to Ichimoku Baseline
-Extended TP lines act as resistance levels
Configurable Risk-Reward: Adjustable multipliers for TP/SL
Visual Intelligence:
-Color-coded Heiken Ashi candles with adjustable opacity
-Clean, professional chart presentation
-Customizable signal sizes and colors
-Real-time information table with status overview
⚡ ADVANTAGES For TRADERS
Psychology-First Design: Hidden real-time candles eliminate emotional decision making
Double Slope Confirmation: Unlike single-slope systems, our dual approach reduces false signals
Flexible Alert Timing: Choose your confirmation style - immediate or after close
TP as Dynamic Resistance: Take-profit levels often act as temporary resistance, providing additional confirmation
Complete Filter Suite: 6 different filter types for maximum signal quality
True Multi-Timeframe Harmony: Each component can operate on its optimal timeframe
🛠 TECHNICAL SPECIFICATIONS
Primary Signal: Heiken Ashi close above/below Ichimoku Baseline + 200 EMA
Confirmation: Green/Red HA candles with minimum wick requirements
Psychology Tools: Hidden real-time candles + confirmed close options
Alert System: Sound + visual notifications with timing flexibility
Filters: Slope, ATR, RSI, Volume, Session Time
Risk Management: ATR-based TP/SL with extended visibility
Visual Options: Fully customizable colors, opacity, and sizes
🎯 TRADING PSYCHOLOGY BREAKTHROUGH
The Hidden Candle Advantage:
No More Emotional Reactions: Stop watching candles form and second-guessing entries
Confirmed Signals Only: Trade based on completed price action, not anticipation
Reduced Overtrading: Fewer false entries by waiting for proper confirmation
Professional Mindset: Think like institutional traders who don't watch tick-by-tick movements
🌟Sound Alert Benefits:
Instant Recognition: Audio cues help you recognize signals without staring at charts
Multi-Tasking Friendly: Get alerts while working on other tasks
Clear Distinction: Different sounds for long vs short positions
Customizable Volume: Adjust alert volume to your preference
Professional Timeframe Stacking:
Trend Identification: Higher timeframe baseline for overall direction
Entry Precision: Lower timeframe signals for exact timing
Risk Management: Separate timeframe for volatility assessment
Momentum Confirmation: Independent RSI timeframe for strength verification
📈 OPTIMAL SETTINGS
Emotion-Prone Traders: Enable hidden candles + confirmed close + sound alerts
Active Day Traders: Real-time mode with multi-timeframe analysis
Trend Markets: Enable all filters for high-quality signals
Ranging Markets: Use ATR filter to avoid choppy conditions
Session-Specific: Time filter for active hours only
🔍 WHY TRADERS CHOOSE THIS SYSTEM
Psychology Mastery: First indicator designed specifically for emotional control
Proven Accuracy: Multiple confluence points for reliable signals
Adaptive Design: Works across all markets and timeframes
Professional Grade: Institutional-level filtering in retail package
Continuous Innovation: Regular updates with new features
⭐ Don't forget to Add to Favorites and Follow for future updates!
Experience emotion-free trading with the Heiken Ashi Bas system that prioritizes your trading psychology as much as your technical analysis. Join traders who have improve their trading with our multi-timeframe, psychology-first approach.
Custom Date MarkersCustom Date Markers - Pine Script Indicator
This indicator provides a powerful visual tool for technical and pattern analysis by allowing traders to mark up to 10 specific historical dates with customizable vertical lines on any chart. Each date can be assigned its own unique color, making it easy to categorize and distinguish between different types of events or market catalysts.
Primary Use Cases:
The indicator excels at identifying cyclical patterns and recurring market behavior. By marking significant dates such as earnings announcements, Federal Reserve meetings, dividend ex-dates, or seasonal events, traders can quickly visualize whether stocks consistently react in similar ways around these recurring dates. This is particularly valuable for discovering hidden patterns that might not be obvious from price action alone.
Practical Applications:
Earnings Analysis: Mark historical earnings dates to see if a stock tends to rally or sell-off before/after announcements
Macro Events: Identify how assets respond to FOMC meetings, CPI releases, or other economic data
Seasonal Patterns: Track dates that show recurring volatility or directional moves (like tax deadline periods, end-of-quarter re balancing, etc.)
Event Studies: Analyze the impact of company-specific events like product launches, FDA approvals, or leadership changes
Advanced Insights:
What makes this tool particularly interesting is its ability to reveal non-obvious correlations. For example, you might discover that a retail stock consistently experiences volume spikes 2-3 weeks before Black Friday across multiple years, or that certain tech stocks show weakness during specific conference dates. The color-coding feature allows you to layer multiple event types simultaneously—perhaps using red for bearish catalysts and green for bullish ones—creating a visual heat map of historical market reactions.
The indicator's 6-month default spacing (covering 4.5 years) is strategically designed to capture multiple business cycles while maintaining clarity on the chart. This timeframe is long enough to identify genuine patterns rather than coincidences, yet focused enough to remain relevant to current market conditions.
Pro Tip: Combine this indicator with volume analysis or other technical indicators to validate whether the patterns you observe are accompanied by meaningful market participation or if they're statistical noise.
Trend Candles Full ColorThe coloring over the candle sticks isn't showing up on the picture for some reason but when you click on the indicator the color coding will appear on the chart.
Trend Candles Full Color Indicator Explanation The "Trend Candles Full Color" indicator, designed for TradingView, visually enhances candlestick charts by coloring candles based on their position relative to a simple moving average (SMA). Here's how it works and how it can benefit traders: How It Works Input : Adjust the SMA period (default is 20) to define the trend length.
Logic : The indicator compares the closing price of each candle to the SMA: Green Candle : Close is above the SMA (indicating an uptrend).
Red Candle : Close is below the SMA (indicating a downtrend).
Gray Candle : Close equals the SMA (neutral/no clear trend).
Output : Candles (body, wick, and border) are colored green, red, or gray based on the trend, overlaid directly on your price chart.
Benefits and Use Cases Trend-Following Strategies Benefit: Clearly identifies bullish (green) or bearish (red) trends, helping traders ride momentum.
Example: A swing trader using a 20-period SMA can enter long positions when candles turn green (price above SMA) and exit or short when candles turn red, confirming trend reversals.
Reversal Trading Benefit: Gray candles signal indecision near the SMA, often a precursor to reversals.
Example: A day trader might watch for gray candles after a prolonged uptrend (green candles) to anticipate a potential bearish reversal, combining with other indicators like RSI for confirmation.
Scalping Benefit: Quick visual cues for short-term trend changes on lower timeframes.
Example: A scalper on a 5-minute chart can use green candles to confirm quick bullish moves and red candles to avoid counter-trend trades, enhancing decision speed.
Position Sizing or Risk Management Benefit: Color changes highlight trend strength, aiding in adjusting trade size or stops.
Example: A trader might increase position size during strong green candle sequences (sustained uptrend) and tighten stops when gray candles appear, signaling potential trend weakness.
Tips for Use Adjust the MA Length to suit your trading style (e.g., shorter for scalping, longer for swing trading).
Combine with other indicators (e.g., support/resistance, MACD) for better accuracy.
Test on different timeframes to match your strategy.
Recommended MA Length for 1-Minute Charts Short-Term/Scalping (1-5 minute trades):10-period SMA : Very sensitive, ideal for capturing quick price movements in fast markets. May produce more noise (false signals).
20-period SMA : A balanced choice for 1-minute charts, smoothing minor fluctuations while reacting to short-term trends. A great starting point for scalpers.
Intraday Trend Trading (10-30 minute holds):50-period SMA : Captures broader intraday trends, reducing noise but lagging slightly. Suitable for larger moves within a session.
This indicator simplifies trend identification, making it a versatile tool for traders of all styles, from beginners to advanced users!
Recommended MA Length for Swing Trading / Higher Timeframes Swing Trading (holding trades for days to weeks):50-period SMA : A popular choice for swing traders on higher timeframes (e.g., 1-hour or 4-hour charts). It smooths out short-term fluctuations while identifying medium-term trends. Ideal for capturing multi-day swings.
100-period SMA : Slightly longer, this MA is great for confirming stronger, more sustained trends. It’s useful on 4-hour or daily charts for swing traders aiming to ride larger price moves.
Longer-Term Trend Trading (holding for weeks to months):200-period SMA : A classic choice for higher timeframes like daily or weekly charts. It highlights major market trends and is widely used by swing and position traders to filter out noise and focus on long-term direction.
150-period SMA : A middle ground between the 100 and 200 SMA, suitable for daily charts when you want a balance between responsiveness and trend reliability.
EMA HI/LO Cloud Shift + Extra EMA//@version=6
indicator("EMA HI/LO Cloud Shift + Extra EMA + Shift EMA Line", overlay=true, max_lines_count=6, max_labels_count=0)
// ------------------------
// Inputs
// ------------------------
emaLength = input.int(22, "Main EMA Length", minval=1, maxval=200)
emaLineColor = input.color(color.blue, "Main EMA Lines Color")
// Main Cloud colors
cloudAboveColor = input.color(color.new(color.green, 80), "Main Cloud Color (Price Above)")
cloudBelowColor = input.color(color.new(color.red, 80), "Main Cloud Color (Price Below)")
cloudInsideColor = input.color(color.new(color.orange, 80), "Main Cloud Color (Price Inside)")
// ------------------------
// Shift EMA (new logic)
// ------------------------
showShiftEMA = input.bool(true, "Show Shift EMA Line?")
shiftEMALength = input.int(26, "Shift EMA Length", minval=1, maxval=500)
shiftEMASource = input.source(close, "Shift EMA Source") // fully customizable source
shiftEMAColor = input.color(color.purple, "Shift EMA Color")
shiftEMAWide = input.int(2, "Shift EMA Line Width", minval=1, maxval=5)
shiftEMAOffset = input.int(0, "Shift EMA Offset", minval=-100, maxval=100)
// ------------------------
// Second EMA (independent)
// ------------------------
showSecondEMA = input.bool(true, "Show Second EMA?")
secondEMALength = input.int(200, "Second EMA Length", minval=1, maxval=1000)
secondEMAColor = input.color(color.yellow, "Second EMA Color")
secondEMAWide = input.int(2, "Second EMA Line Width", minval=1, maxval=5)
// ------------------------
// Main EMA Cloud Calculations
// ------------------------
emaHigh = ta.ema(high, emaLength)
emaLow = ta.ema(low, emaLength)
// ------------------------
// Main Cloud logic
// ------------------------
priceAboveMain = close > emaHigh
priceBelowMain = close < emaLow
priceInsideMain = not priceAboveMain and not priceBelowMain
cloudColorMain = priceAboveMain ? cloudAboveColor : priceBelowMain ? cloudBelowColor : cloudInsideColor
p1_main = plot(emaHigh, title="Main EMA High", color=emaLineColor, linewidth=2)
p2_main = plot(emaLow, title="Main EMA Low", color=emaLineColor, linewidth=2)
fill(p1_main, p2_main, color=cloudColorMain, title="Main EMA Cloud")
// ------------------------
// Shift EMA Line (replaces cloud offset)
// ------------------------
shiftEMA = ta.ema(shiftEMASource, shiftEMALength)
plot(showShiftEMA ? shiftEMA : na, title="Shift EMA Line", color=shiftEMAColor, linewidth=shiftEMAWide, offset=shiftEMAOffset)
// ------------------------
// Second EMA Plot (Independent)
// ------------------------
secondEMA = ta.ema(close, secondEMALength)
plot(showSecondEMA ? secondEMA : na, title="Second EMA", color=secondEMAColor, linewidth=secondEMAWide)
SB LONG ENTRY/EXITBASED on HULL slope average. ISN'T IT VERY ROBUST?
Very good for daily, weekly and monthly timeframes. Stocks especially.....
I prefer it without optonal stop loss on other position protection stops.
Wonderful both equal weight position or with a D'alembert style weighting of positions....
Hold the Hull period parameter between 30 and 60 or more, but it's not so sensitive to this optimization.
All the best,
Sandro Bisotti
FDF — EMAs+VWAP with setup & entry (stable scale) - Final 9
21
vwap
entry system
90% candle
tend
This will help you find the perfect entry off the 9 and 21 using the vwap for confluence. We have a strick 90% candle or wick off the 21
We have wick on the entry side more than 30% of the candle
Entry / exit zones (only long positions)Great and simple helping tool to find good entry/exit point for mid/long term trading on stocks especially but also indexes and other..... Good on daily timeframe, but better with weekly and monthly. Based on Hull average slope. Hold the average period value among 30 and 50 or more. I prefer the version WITHOUT stop loss and other exit rules (optional).
All the best and good trading!
SB
Zero Lag Trend Signals (MTF) [Quant Trading] V7Overview
The Zero Lag Trend Signals (MTF) V7 is a comprehensive trend-following strategy that combines Zero Lag Exponential Moving Average (ZLEMA) with volatility-based bands to identify high-probability trade entries and exits. This strategy is designed to reduce lag inherent in traditional moving averages while incorporating dynamic risk management through ATR-based stops and multiple exit mechanisms.
This is a longer term horizon strategy that takes limited trades. It is not a high frequency trading and therefore will also have limited data and not > 100 trades.
How It Works
Core Signal Generation:
The strategy uses a Zero Lag EMA (ZLEMA) calculated by applying an EMA to price data that has been adjusted for lag:
Calculate lag period: floor((length - 1) / 2)
Apply lag correction: src + (src - src )
Calculate ZLEMA: EMA of lag-corrected price
Volatility bands are created using the highest ATR over a lookback period multiplied by a band multiplier. These bands are added to and subtracted from the ZLEMA line to create upper and lower boundaries.
Trend Detection:
The strategy maintains a trend variable that switches between bullish (1) and bearish (-1):
Long Signal: Triggers when price crosses above ZLEMA + volatility band
Short Signal: Triggers when price crosses below ZLEMA - volatility band
Optional ZLEMA Trend Confirmation:
When enabled, this filter requires ZLEMA to show directional momentum before entry:
Bullish Confirmation: ZLEMA must increase for 4 consecutive bars
Bearish Confirmation: ZLEMA must decrease for 4 consecutive bars
This additional filter helps avoid false signals in choppy or ranging markets.
Risk Management Features:
The strategy includes multiple stop-loss and take-profit mechanisms:
Volatility-Based Stops: Default stop-loss is placed at ZLEMA ± volatility band
ATR-Based Stops: Dynamic stop-loss calculated as entry price ± (ATR × multiplier)
ATR Trailing Stop: Ratcheting stop-loss that follows price but never moves against position
Risk-Reward Profit Target: Take-profit level set as a multiple of stop distance
Break-Even Stop: Moves stop to entry price after reaching specified R:R ratio
Trend-Based Exit: Closes position when price crosses EMA in opposite direction
Performance Tracking:
The strategy includes optional features for monitoring and analyzing trades:
Floating Statistics Table: Displays key metrics including win rate, GOA (Gain on Account), net P&L, and max drawdown
Trade Log Labels: Shows entry/exit prices, P&L, bars held, and exit reason for each closed trade
CSV Export Fields: Outputs trade data for external analysis
Default Strategy Settings
Commission & Slippage:
Commission: 0.1% per trade
Slippage: 3 ticks
Initial Capital: $1,000
Position Size: 100% of equity per trade
Main Calculation Parameters:
Length: 70 (range: 70-7000) - Controls ZLEMA calculation period
Band Multiplier: 1.2 - Adjusts width of volatility bands
Entry Conditions (All Disabled by Default):
Use ZLEMA Trend Confirmation: OFF - Requires ZLEMA directional momentum
Re-Enter on Long Trend: OFF - Allows multiple entries during sustained trends
Short Trades:
Allow Short Trades: OFF - Strategy is long-only by default
Performance Settings (All Disabled by Default):
Use Profit Target: OFF
Profit Target Risk-Reward Ratio: 2.0 (when enabled)
Dynamic TP/SL (All Disabled by Default):
Use ATR-Based Stop-Loss & Take-Profit: OFF
ATR Length: 14
Stop-Loss ATR Multiplier: 1.5
Profit Target ATR Multiplier: 2.5
Use ATR Trailing Stop: OFF
Trailing Stop ATR Multiplier: 1.5
Use Break-Even Stop-Loss: OFF
Move SL to Break-Even After RR: 1.5
Use Trend-Based Take Profit: OFF
EMA Exit Length: 9
Trade Data Display (All Disabled by Default):
Show Floating Stats Table: OFF
Show Trade Log Labels: OFF
Enable CSV Export: OFF
Trade Label Vertical Offset: 0.5
Backtesting Date Range:
Start Date: January 1, 2018
End Date: December 31, 2069
Important Usage Notes
Default Configuration: The strategy operates in its most basic form with default settings - using only ZLEMA crossovers with volatility bands and volatility-based stop-losses. All advanced features must be manually enabled.
Stop-Loss Priority: If multiple stop-loss methods are enabled simultaneously, the strategy will use whichever condition is hit first. ATR-based stops override volatility-based stops when enabled.
Long-Only by Default: Short trading is disabled by default. Enable "Allow Short Trades" to trade both directions.
Performance Monitoring: Enable the floating stats table and trade log labels to visualize strategy performance during backtesting.
Exit Mechanisms: The strategy can exit trades through multiple methods: stop-loss hit, take-profit reached, trend reversal, or trailing stop activation. The trade log identifies which exit method was used.
Re-Entry Logic: When "Re-Enter on Long Trend" is enabled with ZLEMA trend confirmation, the strategy can take multiple long positions during extended uptrends as long as all entry conditions remain valid.
Capital Efficiency: Default setting uses 100% of equity per trade. Adjust "default_qty_value" to manage position sizing based on risk tolerance.
Realistic Backtesting: Strategy includes commission (0.1%) and slippage (3 ticks) to provide realistic performance expectations. These values should be adjusted based on your broker and market conditions.
Recommended Use Cases
Trending Markets: Best suited for markets with clear directional moves where trend-following strategies excel
Medium to Long-Term Trading: The default length of 70 makes this strategy more appropriate for swing trading rather than scalping
Risk-Conscious Traders: Multiple stop-loss options allow traders to customize risk management to their comfort level
Backtesting & Optimization: Comprehensive performance tracking features make this strategy ideal for testing different parameter combinations
Limitations & Considerations
Like all trend-following strategies, performance may suffer in choppy or ranging markets
Default 100% position sizing means full capital exposure per trade - consider reducing for conservative risk management
Higher length values (70+) reduce signal frequency but may improve signal quality
Multiple simultaneous risk management features may create conflicting exit signals
Past performance shown in backtests does not guarantee future results
Customization Tips
For more aggressive trading:
Reduce length parameter (minimum 70)
Decrease band multiplier for tighter bands
Enable short trades
Use lower profit target R:R ratios
For more conservative trading:
Increase length parameter
Enable ZLEMA trend confirmation
Use wider ATR stop-loss multipliers
Enable break-even stop-loss
Reduce position size from 100% default
For optimal choppy market performance:
Enable ZLEMA trend confirmation
Increase band multiplier
Use tighter profit targets
Avoid re-entry on trend continuation
Visual Elements
The strategy plots several elements on the chart:
ZLEMA line (color-coded by trend direction)
Upper and lower volatility bands
Long entry markers (green triangles)
Short entry markers (red triangles, when enabled)
Stop-loss levels (when positions are open)
Take-profit levels (when enabled and positions are open)
Trailing stop lines (when enabled and positions are open)
Optional ZLEMA trend markers (triangles at highs/lows)
Optional trade log labels showing complete trade information
Exit Reason Codes (for CSV Export)
When CSV export is enabled, exit reasons are coded as:
0 = Manual/Other
1 = Trailing Stop-Loss
2 = Profit Target
3 = ATR Stop-Loss
4 = Trend Change
Conclusion
Zero Lag Trend Signals V7 provides a robust framework for trend-following with extensive customization options. The strategy balances simplicity in its core logic with sophisticated risk management features, making it suitable for both beginner and advanced traders. By reducing moving average lag while incorporating volatility-based signals, it aims to capture trends earlier while managing risk through multiple configurable exit mechanisms.
The modular design allows traders to start with basic trend-following and progressively add complexity through ZLEMA confirmation, multiple stop-loss methods, and advanced exit strategies. Comprehensive performance tracking and export capabilities make this strategy an excellent tool for systematic testing and optimization.
Note: This strategy is provided for educational and backtesting purposes. All trading involves risk. Past performance does not guarantee future results. Always test thoroughly with paper trading before risking real capital, and adjust position sizing and risk parameters according to your risk tolerance and account size.
================================================================================
TAGS:
================================================================================
trend following, ZLEMA, zero lag, volatility bands, ATR stops, risk management, swing trading, momentum, trend confirmation, backtesting
================================================================================
CATEGORY:
================================================================================
Strategies
================================================================================
CHART SETUP RECOMMENDATIONS:
================================================================================
For optimal visualization when publishing:
Use a clean chart with no other indicators overlaid
Select a timeframe that shows multiple trade signals (4H or Daily recommended)
Choose a trending asset (crypto, forex major pairs, or trending stocks work well)
Show at least 6-12 months of data to demonstrate strategy across different market conditions
Enable the floating stats table to display key performance metrics
Ensure all indicator lines (ZLEMA, bands, stops) are clearly visible
Use the default chart type (candlesticks) - avoid Heikin Ashi, Renko, etc.
Make sure symbol information and timeframe are clearly visible
================================================================================
COMPLIANCE NOTES:
================================================================================
✅ Open-source publication with complete code visibility
✅ English-only title and description
✅ Detailed explanation of methodology and calculations
✅ Realistic commission (0.1%) and slippage (3 ticks) included
✅ All default parameters clearly documented
✅ Performance limitations and risks disclosed
✅ No unrealistic claims about performance
✅ No guaranteed results promised
✅ Appropriate for public library (original trend-following implementation with ZLEMA)
✅ Educational disclaimers included
✅ All features explained in detail
================================================================================
HoneG_BJVH 改良版v2ザオプションのワンタッチ取引向けのサブチャート用ツールver2です
旧版は無効です
This is version 2 of the subchart tool for one-touch trading on The Option.
The previous version is no longer valid.
TTM Squeeze Pro - IntradayTTM Squeeze Pro – Intraday (AI MTF Edition)
Design Rationale
This indicator is built to help traders identify when markets are consolidating, when volatility is building (squeeze), and when a breakout or trend is starting — all across multiple timeframes.
The design combines three powerful ideas:
Volatility Compression & Expansion (TTM Squeeze Logic):
By comparing Bollinger Bands (BB) and Keltner Channels (KC), the indicator detects when volatility contracts (BB inside KC). These moments often precede explosive moves. White dots on the BB basis line mark these “squeeze” periods.
Trend Strength & Direction (ADX System):
The ADX (Average Directional Index) measures how strong a trend is.
ADX rising above the threshold → trending market.
ADX falling below the threshold → consolidation.
The system classifies each bar as Trending Up, Trending Down, Consolidating, or Neutral, depending on ADX and momentum direction.
Multi-Timeframe (MTF) Alignment:
The same logic is applied to several timeframes (1m, 3m, 5m, 15m, 30m, 1h).
A compact table at the top-right shows each timeframe’s trend and squeeze strength.
This helps traders see whether short-term and higher timeframes are aligned, improving trade confidence and timing.
The AI Enhancer automatically adjusts all parameters (ADX, BB, KC lengths, and thresholds) depending on the current chart timeframe, keeping signals consistent between scalping and swing trading setups.
Trend and squeeze strengths are normalized on a 1–9 scale, giving users a quick numerical sense of trend power and squeeze intensity. The design emphasizes clarity, speed, and adaptability — critical for intraday trading decisions.
How to Use
Identify a Squeeze Setup:
Look for white dots on the chart — this marks low volatility and potential energy buildup.
Wait for Breakout Confirmation:
When the white dots disappear, volatility expands.
Check the MTF table — if multiple timeframes show green (uptrend) or red (downtrend) in the “TR” column, momentum is aligning.
Enter the Trade:
Go long if breakout happens above BB basis and most timeframes show green.
Go short if breakout happens below BB basis and most timeframes show red.
Exit or Manage Position:
When new white dots appear → volatility contracting again → consider exiting or tightening stops.
If MTF colors become mixed → trend losing strength.
In Summary
The TTM Squeeze Pro – Intraday AI MTF Indicator blends volatility analysis, trend strength, momentum, and multi-timeframe alignment into one adaptive tool.
Its design aims to simplify complex market behavior into a visual, data-backed format — enabling traders to catch high-probability breakout trends early and avoid false moves during low-volatility phases.
DayFlow VWAP Relay Forex Majors StrategySummary in one paragraph
DayFlow VWAP Relay is a day-trading strategy for major FX pairs on intraday timeframes, demonstrated on EURUSD 15 minutes. It waits for alignment between a daily anchored VWAP regime check, residual percentiles, and lower-timeframe micro flow before suggesting trades. The originality is the fusion of daily VWAP residual percentiles with a live micro-flow score from 1 minute data to switch between fade and breakout behavior inside the same session. Add it to a clean chart and use the markers and alerts.
Scope and intent
• Markets: Major FX pairs such as EURUSD, GBPUSD, USDJPY, AUDUSD, USDCHF, USDCAD
• Timeframes: One minute to one hour
• Default demo in this publication: EURUSD on 15 minutes
• Purpose: Reduce false starts by acting only when context, location and micro flow agree
• Limits: This is a strategy. Orders are simulated on standard candles only
Originality and usefulness
• Core novelty: Residual percentiles to daily anchored VWAP decide “balanced versus expanding day”. A separate 1 minute micro-flow score confirms direction, so the same model fades extremes in balance and rides range breaks in expansion
• Failure modes addressed: Chop fakeouts and unconfirmed breakouts are filtered by the expansion gate and micro-flow threshold
• Testability: Every input is exposed. Bands, background regime color, and markers show why a suggestion appears
• Portable yardstick: Stops and targets are ATR multiples converted to ticks, which transfer across symbols
• Open source status: No reused third-party code that requires attribution
Method overview in plain language
The day is anchored with a VWAP that updates from the daily session start. Price minus VWAP is the residual. Percentiles of that residual measured over a rolling window define location extremes for the current day. A regime score compares residual volatility to price volatility. When expansion is low, the day is treated as balanced and the model fades residual extremes if 1 minute micro flow points back to VWAP. When expansion is high, the model trades breakouts outside the VWAP bands if slope and micro flow agree with the move.
Base measures
• Range basis: True Range smoothed by ATR for stops and targets, length 14
• Return basis: Not required for signals; residuals are absolute price distance to VWAP
Components
• Daily Anchor VWAP Bands. VWAP with standard-deviation bands. Slope sign is used for trend confirmation on breakouts
• Residual Percentiles. Rolling percentiles of close minus VWAP over Signal length. Identify location extremes inside the day
• Expansion Ratio. Standard deviation of residuals divided by standard deviation of price over Signal length. Classifies balanced versus expanding day
• Micro Flow. Net up minus down closes from 1 minute data across a short span, normalized to −1..+1. Confirms direction and avoids fades against pressure
• Session Window optional. Restricts trading to your configured hours to avoid thin periods
• Cooldown optional. Bars to wait after a position closes to prevent immediate re-entry
Fusion rule
Gating rather than weighting. First choose regime by Expansion Ratio versus the Expansion gate. Inside each regime all listed conditions must be true: location test plus micro-flow threshold plus session window plus cooldown. Breakouts also require VWAP slope alignment.
Signal rule
• Long suggestion on balanced day: residual at or below the lower percentile and micro flow positive above the gate while inside session and cooldown is satisfied
• Short suggestion on balanced day: residual at or above the upper percentile and micro flow negative below the gate while inside session and cooldown is satisfied
• Long suggestion on expanding day: close above the upper VWAP band, VWAP slope positive, micro flow positive, session and cooldown satisfied
• Short suggestion on expanding day: close below the lower VWAP band, VWAP slope negative, micro flow negative, session and cooldown satisfied
• Positions flip on opposite suggestions or exit by brackets
What you will see on the chart
• Markers on suggestion bars: L for long, S for short
• Exit occurs on reverse signal or when a bracket order is filled
• Reference lines: daily anchored VWAP with upper and lower bands
• Optional background: teal for balanced day, orange for expanding day
Inputs with guidance
Setup
• Signal length. Residual and regime window. Typical 40 to 100. Higher smooths, lower reacts faster
Micro Flow
• Micro TF. Lower timeframe used for micro flow, default 1 minute
• Micro span bars. Count of lower-TF bars. Typical 5 to 20
• Micro flow gate 0..1. Minimum absolute flow. Raising it demands stronger confirmation and reduces trade count
VWAP Bands
• VWAP stdev multiplier. Band width. Typical 0.8 to 1.6. Wider bands reduce breakout frequency and increase fade distance
• Expansion gate 0..3. Threshold to switch from fades to breakouts. Raising it favors fades, lowering it favors breakouts
Sessions
• Use session filter. Enable to trade only inside your window
• Trade window UTC. Default 07:00 to 17:00
Risk
• ATR length. Stop and target basis. Typical 10 to 21
• Stop ATR x. Initial stop distance in ATR multiples
• Target ATR x. Profit target distance in ATR multiples
• Cooldown bars after close. Wait bars before a new entry
• Side. Both, long only, or short only
View
• Show VWAP and bands
• Color bars by residual regime
Properties visible in this publication
• Initial capital 10000
• Base currency Default
• request.security uses lookahead off everywhere
• Strategy: Percent of equity with value 3. Pyramiding 0. Commission cash per order 0.0001 USD. Slippage 3 ticks. Process orders on close ON. Bar magnifier ON. Recalculate after order is filled OFF. Calc on every tick OFF. Using standard OHLC fills ON.
Realism and responsible publication
No performance claims. Past results never guarantee future outcomes. Fills and slippage vary by venue. Shapes can move while a bar forms and settle on close. Strategies must run on standard candles for signals and orders.
Honest limitations and failure modes
High impact news, session opens, and thin liquidity can invalidate assumptions. Very quiet days can reduce contrast between residuals and price volatility. Session windows use the chart exchange time. If both stop and target are touched within a single bar, TradingView’s standard OHLC price-movement model decides the outcome.
Expect different behavior on illiquid pairs or during holidays. The model is sensitive to session definitions and feed time. Past results never guarantee future outcomes.
Legal
Education and research only. Not investment advice. You are responsible for your decisions. Test on historical data and in simulation before any live use. Use realistic costs.
SMC + CRT Gold Flow PRO — Fixed RGB ColorsSCRIPT FOR GOLD. I used SMC + CRT strategies. I analyze in H4 timeframe and enter in m15 time frame.
Order Blocks — Smart Mitigation & OB Labels (SMC/ICT)Order Blocks — Smart Mitigation & OB Labels (SMC/ICT) — TradingATH
Precision. Stability. Execution.
This refined indicator automatically detects and draws bullish and bearish Order Blocks , perfectly anchored to the candle that created them. Each zone remains fixed, never drifting as you move the chart, ensuring absolute spatial accuracy.
ATR-based filters remove insignificant blocks, and optional live extensions allow active OBs to project forward until price delivers mitigation.
What You’ll See
Bullish Order Blocks in subtle green tones, with a fine mid-line and a small label reading “Bullish OB (Order Block)”.
Bearish Order Blocks in elegant red tones, equally marked and labeled.
Compact, controlled-length zones extending only for the defined number of bars.
Optional dynamic extension for unmitigated blocks until price returns.
Real-time alerts when price enters the most recent bullish or bearish OB.
Features
True anchoring : OBs are plotted in absolute time coordinates, fixed to the original source candle. No drift.
Custom length control : Adjust each block’s horizontal reach by number of bars.
ATR-based filters : Define minimum and maximum OB size (in multiples of ATR) to maintain clean and relevant zones.
Smart mitigation logic : Choose between “Wick” or “Close” for OB validation; mitigated blocks are automatically removed.
Elegant labeling : Minimalistic text inside each block, positionable in any corner for optimal readability.
Advanced alerts : Automated signals for new OB formation and price entry into the latest block.
Professional architecture : Size-safe arrays, optimized rendering, and zero performance waste.
ICT/SMC ready : Fully compatible with advanced concepts such as Fair Value Gaps, Liquidity Sweeps, and Session Timing.
Perfect For
Traders applying ICT or Smart Money Concepts who require precise OB identification and mitigation tracking.
Intraday traders seeking clarity and efficiency on fast-moving charts.
Swing traders filtering premium-quality OBs based on volatility structure.
Recommended Settings
OB Length: 10 bars (adjust to timeframe and volatility).
Label position: Bottom-Right for most clarity.
Mitigation method: “Wick” for flexible precision; “Close” for stricter validation.
ATR filter: Minimum 0.25×, Maximum 3× (balanced range for most assets).
In Short
Clean structure. Absolute precision. Professional delivery.
Order Blocks — Smart Mitigation & OB Labels (SMC/ICT) provides a stable, disciplined visualization of institutional order flow — designed for traders who demand both accuracy and aesthetic refinement.
Created by: TradingATH
ten2 Multi MAThis powerful all-in-one indicator allows you to display three Exponential Moving Averages (EMAs) and three Simple Moving Averages (SMAs) on your chart from a single script. Save indicator slots and get a comprehensive view of market trends across different timeframes. Every moving average is fully customizable in length, colour, and source, giving you complete control over your technical analysis setup.
London Open High/Low 9:00-9:15indicator marks out high and low of the first 15 minutes of the London session.
Daily Pivot Points LEVELS S-RThis indicator plots daily pivot points based on the previous day’s high, low, and close. It displays the main pivot line, as well as the first levels of support (S1) and resistance (R1), with optional second levels (R2, S2) for additional reference. Ideal for
Choppiness Index | CipherDecodedThe Choppiness Index is a multi-timeframe regime indicator that measures whether price action is trending or consolidating.
This recreation was inspired by the Choppiness Index chart from Checkonchain, with full credit to their team for the idea.
🔹 How It Works
CI = 100 * log10( SUM(ATR(1), n) / (highest(high, n) – lowest(low, n)) ) / log10(n)
Where:
n – lookback length (e.g. 14 days / 10 weeks / 10 months)
ATR(1) – true-range of each bar
SUM(ATR(1), n) – total true-range over n bars
highest(high, n) and lowest(low, n) – price range over n bars
Low values → strong trend
High values → sideways consolidation
Below is a simplified function used in the script for computing CI on any timeframe:
f_ci(_n) =>
_tr = ta.tr(true)
_sum = math.sum(_tr, _n)
_hh = ta.highest(high, _n)
_ll = ta.lowest(low, _n)
_rng = _hh - _ll
_rng > 0 ? 100 * math.log10(_sum / _rng) / math.log10(_n) : na
Consolidation Threshold — 50.0
Trend Threshold — 38.2
When Weekly CI < Trend Threshold, a trending zone (yellow) appears.
When Weekly CI > Consolidation Threshold, a consolidation zone (purple) appears.
Users can toggle either background independently.
🔹 Example Background Logic
bgcolor(isTrend and Trend ? color.new(#f3e459, 50) : na, title = "Trending", force_overlay = true)
bgcolor(isConsol and Cons ? color.new(#974aa5, 50) : na, title = "Consolidation", force_overlay = true)
🔹 Usage Tips
Observe the Weekly CI for regime context.
Combine with price structure or trend filters for signal confirmation.
Low CI values (< 38) indicate strong trend activity — the market may soon consolidate to reset.
High CI values (> 60) reflect sideways or range-bound conditions — the market is recharging before a potential new trend.
🔹 Disclaimer
This indicator is provided for educational purposes.
No trading outcomes are guaranteed.
This tool does not guarantee market turns or performance; it should be used as part of a broader system.
Use responsibly and perform your own testing.
🔹 Credits
Concept origin — Checkonchain Choppiness Index
Heiken Ashi Trend w/vol Signals**Heiken Ashi Trend Signals**
⚠️ **DISCLAIMER: Trading involves extreme risk. This is for educational purposes only.**
**What This Indicator Does:**
This indicator identifies potential entry and exit points for trending moves by analyzing Heiken Ashi candle patterns combined with moving average confirmation and trend visualization. It provides visual signals based on specific candle characteristics and momentum shifts, along with volume. This can help spot reversals, pullback/continuations, take profit signals, and other trading opportunities.
**IMPORTANT:** It is recommended to use along with Heiken Ashi style candles, but the signals will still plot on other chart types. It's important to know it's always using Heiken Ashi calculations regardless of which chart style you prefer. Intended to use with Weekly/Daily chart, Daily/4hr chart, or 4hr/1hr chart combinations.
**Turn off all sell signals to reduce clutter if you're trading Longs
**Alert Functionality:**
Choose which signals matter most to your trading strategy or which entry you're waiting for on a specific chart. Set up individual alerts for:
- Long Entry - Get notified when bullish signal criteria are met
- Long Entry High Volume - Get notified only when bullish signals occur with above average volume
- Exit Long - Know when long exit conditions trigger
- Short Entry - Catch bearish signal opportunities
- Short Entry High Volume - Get notified only when bearish signals occur with above average volume.
- Exit Short - Exit alerts for short positions
Monitor opportunities across multiple symbols without watching charts constantly. Each alert type can be enabled or disabled independently based on your specific setup. They can also be added to entire watchlists at once, depending on the TV plan you have.
**Key Features:**
📢 Flexible Alert System: Select only the signal types you want to be notified about - perfect for traders who focus exclusively on longs, shorts, or both
🟢 Long Entry Signals: Identifies strong bullish candles (no lower wick) that close above both EMAs with recent "red bar" in the previous 4 bars
🔴 Short Entry Signals: Identifies strong bearish candles (no upper wick) that close below both EMAs with recent "green bar" in the previous 4 bars
🚪 Exit Signals: Flags when opposing candle color appears (orange X for long exits, purple X for short exits) - this can be a take profit, stop loss adjustment, etc., depending on your target or other confluence such as support/resistance, 200 SMA, etc.
📊 Volume Confirmation: Small colored circles appear on signal bars to indicate volume strength (green = above average, yellow = below average)**
☁️ Dynamic EMA Cloud: Visual trend indicator based on EMA alignment
📊 Customizable Moving Averages: Two EMAs (default 8 & 30) and two SMAs (default 50 & 200), all fully adjustable
🎨 Full Customization: All colors, transparencies, and line weights are adjustable in the Style tab
**Understanding Heiken Ashi Candles:**
Regular candlesticks display raw price action, including every minor fluctuation and moment of indecision. Heiken Ashi candles take a different approach - they average price data from the current and previous periods, creating a smoothed representation of price movement.
Think of it like this: if regular candles show every ripple in the ocean, Heiken Ashi candles are the overall movement of the ocean.
This smoothing process filters out market noise and makes genuine trend changes easier to identify.
**Benefits of Using Heiken Ashi:**
✅ Clearer Trend Visualization - Sustained color runs indicate strong trends
✅ Reduced Noise - Smoothing removes choppy, indecisive price action
✅ Momentum Identification - Helps spot potential shifts in market direction
✅ Easier to Read - Less cognitive load analyzing price action
**Moving Averages & Trend Context:**
The indicator includes a comprehensive moving average system to provide trend context:
**Simple Moving Averages:**
- SMA 1 (default 50) - Intermediate trend reference
- SMA 2 (default 200) - Long-term trend reference
- Both lengths are fully customizable
- Toggle on/off independently
- Use for additional support/resistance context and confluence
**Volume Confirmation:**
The indicator includes volume analysis to help assess signal stength:
- Green circle = strong volume
- Orange circle = weak volume
**High volume alerts available** - set alerts specifically for signals that occur with strong volume
**Why This Matters:**
- Breakouts with high volume tend to be more reliable
- Low volume signals may indicate weak participation or false moves
- Allows you to prioritize high-conviction setups
- Can filter out low-volume signals entirely using the "High Volume" alert options
**Benefits of This Approach:**
✅ Additional Confirmation - Requires breaking through resistance/support
✅ Filtered Signals - Reduces signals on weak bounces
✅ Quality Focus - Fewer but more structured setups
✅ Clear Criteria - Objective rules for signal generation
**Using This Indicator in Confluence:**
This indicator is designed to be one component of a comprehensive trading strategy. Always use it in conjunction with other analysis methods:
**Potential Confluence Factors:**
✅ Volume Confirmation - Higher volume breakouts are typically more reliable
✅ Longer-Term Moving Averages (50ma & 200ma), Support & Resistance, Fibonacci levels, etc
✅ Market Structure - Identify higher highs/lows (uptrend) or lower highs/lows (downtrend)
✅ Time Frame Alignment - Confirm signals on your trading timeframe align with higher timeframe trends
**Important Considerations:**
This indicator provides signals based on mathematical criteria, but does not guarantee trading success. All trading involves risk, and you should:
- Never rely on a single indicator for trading decisions
- Always do your own analysis and due diligence
- Use proper risk management and position sizing
- Practice on paper/demo accounts
- Understand that past performance does not indicate future results
**What Makes This Indicator Useful:**
This indicator combines multiple confirmation factors:
- No bottom wick (for longs) = buyers controlled the entire session, no lower rejection
- No top wick (for shorts) = sellers controlled the entire session, no upper rejection
- Volume confirmation = visual indicator of participation strength
- Visual trend context = cloud color shows EMA alignment at a glance
**Best Used For:**
- Swing trading on daily/weekly timeframes. Some prefer to enter on 4hr confirmation.
- Identifying potential trend changes for further analysis
- Visual confirmation of EMA alignment and trend structure
- Combining with volume, support/resistance, and other technical factors
- Filtering for high-probability setups with volume confirmation
- Systematic, rules-based approach to reduce emotional decisions
- Spotting reversals, pullbacks/continuations, and take profit opportunities
All visual elements are fully customizable to match your charting preferences while maintaining the core signal logic.
**Educational Tool:**
This indicator is intended as an educational and analytical tool to help traders identify potential setups based on specific technical criteria. It should be used as part of a broader trading education and strategy development process, not as standalone trading advice.
---
GEX Delta Hedging Lines - v.4.1GEX Delta Hedging Indicator - Institutional Levels
Introduction
This Pine Script indicator is designed to visualize Gamma Exposure (GEX) levels, Delta Hedging zones, and institutional support/resistance points on your TradingView charts. It helps traders identify key price levels where market makers and institutions might hedge their options positions, potentially leading to price reversals or continuations. The indicator overlays lines for resistances (Call Wall, R1, R2), supports (Put Wall, S1, S2, S3), a Gamma Flip zone, and customizable trading zones (Buy, Neutral, Sell). It also includes alerts for level breaches and a summary table for quick reference.
Key Features
Resistance Levels: Call Wall (maximum resistance), R1 (strong), R2 (light) – all configurable with colors, styles, and widths.
Support Levels: Put Wall (maximum support), S1 (strong), S2 (moderate), S3 (weak/danger) – fully customizable.
Gamma Flip Zone: Indicates potential regime changes in market behavior.
Trading Zones: Visual boxes for Buy (green), Neutral (yellow), and Sell (red) areas, with adjustable boundaries and colors.
Current Price Line: Dotted line for the reference price, with labels.
Alerts: Trigger notifications when levels are tested or broken.
Summary Table: Displays levels, prices, and distances from the current close, positioned customizable.
Style Options: Adjust line widths, styles (solid/dashed/dotted), label sizes, and more for a personalized view.
Darvas Lines/Box1. Overview
The Darvas Lines/Box (v1.0) is a dynamic trend following indicator based on the renowned method developed by Nicolas Darvas. It's designed to identify clear price consolidation ranges and detect decisive breakouts, crucial for positional and swing trading strategies.
This indicator automatically draws and adjusts the consolidation ranges, and includes modern enhancements such as Advanced Retest Confirmation and exposed alert conditions, providing reliable signals for monitoring and acting on trend continuations.
2. Core Features
Custom Display Mode (Lines/Box): Allows the user to toggle the visualization between showing just the Breakout Lines (Lines) or displaying the consolidation area with a filled background box (Box).
Source Selection (Wicks/Body): Users can choose whether the box boundaries are defined by the candlestick wicks (price extremes) or the candlestick body (open/close price). This feature is critical for adjusting sensitivity to market noise.
Dynamic Box Drawing: Draws Darvas boxes automatically by tracking price highs and lows based on user-defined parameters (Bars to Define Range, Max Box Height).
Retest Confirmation: Detects if the old resistance/support line functions effectively after a breakout. When a retest is confirmed, the line is extended and its color changes.
Price Labels (Stable Lock): Displays the highest and lowest box prices, fixed to the left outer edge of the box. This ensures stable visibility.
Progress Labels: Visualizes the current line price and the percentage distance to the closing price on the right side of the box, showing progress toward the next breakout.
3. Trading Strategy: How to Use the Indicator
This indicator is primarily used to identify trend initiation and trend continuation signals.
A. Entry Strategy (Breakout)
Long Entry Action: Consider taking a long entry when the price closes above the Upper Line (Green Line), signaled by a BULLISH BREAKOUT alert.
Signal: Use the BULLISH BREAKOUT alert.
Short Entry Action: Consider taking a short entry when the price closes below the Lower Line (Red Line), signaled by a BEARISH BREAKOUT alert.
Signal: Use the BEARISH BREAKOUT alert.
B. Retest Strategy (Add-on/Confirmation)
Action: When the price pulls back to touch the broken line (signaled by RETEST CONFIRMED), this confirms the break's validity.
Alert: The RETEST CONFIRMED alert is triggered at this moment.
C. Risk Management (General)
Stop Loss: The initial stop-loss is typically set just beyond the opposite side of the broken box. As the trend progresses and new boxes form, the lower boundary of the most recently formed box can be used as a trailing stop for managing risk.
4. Setting Parameters
Line Source (Wicks/Body): Crucial for sensitivity. 'Wicks' tracks price extremes; 'Body' tracks stronger close-to-close movements, ignoring noise.
Bars to Define Range: Defines the calculation period (in bars) for the box.
Cooldown Bars After Breakout: Sets the waiting period after a breakout before a new box can start forming.
Retest Lookback Bars (Phase 3): Sets the maximum number of bars to check for a retest during the cooldown phase.
Max Gap for Retest (%): Defines the maximum percentage distance from the line allowed to confirm a retest (Set to Zero (0.0%) for near-touch detection).
Alert Frequency (Breakout): Allows selection between Continuous and Once per Box for breakout signals.
5. Alerts: How to Set Up the Triggers
This indicator exposes several specific conditions to the TradingView alert panel, allowing you to select the exact event you want to monitor.
Step-by-Step Alert Setup:
Open the Alert Panel on the chart.
In the Condition field, select the indicator's name.
In the Alert Condition field, choose the specific event you want to monitor:
1. ANY DARVAS EVENT (Consolidated)
2. BULLISH BREAKOUT (Individual)
3. BEARISH BREAKOUT (Individual)
4. RETEST CONFIRMED (Individual)
In the Trigger field (Frequency), select your preferred native option (e.g., "Once Per Bar Close" or "Once per bar").






















