CMO_EMA (Chande Momentum Oscillator and EMA)
The absolute value of "CMO" alone makes it impossible to know the current location for the waves and there is a possibility of doing useless entry.
To prevent this, display EMA.
Cari dalam skrip untuk "entry"
Systematic TF IndicatorThis is a simple trend following indicator which works off moving averages for trend bias and breakouts for entry.
Ichimoku Lagging Background ColorThis script colors the background, 26 bars ago, based upon the lagging line being above or below the closing price of 26 bars ago. The lagging line is used as a confirmation for your current entry.
Momentum Linear RegressionThe original script was posted on ProRealCode by user Nicolas.
This is an indicator made of the linear regression applied to the rate of change of price (or momentum). I made a simple signal line just by duplicating the first one within a period decay in the past, to make those 2 lines cross. You can add more periods decay to made signal smoother with less false entry.
Harmonic Patterns + Fib [CRT Trader]Overview
The Harmonic Patterns Fibonacci indicator is an advanced technical analysis tool designed to automatically detect and visualize Fibonacci-based harmonic patterns on financial charts. This indicator helps traders identify high-probability reversal zones and potential entry/exit points based on precise mathematical relationships.
Supported Patterns
5-Point Patterns (X-A-B-C-D Structure)
Gartley Pattern: The most common harmonic pattern with reliable reversal signals
AB/XA = 0.618, BC/AB = 0.618, CD/BC = 1.272, AD/XA = 0.786
Butterfly Pattern: Strong reversal pattern indicating potential trend changes
AB/XA = 0.786, BC/AB = 0.618, CD/BC = 1.618, AD/XA = 1.270
Bat Pattern: Medium-term reversal pattern with high accuracy
AB/XA = 0.382, BC/AB = 0.886, CD/BC = 1.618, AD/XA = 0.886
Crab Pattern: Aggressive reversal pattern with extended D point
AB/XA = 0.618, BC/AB = 0.886, CD/BC = 2.240, AD/XA = 1.618
Shark Pattern: Trend continuation or reversal pattern
AB/XA = 0.618, BC/AB = 1.130, CD/BC = 1.618, AD/XA = 0.886
4-Point Pattern (A-B-C-D Structure)
ABCD Pattern: Basic harmonic structure forming the foundation of all patterns
BC/AB = 0.382-0.886, CD/BC = 1.130-2.618
Key Features
Fibonacci Validation
Each pattern is validated against precise Fibonacci ratios with customizable tolerance
Mathematical accuracy ensures reliable pattern recognition
Eliminates false signals through strict ratio requirements
Performance Optimization
Pivot Detection: Automatically identifies significant highs and lows
Scan Frequency Control: Adjustable scanning intervals to optimize performance
Early Exit Algorithms: Efficient computation to reduce processing load
Pattern Limit: Control maximum number of patterns displayed
Visual Elements
Pattern Lines: Clear visualization of pattern structure with colored lines
Fill Areas: Highlighted zones between pattern legs
Point Labels: X, A, B, C, D markers for easy identification
Fibonacci Levels: Optional Fibonacci retracement/extension levels
Bullish/Bearish Colors: Green for bullish, red for bearish patterns
Customizable Settings
Pattern Selection: Enable/disable specific pattern types
Tolerance Adjustment: Fine-tune pattern recognition sensitivity (5-30%)
Color Customization: Personalize visual appearance
Information Table: Optional statistics display
Trading Applications
Entry Signals
Reversal Zones: Identify high-probability reversal areas at pattern completion
Confluence Trading: Combine with other technical indicators for confirmation
Risk Management: Use pattern structure to define stop-loss levels
Market Analysis
Support/Resistance: Pattern points often act as future S/R levels
Price Targets: Fibonacci extensions provide potential profit targets
Market Structure: Understand underlying market geometry and rhythm
Strategy Integration
Swing Trading: Ideal for medium-term position entries
Position Trading: Long-term trend reversal identification
Day Trading: Intraday reversal patterns on lower timeframes
How to Use
Add to Chart: Apply the indicator to any timeframe and instrument
Configure Settings: Adjust tolerance, colors, and pattern types as needed
Wait for Completion: Patterns are valid only when D point is formed
Confirm with Volume: Look for volume confirmation at pattern completion
Set Stop Loss: Place stops beyond X point for 5-point patterns, or A point for ABCD
Target Levels: Use Fibonacci extensions for profit targets
Important Notes
Pattern Completion: Wait for full pattern formation before taking action
Market Context: Consider overall market trend and conditions
Risk Management: Always use appropriate position sizing and stops
Backtesting: Test the indicator on historical data before live trading
Multiple Timeframes: Analyze patterns across different timeframes for confirmation
Technical Requirements
Lookback Period: Adjustable pivot detection sensitivity
Depth Setting: Controls how far back the algorithm searches for patterns
Memory Efficient: Optimized for real-time performance without lag
This indicator is suitable for all experience levels, from beginners learning harmonic patterns to advanced traders seeking automated pattern recognition. The combination of mathematical precision and visual clarity makes it an essential tool for harmonic trading strategies.
Long Elite Squeeze (LES) — H.H 22 Lindsay (AI)LES (Long Elite Squeeze)
LES (Long Elite Squeeze) is a trading framework designed to capture the highest-probability long setups. It’s not just another signal script — it’s a structured system built to filter noise, manage risk, and keep you aligned with real momentum.
🔹 Core Logic
Breakout Confirmation – Ensures moves have structure, not just random spikes.
Relative Volume (RVOL) – Confirms participation and fuel behind the move.
RSI Alignment – Avoids overextended traps and fakeouts.
Squeeze Momentum – The backbone of LES. Signals fire only after a defined squeeze pattern shift (6+ dark green bars followed by a light green bar).
🔹 Trade Management Built In
Automated Sell Signals – Trigger on either:
2 consecutive dark green bars on Squeeze Momentum
WaveTrend cross down
(only valid after a Buy signal — no random shorts)
HUD Entry Checklist – Live conditions shown on chart.
Status Tracker HUD – Flips between “Waiting for Entry” and “In Trade” for clear context.
🔹 Flexibility
3 switchable squeeze versions (V1, V2, V3) for different market conditions.
Customizable EMA & ATR settings (with color options).
Session-aware logic — filter signals to prime trading hours.
🔹 Blueprint & Credits
LES is a fusion of proven concepts, standing on the shoulders of respected creators:
-Squeeze Momentum – LazyBear
-WaveTrend Oscillator – LazyBear
-Relative Volume – LonesomeTheBlue
Breakout/structural logic – refined from classic frameworks
Their work laid the foundation — LES expands and integrates them into a complete trading system.
⚡ Why LES Stands Out
LES wasn’t coded overnight. It’s the result of countless hours of live testing, rebuilding, and refining. Every feature earned its place by proving value in real trading, not theory.
LES is more than an indicator. It’s a disciplined framework — crafted to turn chaos into structure, randomness into probability, and noise into clarity.
⚠️ Disclaimer: This is a trading framework, not financial advice. Performance depends on trader discipline, risk management, and market conditions.
Inside Candle DivergenceStudy Material: Inside Candle Divergence Indicator (aiTrendview)
1. Introduction
The Inside Candle Divergence Indicator is a custom tool built on TradingView using Pine Script. It is designed to help traders identify potential reversal points or trend continuations using a mix of candlestick analysis, RSI (Relative Strength Index), VWAP (Volume Weighted Average Price), Pivot Points, and Volume analytics. The tool also provides a dashboard table on the chart, summarizing all key values in a single glance for traders and analysts.
This indicator is not just a signal generator but also an educational framework—explaining how different concepts in technical analysis combine to build a systematic approach for market entries and exits.
________________________________________
2. Core Concepts Behind the Tool
A. Inside Candle Pattern
An Inside Candle forms when the current candle’s high is lower than or equal to the previous candle’s high, and the low is higher than or equal to the previous candle’s low.
• This means the entire price action of the current candle is "inside" the range of the previous candle.
• A bullish inside candle occurs when the close is higher than the open.
• A bearish inside candle occurs when the close is lower than the open.
This pattern shows market indecision but also sets up potential breakouts or trend reversals.
________________________________________
B. RSI (Relative Strength Index)
The indicator calculates RSI using the formula from the ta.rsi() function in TradingView. RSI helps measure momentum in the market.
• A low RSI (below 25) signals an oversold zone → possible buy.
• A high RSI (above 75) signals an overbought zone → possible sell.
By combining RSI with the Inside Candle, the indicator ensures that signals are triggered only when momentum and price patterns confirm each other.
________________________________________
C. Buy & Sell Signals
• Buy Signal: Triggered when RSI < Buy Level (default 25) and a bullish inside candle forms.
• Sell Signal: Triggered when RSI > Sell Level (default 75) and a bearish inside candle forms.
When triggered, the chart displays a BUY (green label below candle) or SELL (red label above candle) marker. The indicator also saves the entry price and signal bar for future reference inside the dashboard.
________________________________________
D. VWAP (Volume Weighted Average Price)
VWAP is calculated using the typical price (H+L+C)/3 and weighting it by volume.
• VWAP shows the average trading price weighted by volume, widely used by institutions.
• The tool calculates the distance of price from VWAP in % terms.
• If price is far above VWAP, the market may be overheated (overbought). If far below, it may be undervalued (oversold).
________________________________________
E. Volume Analysis
The tool splits volume into Buy Volume and Sell Volume:
• Buy Volume: If close > open.
• Sell Volume: If close ≤ open.
• Cumulative totals are maintained, and percentages are calculated to show what proportion of total market volume is bullish vs bearish.
• A progress bar style visual (using blocks █) shows the dominance of buyers or sellers.
This allows traders to quickly measure whether buyers or sellers are controlling the market trend.
________________________________________
F. Daily Pivot Points
Pivot Points are calculated using the previous day’s high, low, and close:
• Pivot = (High + Low + Close) / 3
• R1, S1, R2, S2, R3, S3 levels are derived from this pivot.
• These levels act as support and resistance zones.
The script plots Pivot, R1, and S1 lines on the chart for easy reference.
________________________________________
G. Trend Direction
The indicator checks where the price is compared to R1 and S1:
• If price > R1 → Bullish Trend
• If price < S1 → Bearish Trend
• Otherwise → Neutral Trend
The trend direction is displayed in the dashboard with arrows (↑, ↓, →).
________________________________________
H. Price Change Calculation
The tool calculates:
• Price Change = Current Close – Previous Close
• Percentage Change = (Change / Previous Close) × 100
• Displays ▲ (green upward) or ▼ (red downward) with the exact percentage.
This gives traders a quick snapshot of intraday price movement.
________________________________________
I. Dashboard Table
One of the most powerful features is the real-time dashboard table shown on the chart. It contains:
1. Symbol & Price Info (Current ticker, price, change %)
2. RSI Reading (with color coding: green for oversold, red for overbought)
3. VWAP and Distance from VWAP
4. Volume Analysis with Progress Bar (Buy vs Sell %)
5. Pivot Levels (Pivot, R1, S1)
6. Trend Direction (Bullish, Bearish, Neutral)
7. Signal Status (Last Buy/Sell signal with entry price)
This reduces the need for multiple indicators and gives traders a command-center view directly on the chart.
________________________________________
J. Alerts
The tool generates alerts whenever a Buy or Sell condition is met. Traders can set up TradingView alerts to be notified instantly when:
• Buy Signal Alert → RSI oversold + Bullish inside candle
• Sell Signal Alert → RSI overbought + Bearish inside candle
This ensures no opportunity is missed even if you’re not actively monitoring the chart.
________________________________________
K. Background Highlights
The chart background also changes faintly (light green or light red) when a Buy or Sell condition is triggered. This gives traders visual confirmation along with signals and alerts.
________________________________________
3. Practical Use of This Tool
• Scalpers & Intraday Traders can use it for quick momentum-based entries.
• Swing Traders can use the RSI + Inside Candle + Pivot Points to find medium-term reversals.
• Analysts can use the dashboard for real-time summaries in reports.
• Volume Analysis helps understand institutional activity.
Remember: This is not a standalone holy grail. It must be used with proper risk management and confirmation from higher timeframes.
________________________________________
4. Strict Disclaimer (aiTrendview)
⚠️ Disclaimer from aiTrendview:
This indicator is designed for educational and analytical purposes only. It is not financial advice or a guaranteed trading strategy. Markets are inherently risky and unpredictable; past performance of indicators does not ensure future results. Trading involves risk of financial loss, and traders must use proper risk management, stop-loss, and independent judgment.
aiTrendview strictly follows TradingView.com rules and compliance guidelines.
Any misuse of this tool, its code, or analytical features for unauthorized commercial purposes, false promises, or misleading activities is strictly discouraged. The creators of this script and aiTrendview will not be responsible for any losses, damages, or misuse arising from its application. Always trade responsibly and only with money you can afford to lose.
________________________________________
Advanced Trend Momentum [Alpha Extract]The Advanced Trend Momentum indicator provides traders with deep insights into market dynamics by combining exponential moving average analysis with RSI momentum assessment and dynamic support/resistance detection. This sophisticated multi-dimensional tool helps identify trend changes, momentum divergences, and key structural levels, offering actionable buy and sell signals based on trend strength and momentum convergence.
🔶 CALCULATION
The indicator processes market data through multiple analytical methods:
Dual EMA Analysis: Calculates fast and slow exponential moving averages with dynamic trend direction assessment and ATR-normalized strength measurement.
RSI Momentum Engine: Implements RSI-based momentum analysis with enhanced overbought/oversold detection and momentum velocity calculations.
Pivot-Based Structure: Identifies and tracks dynamic support and resistance levels using pivot point analysis with configurable level management.
Signal Integration: Combines trend direction, momentum characteristics, and structural proximity to generate high-probability trading signals.
Formula:
Fast EMA = EMA(Close, Fast Length)
Slow EMA = EMA(Close, Slow Length)
Trend Direction = Fast EMA > Slow EMA ? 1 : -1
Trend Strength = |Fast EMA - Slow EMA| / ATR(Period) × 100
RSI Momentum = RSI(Close, RSI Length)
Momentum Value = Change(Close, 5) / ATR(10) × 100
Pivot Support/Resistance = Dynamic pivot arrays with configurable lookback periods
Bullish Signal = Trend Change + Momentum Confirmation + Strength > 1%
Bearish Signal = Trend Change + Momentum Confirmation + Strength > 1%
🔶 DETAILS
Visual Features:
Trend EMAs: Fast and slow exponential moving averages with dynamic color coding (bullish/bearish)
Enhanced RSI: RSI oscillator with color-coded zones, gradient fills, and reference bands at overbought/oversold levels
Trend Fill: Dynamic gradient between EMAs indicating trend strength and direction
Support/Resistance Lines: Horizontal levels extending from pivot-based calculations with configurable maximum levels
Momentum Candles: Color-coded candlestick overlay reflecting combined trend and momentum conditions
Divergence Markers: Diamond-shaped signals highlighting bullish and bearish momentum divergences
Analysis Table: Real-time summary of trend direction, strength percentage, RSI value, and momentum reading
Interpretation:
Trend Direction: Bullish when Fast EMA crosses above Slow EMA with strength confirmation
Trend Strength > 1%: Strong trending conditions with institutional participation
RSI > 70: Overbought conditions, potential selling opportunity
RSI < 30: Oversold conditions, potential buying opportunity
Momentum Divergence: Price and momentum moving opposite directions signal potential reversals
Support/Resistance Proximity: Dynamic levels provide optimal entry/exit zones
Combined Signals: Trend changes with momentum confirmation generate high-probability opportunities
🔶 EXAMPLES
Trend Confirmation: Fast EMA crossing above Slow EMA with trend strength exceeding 1% and positive momentum confirms strong bullish conditions.
Example: During institutional accumulation phases, EMA crossovers with momentum confirmation have historically preceded significant upward moves, providing optimal long entry points.
15min
4H
Momentum Divergence Detection: RSI reaching overbought levels while momentum decreases despite rising prices signals potential trend exhaustion.
Example: Bearish divergence signals appearing at resistance levels have marked major market tops, allowing traders to secure profits before corrections.
Support/Resistance Integration: Dynamic pivot-based levels combined with trend and momentum signals create high-probability trading zones.
Example: Bullish trend changes occurring near established support levels offer optimal risk-reward entries with clearly defined stop-loss levels.
Multi-Dimensional Confirmation: The indicator's combination of trend, momentum, and structural analysis provides comprehensive market validation.
Example: When trend direction aligns with momentum characteristics near key structural levels, the confluence creates institutional-grade trading opportunities with enhanced probability of success.
🔶 SETTINGS
Customization Options:
Trend Analysis: Fast EMA Length (default: 12), Slow EMA Length (default: 26), Trend Strength Period (default: 14)
Support & Resistance: Pivot Length for level detection (default: 10), Maximum S/R Levels displayed (default: 3), Toggle S/R visibility
Momentum Settings: RSI Length (default: 14), Oversold Level (default: 30), Overbought Level (default: 70)
Visual Configuration: Color schemes for bullish/bearish/neutral conditions, transparency settings for fills, momentum candle overlay toggle
Display Options: Analysis table visibility, divergence marker size, alert system configuration
The Advanced Trend Momentum indicator provides traders with comprehensive insights into market dynamics through its sophisticated integration of trend analysis, momentum assessment, and structural level detection. By combining multiple analytical dimensions into a unified framework, this tool helps identify high-probability opportunities while filtering out market noise through its multi-confirmation approach, enabling traders to make informed decisions across various market cycles and timeframes.
Sweep2Trade Pro [CHE]Sweep2Trade Pro \ — Liquidity Sweep → Trend → Confirmation
Sweep2Trade Pro \ helps you catch high-probability reversals or continuations that start with a liquidity sweep, align with the T3 trend, and finalize with a structure confirmation (BOS). It’s designed to reduce noise, time your entries, and keep you out of weak, chop-driven signals.
What’s a “sweep”?
A liquidity sweep happens when price briefly breaks a prior swing high/low (where many stops sit), triggers those stops, and then snaps back. This “stop-hunt” creates liquidity for bigger players and often precedes a sharp move in the opposite direction if the break fails, or fuels continuation if structure actually shifts.
What’s a BOS (Break of Structure)?
A BOS is a price action event where the market takes out a recent swing level in the trend’s direction, signaling continuation and confirming that structure has shifted (bullish BOS through a recent swing high, bearish BOS through a recent swing low).
How the indicator works (at a glance)
1. Regime Filter (T3 + R²)
T3 Moving Average: A smoother, faster-responding moving average that aims to reduce lag while filtering noise, so trend direction changes are clearer.
R² (Coefficient of Determination): Measures how “linear” the recent price path is (0→1). Higher values = stronger, cleaner trend; lower values = more chop. Used here to allow trades only when trend quality exceeds a user-set threshold.
2. Sweep Detection
Bullish sweep: price pokes below a prior swing low and closes back above it.
Bearish sweep: price pokes above a prior swing high and closes back below it.
Lookback length is configurable.
3. Sequence Lock (built-in FSM)
The script manages state in phases so you don’t jump the gun:
Phase 1: Sweep detected → wait for T3 to turn in the corresponding direction.
Phase 2: T3 direction confirmed → show “SWEEP OK” and wait for final confirmation.
Trade Signal: Only fires if confirmation arrives before a timeout.
4. Confirmation Layer
BOS via wick or close (you choose),
Strong close toward the signal (top/bottom quartile of the candle),
Optional “close above/below T3” condition.
These checks help avoid weak sweeps that immediately fade.
5. Alerts & Visuals
“SWEEP OK” markers show when the sweep + T3 direction align.
Final BUY/SELL arrows appear only when the confirmation layer passes.
Ready-made alert conditions for automation.
What you can do with it
Time reversals after sweeps: Enter when a stop-hunt fades and structure confirms.
Ride continuations: Use BOS with the T3 trend to pyramid or re-enter with structure on your side.
Filter chop: Let R² gate entries to periods with cleaner directional drift.
Automate: Use the included alerts with your platform or webhook setup.
Inputs (key settings)
Regime Filter
T3 Length / Volume Factor: Controls smoothness and responsiveness. Smaller length → faster, more sensitive; higher volume factor → smoother curve.
R² Lookback & Threshold: Length of the linear fit window and the minimum “trend quality” required. Higher thresholds mean fewer, cleaner signals.
Sweep / Sequence
Swing Lookback: How far back to define the “reference” high/low for sweeps.
Timeout: Maximum bars allowed between phases to keep signals fresh.
Restart timeout on Phase 2: Optional safety so entries don’t go stale.
Confirmation
BOS Lookback: Micro-pivot window for structure breaks.
Wick vs Close BOS: Conservative traders may prefer close.
Require close above/below T3: Tightens confirmation with trend alignment.
Practical guide (quick start)
1. Timeframe & markets: Works across majors, indices, and crypto. Start with 5m–1h intraday or 1h–4h swing; adjust R² threshold upward on noisier pairs.
2. Entry recipe (Long):
Bullish sweep of a prior low → T3 turns up → BOS/strong close.
Optional: enable “close above T3” for extra confirmation.
3. Entry recipe (Short): Mirror the above.
4. Stops: Common choices are just beyond the sweep wick (tighter) or past the BOS invalidation (safer).
5. Targets: Previous structural levels, measured move, or a T3 trail (exit when price closes back through T3).
6. Avoid low-quality contexts: If R² is very low, market is likely ranging erratically—skip or widen filters.
Tips & best practices
Context first: The same sweep means different things in a strong trend vs. flat regime; that’s why the T3+R² filter exists.
BOS choice: Wick-based BOS is earlier but noisier; close-based BOS is slower but cleaner. Tune per market.
Backtest -> Forward test: Validate settings per symbol/timeframe; then paper trade before going live.
Risk: Fixed fractional risk with asymmetric R\:R (e.g., 1:1.5–1:3) generally performs better than “all-in” discretionary sizing.
Behind the scenes (for the curious)
T3 is a multi-stage EMA construction that produces a smooth curve with reduced lag versus simple/standard EMAs.
R² is the square of correlation (0–1). Here it’s used as a moving gauge of how well price aligns to a linear path—our “trend quality” dial.
Stop-hunts / sweeps are a recognized microstructure phenomenon where clustered stops provide the liquidity that fuels the next move.
Disclaimer
No indicator guarantees profits. Sweep2Trade Pro \ is a decision aid; always combine with solid risk management and your own judgment. Backtest, forward test, and size responsibly.
The content provided, including all code and materials, is strictly for educational and informational purposes only. It is not intended as, and should not be interpreted as, financial advice, a recommendation to buy or sell any financial instrument, or an offer of any financial product or service. All strategies, tools, and examples discussed are provided for illustrative purposes to demonstrate coding techniques and the functionality of Pine Script within a trading context.
Any results from strategies or tools provided are hypothetical, and past performance is not indicative of future results. Trading and investing involve high risk, including the potential loss of principal, and may not be suitable for all individuals. Before making any trading decisions, please consult with a qualified financial professional to understand the risks involved.
By using this script, you acknowledge and agree that any trading decisions are made solely at your discretion and risk.
Enhance your trading precision and confidence 🚀
Happy trading
Chervolino
[blackcat] L1 Value Trend IndicatorOVERVIEW
The L1 Value Trend Indicator is a sophisticated technical analysis tool designed for TradingView users seeking advanced market trend identification and trading signals. This comprehensive indicator combines multiple analytical techniques to provide traders with a holistic view of market dynamics, helping identify potential entry and exit points through various signal mechanisms. 📈 It features a main Value Trend line along with a lagged version, golden cross and dead cross signals, and multiple technical indicators including RSI, Williams %R, Stochastic %K/D, and Relative Strength calculations. The indicator also includes reference levels for support and resistance analysis, making it a versatile tool for both short-term and long-term trading strategies. ✅
FEATURES
📈 Primary Value Trend Line: Calculates a smoothed value trend using a combination of SMA and custom smoothing techniques
🔍 Value Trend Lag: Implements a lagged version of the main trend line for cross-over analysis
🚀 Golden Cross & Dead Cross Signals: Identifies buy/sell opportunities when the main trend line crosses its lagged version
💸 Multi-Indicator Integration: Combines multiple technical analysis tools for comprehensive market view
📊 RSI Calculations: Includes 6-period, 7-period, and 13-period RSI calculations for momentum analysis
📈 Williams %R: Provides overbought/oversold conditions using the Williams %R formula
📉 Stochastic Oscillator: Implements both Stochastic %K and %D calculations for momentum confirmation
📋 Relative Strength: Calculates relative strength based on highest highs and current price
✅ Visual Labels: Displays BUY and SELL labels on chart when crossover conditions are met
📣 Alert Conditions: Provides automated alert conditions for golden cross and dead cross events
📌 Reference Levels: Plots entry (25) and exit (75) reference lines for support/resistance analysis
HOW TO USE
Copy the Script: Copy the complete Pine Script code from the original file
Open TradingView: Navigate to TradingView website or application
Access Pine Editor: Go to the Pine Script editor (usually found in the chart toolbar)
Paste Code: Paste the copied script into the editor
Save Script: Save the script with a descriptive name like " L1 Value Trend Indicator"
Select Chart: Choose the chart where you want to apply the indicator
Add Indicator: Apply the indicator to your chart
Configure Parameters: Adjust input parameters to customize behavior
Monitor Signals: Watch for golden cross (BUY) and dead cross (SELL) signals
Use Reference Levels: Monitor entry (25) and exit (75) lines for support/resistance levels
LIMITATIONS
⚠️ Potential Repainting: The script may repaint due to lookahead bias in some calculations
📉 Lookahead Bias: Some calculations may reference future values, potentially causing repainting issues
🔄 Parameter Sensitivity: Results may vary significantly with different parameter settings
📉 Computational Complexity: May impact chart performance with heavy calculations on large datasets
📊 Resource Usage: Requires significant processing power for multiple indicator calculations
🔄 Data Sensitivity: Results may be affected by data quality and market conditions
NOTES
📈 Signal Timing: Cross-over signals may lag behind actual price movements
📉 Parameter Optimization: Optimal parameters may vary by market conditions and asset type
📋 Market Conditions: Performance may vary significantly across different market environments
📈 Multi-Indicator: Combine signals with other technical indicators for confirmation
📉 Timeframe Analysis: Use multiple timeframes for enhanced signal accuracy
📋 Volume Analysis: Incorporate volume data for additional confirmation
📈 Strategy Integration: Consider using this indicator as part of a broader trading strategy
📉 Risk Management: Use signals as part of a comprehensive risk management approach
📋 Backtesting: Test parameter combinations with historical data before live trading
THANKS
🙏 Original Creator: blackcat1402 creates the L1 Value Trend Indicator
📚 Community Contributions: Recognition to TradingView community for continuous improvements and contributions
📈 Collaborative Development: Appreciation for collaborative efforts in enhancing technical analysis tools
📉 TradingView Community: Special thanks to TradingView community members for their ongoing support and feedback
📋 Educational Resources: Recognition of educational resources that helped in understanding technical analysis principles
SMC Yardımcısı - TR (Optimize v2.1)BOS (Break of Structure)
Labels when price closes above/below a previous swing high/low.
Shows continuation of the current trend.
CHOCH (Change of Character)
Appears when trend direction shifts (from bullish to bearish or vice versa).
Marks possible market reversals.
FVG (Fair Value Gap)
Highlights price imbalance zones (3-candle gaps).
These are often areas where price later returns to “fill” liquidity.
OTE (Optimal Trade Entry, 62–79% retracement)
Uses the last swing high and swing low.
Draws the Fibonacci retracement zone (62–79%), considered a common institutional entry area.
BSL (Buy Side Liquidity – Equal Highs)
Detects equal highs and plots them as liquidity pools.
Shows where buy-side liquidity/stop hunts may occur.
SSL (Sell Side Liquidity – Equal Lows)
Detects equal lows and plots them.
Indicates sell-side liquidity levels.
Inducement / Liquidity Sweep
If price wicks above BSL or below SSL but closes back inside, a “sweep” label is shown.BOS (Break of Structure – Yapı Kırılımı)
BOS FVG IndicatorBOS FVG Indicator (Smart Market Structure Tool)
🔎 Overview
The BOS FVG Indicator is a smart price-action–based tool that combines Break of Structure (BOS), Change of Character (CHoCH), Fair Value Gaps (FVG), Supertrend, and ADX strength into one powerful indicator.
It helps traders identify market structure shifts, imbalances, and high-probability trade setups while also highlighting no-trade zones (NTZ) where the market is choppy or lacks trend strength.
This indicator is designed for intraday and swing traders who follow ICT-style concepts or price-action based trading.
⚡ Key Features
Break of Structure (BOS) & CHoCH Detection
Labels bullish BOS (📈 BOS↑) and bearish BOS (📉 BOS↓).
Highlights structure shifts for trend confirmation.
Fair Value Gaps (FVG)
Auto-detects bullish and bearish FVGs.
Draws transparent boxes with labels where imbalances appear.
Supertrend Confirmation
Adaptive supertrend line with dynamic coloring (green = bullish, red = bearish).
No Trade Zone (NTZ)
Automatically shades background gray when ADX is weak or no BOS detected.
Helps avoid false signals in sideways/choppy markets.
Multi-Timeframe Context
Previous 4H candle range plotted as a dotted yellow box.
Useful for intraday traders tracking HTF liquidity zones.
Signal Strength
Regular and Strong Buy/Sell signals based on ADX confirmation.
Labels include entry info, RR (2:1), and trend strength.
Market Info Dashboard
Table on chart showing ADX strength, current trend, and trade zone status.
🛠 How to Use
Add to Chart → Apply the indicator to any timeframe (works best on 5m–1H for intraday, 4H–Daily for swing).
Choose Mode
Indicator Mode → Shows visual signals, BOS, FVG, NTZ zones, and dashboard.
Strategy Mode → Displays trade entry labels with RR info for backtesting setups.
Filters
Only trade signals when ADX > threshold and NTZ is inactive.
Confirm with Supertrend direction + BOS + FVG alignment.
Entries & Exits
Long Entry → Bullish BOS + Bullish FVG + Trend bullish.
Short Entry → Bearish BOS + Bearish FVG + Trend bearish.
Stop Loss: Recent swing high/low.
Take Profit: Auto-suggested 2:1 RR.
🔔 Alerts
Set alerts to never miss key signals:
✅ Bullish / Bearish BOS
✅ Bullish / Bearish FVG
✅ Strong Buy / Sell
✅ Regular Buy / Sell
✅ Long / Short Entries
✅ No Trade Zone active
Alerts are pre-configured with clear messages (📈, 📉, 🚀, 🟢, 🔴, ⚪).
📌 Best Use Cases
ICT-style liquidity and FVG traders.
Intraday traders filtering strong vs weak signals.
Swing traders using multi-timeframe confirmation.
Traders who want an all-in-one market structure toolkit.
👉 This script is not financial advice. Always backtest before using in live markets.
Bullish Breakaway Dual Session-Publish-Consolidated FVG
Inspired by the FVG Concept:
This indicator is built on the Fair Value Gap (FVG) concept, with a focus on Consolidated FVG. Unlike traditional FVGs, this version only works within a defined session (e.g., ETH 18:00–17:00 or RTH 09:30–16:00).
Bullish consolidated FVG & Bullish breakaway candle
Begins when a new intraday low is printed. After that, the indicator searches for the 1st bullish breakaway candle, which must have its low above the high of the intraday low candle. Any candles in between are part of the consolidated FVG zone. Once the 1st breakaway forms, the indicator will shades the candle’s range (high to low). Then it will use this candle as an anchor to search for the 2nd, 3rd, etc. breakaways until the session ends.
Session Reset: Occurs at session close.
Repaint Behavior:
If a new intraday (or intra-session) low forms, earlier breakaway patterns are wiped, and the system restarts from the new low.
Counter:
A session-based counter at the top of the chart displays how many bullish consolidated FVGs have formed.
Settings
• Session Setup:
Choose ETH, RTH, or custom session. The indicator is designed for CME futures in New York timezone, but can be adjusted for other markets.
If nothing appears on your chart, check if you loaded it during an inactive session (e.g., weekend/Friday night).
• Max Zones to Show:
Default = 3 (recommended). You can increase, but 3 zones are usually most useful.
• Timeframe:
Best on 1m, 5m, or 15m. (If session range is big, try higher time frame)
Usage
1. Avoid Trading in Wrong Direction
• No bullish breakaway = No long trade.
• Prevents the temptation to countertrade in strong downtrends.
2. Catch the Trend Reversal
• When a bullish breakaway appears after an intraday low, it signals a potential reversal.
• You will need adjust position sizing, watch out liquidity hunt, and place stop loss.
• Best entries of your preferred choices: (this is your own trading edge)
Retest
Breakout
Engulf
MA cross over
Whatever your favorite approach
• Reversal signal is the strongest when price stays within/above the breakaway candle’s
range. Weak if it breaks below.
3. Higher Timeframe Confirmation
• 1m can give false reversals if new lows keep forming.
• 5m often provides cleaner signals and avoids premature reversals.
Failed Trade Example:
This indicator will repaint if a new intraday session low is updated. So it is possible to have a failed trade. Here is an example from the same session in 1m chart. However, if you enter the trade later at another bullish breakaway candle signal. The loss can be mitigated by the profit.
Therefore you should use smaller position size for your 1st trade. You should also considering using 5m chart to avoid 1m bull trap. In this example, if you use 5m chart, you can totally avoid this failed trade.
If you enter the trade, you will see the intraday low is stop loss hunted. You can also see the 1st bullish breakaway candle is super weak. There are a lot of candles below the breakaway candle low, so it is very possible to fail.
In the next chart, you can see the failed traded get stop loss hunted. However you can enter another trade with huge profit to win back the loss from the 1st trade if you follow the rule.
Summary
This indicator offers 3 main advantages:
1. Prevents wrong-direction trades.
2. Confirms trend entry after reversal signals.
3. Filters false positives using higher timeframes.
How to sharp your edge:
1. ⏳Extreme patience⏳: Do not guess the bottom during a downtrend before a confirmed bullish breakaway candle. If you get caught, have the courage to cut loss. This is literally the most important usage of this indicator. Again, this is the most important rule of this indicator and actually the hardest rule to follow.
2. 🛎Better Entry🛎: After a confirmed bullish breakaway, you will always have a good opportunity to enter the trade using established trading technique. Your edge will come from the position size, draw down, stop loss placement, risk/reward ratio.
3. ✂Cut loss fast✂: If you enter a trade according to the rule, but you are still not making profit for a period of time, and the price is below the low of the breakaway candle. It is very likely you may hit stop loss soon (intraday session low). It won't be a bad idea to cut loss before stop loss hit.
4. 🔂Reentry with confidence after stop loss🔂: a stop loss will not invalidate the indicator. If you see a second chance to reenter, you should still follow the trade guide and rule.
5. 🕔Time frame matter🕔: try 1m, 3m, 5m, 10m, 15m time frame. Over time, you should know what time frame work best for you and the market. Higher time frame will reduce the noise of false positive trade, but it comes with a higher stop loss placement and less max profit, however it may come with a lower draw down. Time frame will matter depending on the range of the session. If the session range is small (<0.5%), lower time frame is good. If session range is big (>1%), 5m time frame is better. Remember to wait for candle to close, if you use higher time frame.
Last Mention:
The indicator is only used for bullish side trading.
Lowest Low Breakout Signal w/ Target
### **Script Description**
This TradingView Pine Script indicator identifies breakout entry opportunities after a new **lowest low** is formed within a user-defined lookback period. It is designed for traders who want to catch reversals or breakouts from extreme lows with clearly defined targets.
**Key Features:**
* **Lowest Low Detection**: The script monitors price action for a candle that forms a new lowest low within the specified lookback period.
* **Breakout Entry Signal**: Once a breakout occurs (price closes above the high of the lowest-low candle), an **up arrow** is plotted below the entry bar.
* **Target Calculation**: Calculates **Target 1** as 50% retracement of the distance between the latest swing high and the lowest low.
* **Dynamic Table Display**: Shows real-time **Entry Price** and **Target 1** values in a table fixed on the chart (top-right corner), updating with each signal.
* **Alerts**: Sends alerts when a breakout entry signal occurs, making it easy to automate notifications.
* **Clean Visualization**: Removes clutter by eliminating extra labels and lines, using only a simple arrow and table for clarity.
**Use Case:**
Ideal for breakout traders, swing traders, and those who follow retracement-based profit targets. The indicator helps identify early entries after significant lows and provides a clear first target level.
Tide Tracker ZonesTide Tracker Zones – Advanced Trend & Pullback Visualizer
Overview
Tide Tracker Zones is a sophisticated trading tool designed for traders who require clarity, precision, and actionable insights in real time. The indicator converts price action into dynamic trend zones, allowing users to instantly recognize market direction, potential reversals, and low-risk entry opportunities. By visualizing the market in this way, traders can focus on execution rather than deciphering complex charts.
Unlike static indicators, Tide Tracker Zones adapts to market volatility, providing a clear picture of bullish and bearish pressure across multiple timeframes. Its visual design, including color-coded trend zones, a prominent guide line, and carefully placed signals, ensures that market behavior is easy to interpret, making it suitable for scalping, swing trading, and longer-term strategies alike.
How It Works
The indicator relies on dynamic upper and lower bands derived from recent price ranges and a configurable multiplier. These bands expand during volatile periods and contract when price action stabilizes, creating flexible zones that reflect the dominant market tide.
A guide line tracks the active band, serving as a continuous reference for trend direction. Unlike traditional moving averages, the guide line does not clutter the chart but instead provides a subtle, intuitive indication of whether the market is in a bullish or bearish phase. Background shading reinforces this trend visually, highlighting bullish zones in one color and bearish zones in another, so the prevailing market flow is immediately clear.
The system continuously evaluates price relative to the bands to determine trend direction and detect potential reversals. When price crosses a band and flips the trend, the guide line updates, and signals are generated, providing traders with actionable information without overwhelming the chart.
Signals and Pullbacks
Tide Tracker Zones offers visual cues that make entry points more obvious and less speculative. Trend reversal arrows are plotted when the market changes direction: BUY arrows indicate a shift from bearish to bullish, and SELL arrows indicate a shift from bullish to bearish.
The indicator also highlights first pullbacks within an active trend. These pullback dots mark low-risk opportunities to enter a trend in progress, filtered to ensure that only the most relevant signals are displayed. The system uses ATR-based spacing to place arrows and dots vertically on the chart, preventing visual clutter and ensuring readability even during periods of high volatility.
Color-coded zones enhance situational awareness. Bullish zones are displayed in a customizable orange, while bearish zones are shown in green. Transparency is dynamically adjusted to maintain chart clarity while still providing a clear indication of trend strength.
Strategy Integration
Tide Tracker Zones can be used effectively for both trend-following and pullback strategies. Traders may enter positions in the direction of the guide line and colored zone, using trend reversal arrows for confirmation. First pullback dots offer tactical entries with reduced risk, allowing traders to enter a trend after a brief retracement.
Stop-loss levels can be placed just beyond the opposing trend zone, while take-profit targets may be determined using the width of the bands to account for market volatility. The indicator adapts seamlessly across multiple timeframes. Higher timeframes provide context and filter noise, while lower timeframes allow traders to refine entry timing. This makes it a versatile tool for scalping, swing trading, or longer-term positions.
Advanced Techniques
For traders seeking greater precision, Tide Tracker Zones can be combined with volume or momentum indicators to validate signals. Observing the sequence of trend arrows and pullback dots allows users to develop a systematic approach to entries and exits. Monitoring the width and behavior of the bands over time can also provide insights into periods of expanding or contracting volatility, helping traders anticipate market shifts.
Adjustments to the spread length and multiplier allow the indicator to be tuned for different assets and market conditions. By understanding the interaction between the guide line, trend zones, and pullback signals, traders can create a robust framework for decision-making, reducing guesswork and improving consistency.
Why Use Tide Tracker Zones
Tide Tracker Zones provides instant clarity and actionable insight in any market. Its dynamic zones and guide line give a clear visual understanding of trend direction, while trend reversal arrows and pullback dots highlight potential entry points. Unlike traditional indicators, it adapts to volatility and changing conditions, making it reliable across multiple asset classes and timeframes.
By combining trend detection, pullback analysis, and intuitive visual guidance, Tide Tracker Zones equips traders with a complete framework for disciplined, confident trading, transforming complex price action into a visual map of opportunity.
Advanced Volume Profile Pro Delta + POC + VAH/VAL# Advanced Volume Profile Pro - Delta + POC + VAH/VAL Analysis System
## WHAT THIS SCRIPT DOES
This script creates a comprehensive volume profile analysis system that combines traditional volume-at-price distribution with delta volume calculations, Point of Control (POC) identification, and Value Area (VAH/VAL) analysis. Unlike standard volume indicators that show only total volume over time, this script analyzes volume distribution across price levels and estimates buying vs selling pressure using multiple calculation methods to provide deeper market structure insights.
## WHY THIS COMBINATION IS ORIGINAL AND USEFUL
**The Problem Solved:** Traditional volume indicators show when volume occurs but not where price finds acceptance or rejection. Standalone volume profiles lack directional bias information, while basic delta calculations don't provide structural context. Traders need to understand both volume distribution AND directional sentiment at key price levels.
**The Solution:** This script implements an integrated approach that:
- Maps volume distribution across price levels using configurable row density
- Estimates delta (buying vs selling pressure) using three different methodologies
- Identifies Point of Control (highest volume price level) for key support/resistance
- Calculates Value Area boundaries where 70% of volume traded
- Provides real-time alerts for key level interactions and volume imbalances
**Unique Features:**
1. **Developing POC Visualization**: Real-time tracking of Point of Control migration throughout the session via blue dotted trail, revealing institutional accumulation/distribution patterns before they complete
2. **Multi-Method Delta Calculation**: Price Action-based, Bid/Ask estimation, and Cumulative methods for different market conditions
3. **Adaptive Timeframe System**: Auto-adjusts calculation parameters based on chart timeframe for optimal performance
4. **Flexible Profile Types**: N Bars Back (precise control), Days Back (calendar-based), and Session-based analysis modes
5. **Advanced Imbalance Detection**: Identifies and highlights significant buying/selling imbalances with configurable thresholds
6. **Comprehensive Alert System**: Monitors POC touches, Value Area entry/exit, and major volume imbalances
## HOW THE SCRIPT WORKS TECHNICALLY
### Core Volume Profile Methodology:
**1. Price Level Distribution:**
- Divides price range into user-defined rows (10-50 configurable)
- Calculates row height: `(Highest Price - Lowest Price) / Number of Rows`
- Distributes each bar's volume across price levels it touched proportionally
**2. Delta Volume Calculation Methods:**
**Price Action Method:**
```
Price Range = High - Low
Buy Pressure = (Close - Low) / Price Range
Sell Pressure = (High - Close) / Price Range
Buy Volume = Total Volume × Buy Pressure
Sell Volume = Total Volume × Sell Pressure
Delta = Buy Volume - Sell Volume
```
**Bid/Ask Estimation Method:**
```
Average Price = (High + Low + Close) / 3
Buy Volume = Close > Average ? Volume × 0.6 : Volume × 0.4
Sell Volume = Total Volume - Buy Volume
```
**Cumulative Method:**
```
Buy Volume = Close > Open ? Volume : Volume × 0.3
Sell Volume = Close ≤ Open ? Volume : Volume × 0.3
```
**3. Point of Control (POC) Identification:**
- Scans all price levels to find maximum volume concentration
- POC represents the price level with highest trading activity
- Acts as significant support/resistance level
- **Developing POC Feature**: Tracks POC evolution in real-time via blue dotted trail, showing how institutional interest migrates throughout the session. Upward POC migration indicates accumulation patterns, downward migration suggests distribution, providing early trend signals before price confirmation.
**4. Value Area Calculation:**
- Starts from POC and expands up/down to encompass 70% of total volume
- VAH (Value Area High): Upper boundary of value area
- VAL (Value Area Low): Lower boundary of value area
- Expansion algorithm prioritizes direction with higher volume
**5. Adaptive Range Selection:**
Based on profile type and timeframe optimization:
- **N Bars Back**: Fixed lookback period with performance optimization (20-500 bars)
- **Days Back**: Calendar-based analysis with automatic timeframe adjustment (1-365 days)
- **Session**: Current trading session or custom session times
### Performance Optimization Features:
- **Sampling Algorithm**: Reduces calculation load on large datasets while maintaining accuracy
- **Memory Management**: Clears previous drawings to prevent performance degradation
- **Safety Constraints**: Prevents excessive memory usage with configurable limits
## HOW TO USE THIS SCRIPT
### Initial Setup:
1. **Profile Configuration**: Select profile type based on trading style:
- N Bars Back: Precise control over data range
- Days Back: Intuitive calendar-based analysis
- Session: Real-time session development
2. **Row Density**: Set number of rows (30 default) - more rows = higher resolution, slower performance
3. **Delta Method**: Choose calculation method based on market type:
- Price Action: Best for trending markets
- Bid/Ask Estimate: Good for ranging markets
- Cumulative: Smoothed approach for volatile markets
4. **Visual Settings**: Configure colors, position (left/right), and display options
### Reading the Profile:
**Volume Bars:**
- **Length**: Represents relative volume at that price level
- **Color**: Green = net buying pressure, Red = net selling pressure
- **Intensity**: Darker colors indicate volume imbalances above threshold
**Key Levels:**
- **POC (Blue Line)**: Highest volume price - major support/resistance
- **VAH (Purple Dashed)**: Value Area High - upper boundary of fair value
- **VAL (Orange Dashed)**: Value Area Low - lower boundary of fair value
- **Value Area Fill**: Shaded region showing main trading range
**Developing POC Trail:**
- **Blue Dotted Lines**: Show real-time POC evolution throughout the session
- **Migration Patterns**: Upward trail indicates bullish accumulation, downward trail suggests bearish distribution
- **Early Signals**: POC movement often precedes price movement, providing advance warning of institutional activity
- **Institutional Footprints**: Reveals where smart money concentrated volume before final POC establishment
### Trading Applications:
**Support/Resistance Analysis:**
- POC acts as magnetic price level - expect reactions
- VAH/VAL provide intermediate support/resistance levels
- Profile edges show areas of low volume acceptance
**Developing POC Analysis:**
- **Upward Migration**: POC moving higher = institutional accumulation, bullish bias
- **Downward Migration**: POC moving lower = institutional distribution, bearish bias
- **Stable POC**: Tight clustering = balanced market, range-bound conditions
- **Early Trend Detection**: POC direction change often precedes price breakouts
**Entry Strategies:**
- Buy at VAL with POC as target (in uptrends)
- Sell at VAH with POC as target (in downtrends)
- Breakout plays above/below profile extremes
**Volume Imbalance Trading:**
- Strong buying imbalance (>60% threshold) suggests continued upward pressure
- Strong selling imbalance suggests continued downward pressure
- Imbalances near key levels provide high-probability setups
**Multi-Timeframe Context:**
- Use higher timeframe profiles for major levels
- Lower timeframe profiles for precise entries
- Session profiles for intraday trading structure
## SCRIPT SETTINGS EXPLANATION
### Volume Profile Settings:
- **Profile Type**: Determines data range for calculation
- N Bars Back: Exact number of bars (20-500 range)
- Days Back: Calendar days with timeframe adaptation (1-365 days)
- Session: Trading session-based (intraday focus)
- **Number of Rows**: Profile resolution (10-50 range)
- **Profile Width**: Visual width as chart percentage (10-50%)
- **Value Area %**: Volume percentage for VA calculation (50-90%, 70% standard)
- **Auto-Adjust**: Automatically optimizes for different timeframes
### Delta Volume Settings:
- **Show Delta Volume**: Enable/disable delta calculations
- **Delta Calculation Method**: Choose methodology based on market conditions
- **Highlight Imbalances**: Visual emphasis for significant volume imbalances
- **Imbalance Threshold**: Percentage for imbalance detection (50-90%)
### Session Settings:
- **Session Type**: Daily, Weekly, Monthly, or Custom periods
- **Custom Session Time**: Define specific trading hours
- **Previous Sessions**: Number of historical sessions to display
### Days Back Settings:
- **Lookback Days**: Number of calendar days to analyze (1-365)
- **Automatic Calculation**: Script automatically converts days to bars based on timeframe:
- Intraday: Accounts for 6.5 trading hours per day
- Daily: 1 bar per day
- Weekly/Monthly: Proportional adjustment
### N Bars Back Settings:
- **Lookback Bars**: Exact number of bars to analyze (20-500)
- **Precise Control**: Best for systematic analysis and backtesting
### Visual Customization:
- **Colors**: Bullish (green), Bearish (red), and level colors
- **Profile Position**: Left or Right side of chart
- **Profile Offset**: Distance from current price action
- **Labels**: Show/hide level labels and values
- **Smooth Profile Bars**: Enhanced visual appearance
### Alert Configuration:
- **POC Touch**: Alerts when price interacts with Point of Control
- **VA Entry/Exit**: Alerts for Value Area boundary interactions
- **Major Imbalance**: Alerts for significant volume imbalances
## VISUAL FEATURES
### Profile Display:
- **Horizontal Bars**: Volume distribution across price levels
- **Color Coding**: Delta-based coloring for directional bias
- **Smooth Rendering**: Optional smoothing for cleaner appearance
- **Transparency**: Configurable opacity for chart readability
### Level Lines:
- **POC**: Solid blue line with optional label
- **VAH/VAL**: Dashed colored lines with value displays
- **Extension**: Lines extend across relevant time periods
- **Value Area Fill**: Optional shaded region between VAH/VAL
### Information Table:
- **Current Values**: Real-time POC, VAH, VAL prices
- **VA Range**: Value Area width calculation
- **Positioning**: Multiple table positions available
- **Text Sizing**: Adjustable for different screen sizes
## IMPORTANT USAGE NOTES
**Realistic Expectations:**
- Volume profile analysis provides structural context, not trading signals
- Delta calculations are estimations based on price action, not actual order flow
- Past volume distribution does not guarantee future price behavior
- Combine with other analysis methods for comprehensive market view
**Best Practices:**
- Use appropriate profile types for your trading style:
- Day Trading: Session or Days Back (1-5 days)
- Swing Trading: Days Back (10-30 days) or N Bars Back
- Position Trading: Days Back (60-180 days)
- Consider market context (trending vs ranging conditions)
- Verify key levels with additional technical analysis
- Monitor profile development for changing market structure
**Performance Considerations:**
- Higher row counts increase calculation complexity
- Large lookback periods may affect chart performance
- Auto-adjust feature optimizes for most use cases
- Consider using session profiles for intraday efficiency
**Limitations:**
- Delta calculations are estimations, not actual transaction data
- Profile accuracy depends on available price/volume history
- Effectiveness varies across different instruments and market conditions
- Requires understanding of volume profile concepts for optimal use
**Data Requirements:**
- Requires volume data for accurate calculations
- Works best on liquid instruments with consistent volume
- May be less effective on very low volume or exotic instruments
This script serves as a comprehensive volume analysis tool for traders who need detailed market structure information with integrated directional bias analysis and real-time POC development tracking for informed trading decisions.
Machine Learning BBPct [BackQuant]Machine Learning BBPct
What this is (in one line)
A Bollinger Band %B oscillator enhanced with a simplified K-Nearest Neighbors (KNN) pattern matcher. The model compares today’s context (volatility, momentum, volume, and position inside the bands) to similar situations in recent history and blends that historical consensus back into the raw %B to reduce noise and improve context awareness. It is informational and diagnostic—designed to describe market state, not to sell a trading system.
Background: %B in plain terms
Bollinger %B measures where price sits inside its dynamic envelope: 0 at the lower band, 1 at the upper band, ~ 0.5 near the basis (the moving average). Readings toward 1 indicate pressure near the envelope’s upper edge (often strength or stretch), while readings toward 0 indicate pressure near the lower edge (often weakness or stretch). Because bands adapt to volatility, %B is naturally comparable across regimes.
Why add (simplified) KNN?
Classic %B is reactive and can be whippy in fast regimes. The simplified KNN layer builds a “nearest-neighbor memory” of recent market states and asks: “When the market looked like this before, where did %B tend to be next bar?” It then blends that estimate with the current %B. Key ideas:
• Feature vector . Each bar is summarized by up to five normalized features:
– %B itself (normalized)
– Band width (volatility proxy)
– Price momentum (ROC)
– Volume momentum (ROC of volume)
– Price position within the bands
• Distance metric . Euclidean distance ranks the most similar recent bars.
• Prediction . Average the neighbors’ prior %B (lagged to avoid lookahead), inverse-weighted by distance.
• Blend . Linearly combine raw %B and KNN-predicted %B with a configurable weight; optional filtering then adapts to confidence.
This remains “simplified” KNN: no training/validation split, no KD-trees, no scaling beyond windowed min-max, and no probabilistic calibration.
How the script is organized (by input groups)
1) BBPct Settings
• Price Source – Which price to evaluate (%B is computed from this).
• Calculation Period – Lookback for SMA basis and standard deviation.
• Multiplier – Standard deviation width (e.g., 2.0).
• Apply Smoothing / Type / Length – Optional smoothing of the %B stream before ML (EMA, RMA, DEMA, TEMA, LINREG, HMA, etc.). Turning this off gives you the raw %B.
2) Thresholds
• Overbought/Oversold – Default 0.8 / 0.2 (inside ).
• Extreme OB/OS – Stricter zones (e.g., 0.95 / 0.05) to flag stretch conditions.
3) KNN Machine Learning
• Enable KNN – Switch between pure %B and hybrid.
• K (neighbors) – How many historical analogs to blend (default 8).
• Historical Period – Size of the search window for neighbors.
• ML Weight – Blend between raw %B and KNN estimate.
• Number of Features – Use 2–5 features; higher counts add context but raise the risk of overfitting in short windows.
4) Filtering
• Method – None, Adaptive, Kalman-style (first-order),
or Hull smoothing.
• Strength – How aggressively to smooth. “Adaptive” uses model confidence to modulate its alpha: higher confidence → stronger reliance on the ML estimate.
5) Performance Tracking
• Win-rate Period – Simple running score of past signal outcomes based on target/stop/time-out logic (informational, not a robust backtest).
• Early Entry Lookback – Horizon for forecasting a potential threshold cross.
• Profit Target / Stop Loss – Used only by the internal win-rate heuristic.
6) Self-Optimization
• Enable Self-Optimization – Lightweight, rolling comparison of a few canned settings (K = 8/14/21 via simple rules on %B extremes).
• Optimization Window & Stability Threshold – Governs how quickly preferred K changes and how sensitive the overfitting alarm is.
• Adaptive Thresholds – Adjust the OB/OS lines with volatility regime (ATR ratio), widening in calm markets and tightening in turbulent ones (bounded 0.7–0.9 and 0.1–0.3).
7) UI Settings
• Show Table / Zones / ML Prediction / Early Signals – Toggle informational overlays.
• Signal Line Width, Candle Painting, Colors – Visual preferences.
Step-by-step logic
A) Compute %B
Basis = SMA(source, len); dev = stdev(source, len) × multiplier; Upper/Lower = Basis ± dev.
%B = (price − Lower) / (Upper − Lower). Optional smoothing yields standardBB .
B) Build the feature vector
All features are min-max normalized over the KNN window so distances are in comparable units. Features include normalized %B, normalized band width, normalized price ROC, normalized volume ROC, and normalized position within bands. You can limit to the first N features (2–5).
C) Find nearest neighbors
For each bar inside the lookback window, compute the Euclidean distance between current features and that bar’s features. Sort by distance, keep the top K .
D) Predict and blend
Use inverse-distance weights (with a strong cap for near-zero distances) to average neighbors’ prior %B (lagged by one bar). This becomes the KNN estimate. Blend it with raw %B via the ML weight. A variance of neighbor %B around the prediction becomes an uncertainty proxy ; combined with a stability score (how long parameters remain unchanged), it forms mlConfidence ∈ . The Adaptive filter optionally transforms that confidence into a smoothing coefficient.
E) Adaptive thresholds
Volatility regime (ATR(14) divided by its 50-bar SMA) nudges OB/OS thresholds wider or narrower within fixed bounds. The aim: comparable extremeness across regimes.
F) Early entry heuristic
A tiny two-step slope/acceleration probe extrapolates finalBB forward a few bars. If it is on track to cross OB/OS soon (and slope/acceleration agree), it flags an EARLY_BUY/SELL candidate with an internal confidence score. This is explicitly a heuristic—use as an attention cue, not a signal by itself.
G) Informational win-rate
The script keeps a rolling array of trade outcomes derived from signal transitions + rudimentary exits (target/stop/time). The percentage shown is a rough diagnostic , not a validated backtest.
Outputs and visual language
• ML Bollinger %B (finalBB) – The main line after KNN blending and optional filtering.
• Gradient fill – Greenish tones above 0.5, reddish below, with intensity following distance from the midline.
• Adaptive zones – Overbought/oversold and extreme bands; shaded backgrounds appear at extremes.
• ML Prediction (dots) – The KNN estimate plotted as faint circles; becomes bright white when confidence > 0.7.
• Early arrows – Optional small triangles for approaching OB/OS.
• Candle painting – Light green above the midline, light red below (optional).
• Info panel – Current value, signal classification, ML confidence, optimized K, stability, volatility regime, adaptive thresholds, overfitting flag, early-entry status, and total signals processed.
Signal classification (informational)
The indicator does not fire trade commands; it labels state:
• STRONG_BUY / STRONG_SELL – finalBB beyond extreme OS/OB thresholds.
• BUY / SELL – finalBB beyond adaptive OS/OB.
• EARLY_BUY / EARLY_SELL – forecast suggests a near-term cross with decent internal confidence.
• NEUTRAL – between adaptive bands.
Alerts (what you can automate)
• Entering adaptive OB/OS and extreme OB/OS.
• Midline cross (0.5).
• Overfitting detected (frequent parameter flipping).
• Early signals when early confidence > 0.7.
These are purely descriptive triggers around the indicator’s state.
Practical interpretation
• Mean-reversion context – In range markets, adaptive OS/OB with ML smoothing can reduce whipsaws relative to raw %B.
• Trend context – In persistent trends, the KNN blend can keep finalBB nearer the mid/upper region during healthy pullbacks if history supports similar contexts.
• Regime awareness – Watch the volatility regime and adaptive thresholds. If thresholds compress (high vol), “OB/OS” comes sooner; if thresholds widen (calm), it takes more stretch to flag.
• Confidence as a weight – High mlConfidence implies neighbors agree; you may rely more on the ML curve. Low confidence argues for de-emphasizing ML and leaning on raw %B or other tools.
• Stability score – Rising stability indicates consistent parameter selection and fewer flips; dropping stability hints at a shifting backdrop.
Methodological notes
• Normalization uses rolling min-max over the KNN window. This is simple and scale-agnostic but sensitive to outliers; the distance metric will reflect that.
• Distance is unweighted Euclidean. If you raise featureCount, you increase dimensionality; consider keeping K larger and lookback ample to avoid sparse-neighbor artifacts.
• Lag handling intentionally uses neighbors’ previous %B for prediction to avoid lookahead bias.
• Self-optimization is deliberately modest: it only compares a few canned K/threshold choices using simple “did an extreme anticipate movement?” scoring, then enforces a stability regime and an overfitting guard. It is not a grid search or GA.
• Kalman option is a first-order recursive filter (fixed gain), not a full state-space estimator.
• Hull option derives a dynamic length from 1/strength; it is a convenience smoothing alternative.
Limitations and cautions
• Non-stationarity – Nearest neighbors from the recent window may not represent the future under structural breaks (policy shifts, liquidity shocks).
• Curse of dimensionality – Adding features without sufficient lookback can make genuine neighbors rare.
• Overfitting risk – The script includes a crude overfitting detector (frequent parameter flips) and will fall back to defaults when triggered, but this is only a guardrail.
• Win-rate display – The internal score is illustrative; it does not constitute a tradable backtest.
• Latency vs. smoothness – Smoothing and ML blending reduce noise but add lag; tune to your timeframe and objectives.
Tuning guide
• Short-term scalping – Lower len (10–14), slightly lower multiplier (1.8–2.0), small K (5–8), featureCount 3–4, Adaptive filter ON, moderate strength.
• Swing trading – len (20–30), multiplier ~2.0, K (8–14), featureCount 4–5, Adaptive thresholds ON, filter modest.
• Strong trends – Consider higher adaptive_upper/lower bounds (or let volatility regime do it), keep ML weight moderate so raw %B still reflects surges.
• Chop – Higher ML weight and stronger Adaptive filtering; accept lag in exchange for fewer false extremes.
How to use it responsibly
Treat this as a state descriptor and context filter. Pair it with your execution signals (structure breaks, volume footprints, higher-timeframe bias) and risk management. If mlConfidence is low or stability is falling, lean less on the ML line and more on raw %B or external confirmation.
Summary
Machine Learning BBPct augments a familiar oscillator with a transparent, simplified KNN memory of recent conditions. By blending neighbors’ behavior into %B and adapting thresholds to volatility regime—while exposing confidence, stability, and a plain early-entry heuristic—it provides an informational, probability-minded view of stretch and reversion that you can interpret alongside your own process.
Impulse Convexity Trend Gate [T1][T69]OVERVIEW 🧭
• A price-only trend engine that opens a “gate” only when trend strength, acceleration, and impulse dominance align.
• Built from three cooperating parts: adaptive slope, directional convexity, and an impulse-vs-pullback ratio.
• Output is a bounded oscillator (−100…+100) plus side-specific gate states (bull/bear), with optional pullback and weakness highlights.
THE IDEA & USEFULNESS 🧪
• Not a simple mashup: each component plays a distinct role—slope for direction, convexity for acceleration agreement, and an impulse ratio to suppress correction noise.
• Adaptive EMA length (series-based) lets the midline adjust to conditions without external indicators.
• Approximation of hyperbolic tangent and clamp keep signals bounded and stable while avoiding library dependencies.
• Designed to help trend traders act only when continuation is likely, and stand down during pullbacks or chop.
HOW IT WORKS (PIPELINE) ⚙️
• Price transform
• Uses log price for scale stability.
• Adaptive midline
• Volatility-aware EMA length is clamped between minimum and maximum, then applied via a custom recursive EMA.
• Slope & convexity
• Slope (first difference of the midline) defines direction; convexity (second difference) verifies acceleration agrees with that direction.
• Impulse vs pullback ratio (R)
• Sums directional progress versus counter-direction pullbacks over a window; requires impulse to dominate.
• Normalization & score
• Slope and convexity are normalized by recent dispersion; combined into a raw score and squashed to −100…+100 using manual tanh.
• Trend gate
• Gate opens only when: R ≥ threshold, |normalized slope| ≥ threshold, and slope/convexity share the same sign.
• States & visuals
• Bull/Bear Gate Entry when gate is open, oscillator crosses ±15 in the correct direction, price is on the correct side of the midline, and slope/convexity agree.
• Pullbacks mark counter-moves while a gate is active; Weakness flags specific fade patterns after pullbacks.
FEATURES ✨
• Bull and Bear Gate Entries (green/red columns).
• Pullback shading and optional trend-weakness highlights (yellow/orange + teal/maroon).
• Background tint reflects the active side (bull or bear).
• Pure price logic; no volume or external filters required.
HOW TO USE 🎯
• Regime filter
• Trade only in the direction of the open gate; ignore signals when the gate is closed.
• Pullback entries
• During an open gate, wait for a pullback zone, then act on trend-resumption (e.g., oscillator re-push through ±15 or structure break in gate direction).
• Exits & risk
• Consider trimming when the oscillator relaxes toward 0 while the gate remains open, or when convexity flips against slope and R deteriorates.
• Timeframes & markets
• Suited for trend following on crypto/FX/indices from M30 to 4H/1D; raise thresholds on lower timeframes to reduce noise.
CONFIGURATION 🔧
• Impulse ratio gate (R ≥): raises/lowers the standard for continuation dominance.
• Slope strength gate (|sN| ≥): controls how strong a slope must be to count.
• Show Pullback Impulse (toggle): enable/disable pullback highlights.
• Show Trend Weakness (toggle): enable/disable weakness flags.
LIMITATIONS ⚠️
• As a trend tool, it can lag at regime transitions; expect whipsaws in tight ranges.
• Parameters are instrument- and timeframe-dependent; tune thresholds before live use.
• Pullback/weakness flags are contextual—not trade signals by themselves; use them with gate state and your execution rules.
ADVANCED TIPS 🛠️
• Tighten R and slope thresholds for lower timeframes; loosen for higher timeframes.
• Pair with NNFX-style money management and pair-level filters; let the gate be the confirmation layer, not the entry trigger by itself.
• Batch-test across 100+ symbols, export metrics, and run Monte Carlo to validate LLN reliability and Sharpe/IQR stability.
• For system hedging, disable entries when both sides trigger on the same asset to avoid internal conflict.
NOTES 📝
• Price-only construction reduces data-vendor differences and keeps behavior consistent across markets.
• Manual tanh/clamp ensure stable, bounded scores even during extremes.
DISCLAIMER 🛡️
• For research and education. No financial advice. Test thoroughly, size conservatively, and respect your risk rules.
Ruptura + EMAs + VWAP + Vela Impulsiva Indicator: Breakout + EMAs + VWAP + Impulsive Candle + TP/SL
This indicator is designed to identify breakout trading opportunities by combining price action, moving averages, volume-weighted price, and impulsive candles, with clearly defined Take Profit (TP) and Stop Loss (SL) levels.
⏱️ Timeframe Logic:
The 15-minute chart is used to define the price range.
Entries are made on the 2-minute chart when breakout conditions align with momentum confirmation.
📌 Key Components:
Range Definition:
Calculates a price range based on a customizable number of candles (rangeBars), typically from the 15-minute timeframe.
Displays a shaded box highlighting this range.
Trend Filters:
Uses a fast EMA (9) and a slow EMA (21) to determine short-term and medium-term trends.
Includes VWAP as a dynamic support/resistance and directional filter.
Only allows trades when both EMAs and price confirm alignment above (for long) or below (for short) the VWAP.
Impulsive Candle Detection:
Confirms breakouts using large-bodied candles that engulf the previous candle's range.
The candle must exceed a certain multiple of the average range (minRangeMult) to qualify.
Breakout Entry Conditions:
Long Setup: Price breaks above the range high, with EMAs and VWAP confirming bullish alignment, and confirmed by an impulsive candle.
Short Setup: Price breaks below the range low, with EMAs and VWAP aligned bearishly, confirmed by an impulsive candle.
Trade Management:
Automatically plots Take Profit and Stop Loss levels based on the size of the entry candle and a customizable TP multiplier.
Visual dashed lines indicate TP (green) and SL (red) zones.
Session Filter:
Entry signals are limited to a specific time window (e.g., 9:00 to 10:00 AM New York time), typically during the NY session open.
Visual Aids:
Background color highlights potential entry zones (green for long, red for short).
Icons mark confirmed impulsive candles and entry signals.
Range box is updated periodically to reflect the active breakout zone.
Script de código abierto
Siguiendo fielmente el espíritu de TradingView, el creador de este script lo ha publicado en código abierto, permitiendo que otros traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Puede utilizarlo de forma gratuita, pero tenga en cuenta que la publicación de este código está sujeta a nuestras Normas internas.
Capiba Directional Momentum Oscillator (ADX-based)
🇬🇧 English
Summary
The Capiba ADX is a momentum oscillator that transforms the classic ADX (Average Directional Index) into a much more intuitive visual tool. Instead of analyzing three separate lines (ADX, DI+, DI-), this indicator consolidates the strength and direction of the trend into a single histogram that oscillates around the zero line.
The result is a clear and immediate reading of market sentiment, allowing traders to quickly identify who is in control—buyers or sellers—and with what intensity.
How to Interpret and Use the Indicator
The operation of the Capiba ADX is straightforward:
Green Histogram (Above Zero): Indicates that buying pressure (DI+) is in control. The height of the bar represents the magnitude of the bullish momentum. Taller green bars suggest a stronger uptrend.
Red Histogram (Below Zero): Indicates that selling pressure (DI-) is in control. The "depth" of the bar represents the magnitude of the bearish momentum. Lower (more negative) red bars suggest a stronger downtrend.
Zero Line (White): This is the equilibrium point. Crossovers through the zero line signal a potential shift in trend control.
Crossover Above: Buyers are taking control.
Crossover Below: Sellers are taking control.
Reference Levels (Momentum Strength)
The indicator plots three fixed reference levels to help gauge the intensity of the move:
0 Line: Equilibrium.
100 Line: Signals significant directional momentum. When the histogram surpasses this level, the trend (whether bullish or bearish) is gaining considerable strength.
200 Line: Signals very strong directional momentum, or even potential exhaustion conditions. Moves that reach this level are powerful but may also precede a consolidation or reversal.
Usage Strategy
Trend Confirmation: Use the indicator to confirm the direction of your analysis. If you are looking for long positions, the Capiba ADX should ideally be green and, preferably, rising.
Strength Identification: Watch for the histogram to cross the 100 and 200 levels to validate the strength of a breakout or an established trend.
Entry/Exit Signals: A zero-line crossover can be used as a primary entry or exit signal, especially when confirmed by other technical analysis tools.
Acknowledgements
This indicator is the result of adapting knowledge and open-source codes shared by the vibrant TradingView community.
Capiba Ultimate Suite (RSI, MA Cloud & Volatility)
🇬🇧 English
Summary
This indicator, Capiba Ultimate Suite, is a powerful compilation of various open-source technical analysis tools, refined and integrated into a single, cohesive, and functional package. The goal is to provide a complete system with clear entry and exit signals, ideal for traders operating in trending and volatile markets.
The combination of a custom momentum oscillator (Ultimate RSI), a moving average cloud for trend definition, and a volatility oscillator for range analysis transforms this script into a true trading suite.
Disclaimer: This indicator is most effective in markets with a defined trend (bullish or bearish) and may generate less reliable signals during periods of strong consolidation.
Components and How to Use
Ultimate RSI with Crossover Signals (Entries and Exits)
What it is: A variation of the classic RSI, designed to be more reactive to price movements.
Entry Signals (Buy): A green arrow (▲) appears below the candle when the Ultimate RSI line crosses above its momentum line (EMA). This is a signal of a potential start of an upward move.
Exit Signals (Sell): A red arrow (▼) appears above the candle when the Ultimate RSI crosses below its momentum line. This is a signal of potential weakening or trend reversal.
Moving Average Cloud (Trend Filter)
What it is: A cloud formed by the space between a short-term moving average (default 55) and a long-term one (default 233).
How to use for signal validation:
Uptrend: When the cloud is green (Short MA > Long MA), buy signals (▲) are strengthened. Sell signals can be seen as partial profit-taking.
Downtrend: When the cloud is red (Short MA < Long MA), sell signals (▼) are strengthened. Buy signals should be treated with extreme caution as they are against the main trend.
Candle Coloring (Quick Momentum Reading)
Lime Green: Strong bullish momentum (RSI > 50 and above its EMA).
Red: Strong bearish momentum (RSI < 50 and below its EMA).
Blue: Overbought level reached.
Yellow: Oversold level reached.
Volatility Ruler (Breakout Analysis)
What it is: The green (high) and red (low) lines mark the range of the last 'N' candles. The Vol: X.XX label on the right measures the current volatility against its historical average.
How to use:
Vol < 1.00: Contracting volatility ("Squeeze"). The market is "coiling the spring." Watch for an impending breakout of the range lines.
Vol > 1.00: Expanding volatility. Confirms the strength of a breakout that has already occurred. Very high values may indicate exhaustion.
Use the ruler to identify false breakouts: a candle closing outside the line but with a very low Vol value is more likely to be a false signal.
Acknowledgements
This indicator is the result of compiling and adapting open-source concepts and codes available in the TradingView community. Thanks to all the developers who share their knowledge.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
HA • EMA9/21 • Daily VWAP – Fixed Signals (v6)HA • EMA9/21 • Daily VWAP – Fixed Signals (v6)
Heikin Ashi EMA 9/21 + Daily VWAP Setup Indicator
Description
This indicator combines three proven concepts into one clean and practical trading tool:
Heikin Ashi Candles → smooth out price action and highlight trends more clearly.
EMA 9/21 → a classic momentum and trend filter.
Daily VWAP (Volume Weighted Average Price) → widely used by professionals as dynamic support and resistance.
How it works
Long Signal:
Triggered when Heikin Ashi turns bullish, EMA 9 is above EMA 21, and price crosses above the Daily VWAP.
Short Signal:
Triggered when Heikin Ashi turns bearish, EMA 9 is below EMA 21, and price crosses below the Daily VWAP.
For every signal the indicator automatically draws Entry, Stop-Loss, and Take-Profit levels directly on the chart:
Entry = price at the signal bar
Stop-Loss (SL) = recent swing low/high or ATR-based (configurable)
Take-Profit (TP) = calculated using the chosen Risk/Reward ratio
Features
✅ Instant signals (no repainting)
✅ Fixed horizontal lines for Entry, SL, and TP extending to the right side of the chart
✅ Customizable Risk/Reward ratio (default: 1.5)
✅ Choice between Swing-based or ATR-based stop-loss
✅ Alerts for both Long and Short signals
✅ Clean chart visualization without clutter
Use case
This tool is designed for traders who want clear, rule-based setups.
It provides easy-to-spot signals that can be used for manual trading, journaling, and backtesting.
⚠️ Note: This is not an automated trading strategy. Always confirm signals with your own analysis and apply proper risk management.
Trader Marks Trailing SL + TP (Long & Short, mirrored)📌 Trader Marks Trailing SL + TP (Long & Short, mirrored)
This script implements an advanced trailing stop and take-profit system for both long and short trades.
It combines fixed entry/TP levels with a progressive looping mechanism that dynamically adjusts the trailing stop.
🔑 Key Features
Long & Short mirrored
The script works symmetrically for both long and short setups.
Fixed or percentage-based Take-Profit
You can either set a fixed TP price or have it calculated automatically as entry ± percentage distance.
Progressive Trailing Stop with Looping Mechanism
The stop-loss moves progressively towards the take-profit depending on price development.
For longs, the SL only moves upward (never lower).
For shorts, the SL only moves downward (never higher).
The looping exponent (tightPower) controls how strongly the gap between price and SL “tightens” over time:
Smaller values (e.g. 1.0) → gentle tightening, SL follows loosely.
Larger values (e.g. 3.0) → aggressive tightening, SL closes in on price faster.
Dynamic Minimum Distance
Default: 0.9 % distance from price.
As soon as the stop-loss touches the current or previous candle → automatic switch to 1.5 %.
Once the next candle no longer touches the SL → it reverts back to 0.9 %.
Lock at TP
Option to pull the SL exactly to the TP level once it is reached.
Automatic Reset
If any inputs change (Entry, TP, Trade Direction), the SL can be re-initialized automatically.
🎨 Visualization
Blue line → Entry level
Teal line → Take-profit level
Red line → Dynamic trailing stop
The data window also shows whether the tight mode (1.5 %) is currently active.