EMA+SuperThis comprehensive indicator combines multiple powerful trend-following tools into a single chart overlay, designed for traders seeking clear entry and exit signals with market context.
Features:
Exponential Moving Averages (EMAs): Five EMAs (9, 21, 50, 100, 200) plotted for multi-timeframe trend analysis and dynamic support/resistance.
Supertrend: Classic volatility-based trend indicator highlighting bullish and bearish phases with dynamic colored bands.
NovaWave Cloud: Custom trend cloud created using fast and slow EMAs plus a signal moving average for visualizing market momentum shifts.
Displaced Moving Averages (20, 50, 200 DMA): Simple moving averages with optional displacement to assess lagged trend confirmation and cyclical ranges.
Buy/Sell Signal Labels: Automated labels show “BUY” when the 9 EMA crosses above the 21 EMA, and “SELL” when the 9 EMA crosses below the 21 EMA, providing timely entry/exit cues.
Intended Use:
Perfect for swing and position traders, this indicator combines trend confirmation and actionable signals to help identify sustained price moves in various markets. It works well on multiple timeframes, offering a clear visual framework for market direction and trading decisions.
How to Use:
Look for BUY labels for potential long entry opportunities when momentum shifts bullish.
Look for SELL labels as potential exit or short signals when a bearish momentum crossover occurs.
Use the overlaying EMAs, Supertrend, and cloud as additional confirmation for trend strength and timing.
This all-in-one tool is ideal for traders who want a unified view of trend dynamics combined with simple, clear signals without needing multiple separate indicators.
Feel free to modify or expand based on your style. Let me know if you want a shorter summary or technical details added!
指标和策略
FVG Volume Profile [ChartPrime]⯁ OVERVIEW
FVG Volume Profile is a smart volume analysis tool that identifies Fair Value Gaps (FVGs) and overlays a volume profile inside each gap using data from lower timeframes. The indicator automatically selects the best time resolution or allows for manual control, giving traders deeper insight into the volume structure within each imbalance. POC levels and total volumes gives a full microstructure view inside every FVG.
⯁ KEY FEATURES
Fair Value Gap Detection (Bullish & Bearish)
Detects price gaps where inefficiency exists using a 3-bar structure.
-Bullish Gaps: Low > High with confirming middle bar.
-Bearish Gaps: High < Low with confirming middle bar.
Only significant gaps (filtered by standard deviation) are plotted to avoid noise.
Multi-Timeframe Volume Profiling
Pulls granular candle and volume data from a lower timeframe —
In Auto Mode, uses a resolution ~10x lower than the current chart.
In Manual Mode, lets the user select a custom timeframe.
This ensures accurate intra-gap volume distribution.
Dynamic Volume Binning
Each FVG is divided into vertical volume bins based on the Resolution input.
Each bin displays relative volume intensity as a horizontal box, scaled by percentage of the max bin volume.
Point of Control (PoC) Line & Label
The bin with the maximum volume inside each FVG is marked with:
A horizontal line (PoC) extending from the left to right side.
A label showing the absolute volume of that bin.
Color-coded to match bullish or bearish FVGs.
Total Volume Label Inside FVG
Each FVG displays the total volume sum from its profile:
For bullish FVGs , shown in the bottom-right corner.
For bearish FVGs , shown in the top-right corner.
Auto-Removal of Invalid Gaps
If price fully closes the gap (crosses its bounds), the FVG, profile, and PoC are deleted automatically.
This keeps the chart clean and focused only on active zones.
Toggleable Volume Profile Display
User can show or hide the volume profiles within FVGs using the "Display" toggle under the "FVG Volume Profile" group.
Only the PoC and FVG boxes remain visible if toggled off.
Volume Resolution Customization
Control the number of bins used for each FVG profile.
Higher resolution = more bins and finer volume analysis. (default 15)
Auto Timeframe Validation Warning
If the selected lower timeframe isn’t actually lower than the chart's, the script shows a visible warning label prompting adjustment.
Helps prevent calculation errors.
⯁ USAGE
Use this tool to identify active imbalance zones (FVGs) with embedded volume context.
Look for PoC positioning inside gaps — near top may indicate absorption or reversal zones.
Combine with price action at the PoC level for precision entries.
Hide volume profile for a cleaner view while retaining key POC and FVG boxes.
Use resolution controls to zoom into fine-grained profiles inside large gaps.
Consider Auto mode for seamless multi-timeframe analysis, or switch to Manual for full control.
⯁ CONCLUSION
FVG Volume Profile transforms raw imbalance detection into actionable insight by embedding lower-timeframe volume structure inside each Fair Value Gap. With PoC highlights, total volume labels, and customizable bin resolution, this indicator is essential for traders who want to understand not just where the gap is — but what volume did inside it .
Volume Delta [BigBeluga]🔵 OVERVIEW
The Volume Delta indicator visualizes the dominance between buying and selling volume within a given period. It calculates the percentage of bullish (buy) versus bearish (sell) volume, then color-codes the candles and provides a real-time dashboard comparing delta values across multiple currency pairs. This makes it a powerful tool for monitoring order-flow strength and intermarket relationships in real time.
🔵 CONCEPTS
Each bar’s buy volume is counted when the close is higher than the open.
Each bar’s sell volume is counted when the close is lower than the open.
volumeBuy = 0.
volumeSell = 0.
for i = 0 to period
if close > open
volumeBuy += volume
else
volumeSell += volume
The indicator sums both over a chosen period to calculate the ratio of buy-to-sell pressure.
Delta (%) = (Buy Volume ÷ (Buy Volume + Sell Volume)) × 100.
Gradient colors highlight whether buying or selling pressure dominates.
🔵 FEATURES
Calculates real-time Volume Delta for the selected chart or for multiple assets.
Colors candles dynamically based on the delta intensity (green = buy pressure, red = sell pressure).
Displays a dashboard table showing volume delta % for up to five instruments.
The dashboard features visual progress bars for quick intermarket comparison.
An optional Delta Bar Panel shows the ratio of Buy/Sell volumes near the latest bar.
A floating label shows the exact Buy/Sell percentages.
Works across all symbols and timeframes for multi-asset delta tracking.
🔵 HOW TO USE
When Buy % > Sell % , it often signals bullish momentum or strong accumulation—but can also indicate over-excitement and a possible market top.
Market Tops
When Sell % > Buy % , it typically reflects bearish pressure or distribution—but may also occur near a market bottom where selling exhaustion forms.
Market Bottom
Use the Dashboard to compare volume flow across correlated assets (e.g., major Forex pairs or sector groups).
Combine readings with trend or volatility filters to confirm whether the imbalance aligns with broader directional conviction.
Treat the Delta Bar visualization as a real-time sentiment gauge—showing which side (buyers or sellers) dominates the current session.
🔵 CONCLUSION
Volume Delta transforms volume analysis into an intuitive directional signal.
By quantifying buy/sell pressure and displaying it as a percentage or color gradient, it provides traders with a clearer picture of real-time volume imbalance — whether within one market or across multiple correlated instruments.
[ZP] Fixed v6 testDISCLAIMER:
This indicator in Pine V6 as my first ever Tradingview indicator, has been developed for my personal trading analysis, consolidating various powerful indicators that I frequently use. A number of the embedded indicators within this tool are the creations of esteemed Pine Script developers from the TradingView community. In recognition of their contributions, the names of these developers will be prominently displayed alongside the respective indicator names. My selection of these indicators is rooted in my own experience and reflects those that have proven most effective for me. Please note that the past performance of any trading system or methodology is not necessarily indicative of future results. Always conduct your own research and due diligence before using any indicator or tool.
===========================================================================
Introducing the ultimate all-in-one DIY strategy builder indicator, With over 30+ famous indicators (some with custom configuration/settings) indicators included, you now have the power to mix and match to create your own custom strategy for shorter time or longer time frames depending on your trading style. Say goodbye to cluttered charts and manual/visual confirmation of multiple indicators and hello to endless possibilities with this indicator.
Available indicators that you can choose to build your strategy, are coded to seamlessly print the BUY and SELL signal upon confirmation of all selected indicators:
EMA Filter
2 EMA Cross
3 EMA Cross
Range Filter (Guikroth)
SuperTrend
Ichimoku Cloud
SuperIchi (LuxAlgo)
B-Xtrender (QuantTherapy)
Bull Bear Power Trend (Dreadblitz)
VWAP
BB Oscillator (Veryfid)
Trend Meter (Lij_MC)
Chandelier Exit (Everget)
CCI
Awesome Oscillator
DMI ( Adx )
Parabolic SAR
Waddah Attar Explosion (Shayankm)
Volatility Oscillator (Veryfid)
Damiani Volatility ( DV ) (RichardoSantos)
Stochastic
RSI
MACD
SSL Channel (ErwinBeckers)
Schaff Trend Cycle ( STC ) (LazyBear)
Chaikin Money Flow
Volume
Wolfpack Id (Darrellfischer1)
QQE Mod (Mihkhel00)
Hull Suite (Insilico)
Vortex Indicator
Pro Trading Signals - Trend + S/R + Risk// ============================================
// PROFESSIONAL TRADING STRATEGY NOTES
// ============================================
// === WHAT THIS STRATEGY DOES ===
// 1. TREND ANALYSIS: Uses multiple EMAs (9, 21, 50, 200) to identify trend direction
// 2. SUPPORT/RESISTANCE: Automatically detects key price levels
// 3. RISK MANAGEMENT: Calculates stop loss and take profit with 2:1+ R:R ratio
// 4. SIGNAL SCORING: Only trades high-quality setups (60/100+ score)
// 5. ENTRY TYPES: Pullbacks, support/resistance bounces, breakouts
// === KEY IMPROVEMENTS FROM BASIC SIGNALS ===
// ✓ Trend alignment required (no counter-trend trades)
// ✓ Support/resistance confirmation
// ✓ Volume and momentum filters
// ✓ Automatic stop loss and take profit levels
// ✓ Signal quality scoring (filters out weak signals)
// ✓ Risk:Reward ratio enforcement (minimum 2:1)
// ✓ Volatility filter (avoids choppy markets)
Extreme Candle Pattern Visualizer🟠 OVERVIEW
This indicator compares the current candle's percentage change against historical data, then highlights past candles with equal or bigger magnitude of movement. Also, for all the highlighted past candles, it tracks how far price extends before recovering to its starting point. It also provides statistical context through percentile rankings.
IN SHORT: Quickly spot similar price movements in the past and understand how unusual the current candle is using percentile rankings.
🟠 CORE CONCEPT
The indicator operates on two fundamental principles:
1. Statistical Rarity Detection
The script calculates the percentage change (open to close) of every candle within a user-defined lookback period and determines where the current candle ranks in this distribution. A candle closing at -9% might fall in the bottom 5th percentile, indicating it's more extreme than 95% of recent candles. This percentile ranking helps traders identify statistically unusual moves that often precede reversals or extended trends.
2. Recovery Path Mapping
Once extreme candles are identified (those matching or exceeding the current candle's magnitude), the indicator tracks their subsequent price action. For bearish candles, it measures how far price dropped before recovering back to the candle's opening price. For bullish candles, it tracks how high price climbed before returning to the open. This reveals whether extreme moves typically extend further or reverse quickly.
🟠 PRACTICAL APPLICATIONS
Mean Reversion Trading:
Candles in extreme percentiles (below 10% or above 90%) often signal oversold/overbought conditions. The recovery lines show typical extension distances, helping traders set profit targets for counter-trend entries.
Momentum Continuation:
When extreme candles show small recovery percentages before price reverses back, it suggests strong directional momentum that may continue.
Stop Loss Placement:
Historical recovery data reveals typical extension ranges after extreme moves, informing more precise stop loss positioning beyond noise but before major reversals.
Pattern Recognition:
By visualizing how similar historical extremes resolved, traders gain context for current price action rather than trading in isolation.
🟠 VISUAL ELEMENTS
Orange Circles: Mark historical candles with similar or greater magnitude to current candle
Red Lines: Track downward extensions after bearish extreme candles
Green Lines: Track upward extensions after bullish extreme candles
Percentage Labels: Show exact extension distance from candle close to extreme point
Percentile Label: Color-coded box displaying current candle's statistical ranking
Hollow Candles: Background rendering for clean chart presentation
🟠 ORIGINALITY
This indicator uniquely combines statistical percentile analysis with forward-looking recovery tracking. While many indicators identify extreme moves, few show what happened next across multiple historical instances simultaneously. The dual approach provides both the "how rare is this?" question (percentile) and "what typically happens after?" answer (recovery paths) in a single visual framework.
SuperTrend Dual RMAThis enhanced ATR SuperTrend indicator combines dual volume-weighted RMAs with the Average True Range (ATR) to deliver smoother and more reliable trend signals.
It identifies bullish and bearish phases using a blue-rose color scheme, providing clear visual cues for entries and exits.
Features:
Dual RMA baseline for smooth, volume-sensitive trend calculation
ATR multiplier-driven upper and lower bands
Filled bands to highlight volatility zones
Bar coloring for trend confirmation
SMC Structures and Multi-Timeframe FVG PYSMC Structures and Multi-Timeframe FVG Indicator
Tip: For optimal performance, adjust the number of FVGs displayed per timeframe in the settings. On high-performance devices, up to 8 FVGs per timeframe can be used without issues. If you experience slowdowns, reduce to 3 or 4 FVGs per timeframe. If the chart flashes, disable indicators one by one to identify conflicts, or try using the TradingView Mobile or Windows App for a smoother experience.
Overview
This Pine Script indicator enhances market analysis by integrating Smart Money Concepts (SMC) with Fair Value Gaps (FVG) across multiple timeframes. It identifies trend continuations (Break of Structure, BOS) and trend reversals (Change of Character, CHoCH) while highlighting liquidity zones through FVG detection. The indicator includes eight customizable Moving Average (MA) curve templates, disabled by default, to complement SMC and FVG analysis. Its originality lies in combining multi-timeframe FVG detection with SMC structure analysis, providing traders with a cohesive tool to visualize price action patterns and liquidity zones efficiently.
Features and Functionality
1. Fair Value Gaps (FVG)
The indicator detects and displays bullish, bearish, and mitigated FVGs, representing liquidity zones where price inefficiencies occur. These gaps are dynamically updated based on price action:
Bullish FVG: Displayed in green when unmitigated, indicating potential upward liquidity zones.
Bearish FVG: Displayed in red when unmitigated, signaling potential downward liquidity zones.
Mitigated FVG: Shown in gray once the gap is partially filled by price action.
Fully Mitigated FVG: Automatically removed from the chart when the gap is fully filled, reducing visual clutter.
Users can customize the number of historical FVGs displayed via the settings, allowing focus on recent liquidity zones for targeted analysis.
2. SMC Structures
The indicator identifies key SMC price action patterns:
Break of Structure (BOS): Marked with gray lines, indicating trend continuation when price breaks a significant high or low.
Change of Character (CHoCH): Highlighted with yellow lines, signaling potential trend reversals when price fails to maintain the current structure.
High/Low Values: Blue lines denote the highest high and lowest low of the current structure, providing reference points for market context.
3. Multi-Timeframe FVG Analysis
A standout feature is the ability to analyze FVGs across multiple timeframes simultaneously. This allows traders to align higher-timeframe liquidity zones with lower-timeframe entries, improving trade precision. The indicator fetches FVG data from user-selected timeframes, displaying them cohesively on the chart.
4. Moving Average (MA) Templates
The indicator includes eight customizable MA curve templates in the Settings > Template section, disabled by default. These templates allow users to overlay MAs (e.g., SMA, EMA, WMA) to complement SMC and FVG analysis. Each template is pre-configured with different periods and types, enabling quick adaptation to various trading strategies, such as trend confirmation or dynamic support/resistance.
How It Works
The script processes price action to detect FVGs by analyzing three-candle patterns where a gap forms between the high/low of the first and third candles. Multi-timeframe data is retrieved using Pine Script’s request.security() function, ensuring accurate FVG plotting across user-defined timeframes. BOS and CHoCH are identified by tracking swing highs and lows, with logic to differentiate trend continuation from reversals. The MA templates are computed using standard Pine Script TA functions, with user inputs controlling visibility and parameters.
How to Use
Add to Chart: Apply the indicator to any TradingView chart.
Configure Settings:
FVG Settings: Adjust the number of historical FVGs to display (default: 10). Enable/disable specific FVG types (bullish, bearish, mitigated).
Timeframe Selection: Choose up to three timeframes for FVG analysis (e.g., 1H, 4H, 1D) to align with your trading strategy.
Structure Settings: Toggle BOS (gray lines) and CHoCH (yellow lines) visibility. Adjust sensitivity for structure detection if needed.
MA Templates: Enable MA curves via the Template section. Select from eight pre-configured MA types and periods to suit your analysis.
Interpret Signals:
Use green/red FVGs for potential entry points targeting liquidity zones.
Monitor gray lines (BOS) for trend continuation and yellow lines (CHoCH) for reversal signals.
Align multi-timeframe FVGs with BOS/CHoCH for high-probability setups.
Optionally, use MA curves for trend confirmation or dynamic levels.
Clean Chart Usage: The indicator is designed to work standalone. Ensure no conflicting scripts are applied unless explicitly needed for your strategy.
Why This Indicator Is Unique
Unlike standalone FVG or SMC indicators, this script combines both concepts with multi-timeframe analysis, offering a comprehensive view of market structure and liquidity. The addition of customizable MA templates enhances flexibility, while the dynamic removal of mitigated FVGs keeps the chart clean. This mashup is purposeful, as it integrates complementary tools to streamline decision-making for traders using SMC strategies.
Credits
This indicator builds on foundational SMC and FVG concepts from the TradingView community. Some open-source code was reused, and do performance enhancement as you guys can read the code. This type of indicators has inspiration was drawn from public domain SMC methodologies. All code is partly original with manual work on performance optimization in Pine Script.
Notes
Ensure your chart is clean (no unnecessary drawings or indicators) to maximize clarity.
The indicator is open-source, and traders are encouraged to review the code for deeper understanding.
For optimal use, test the indicator on a demo account to familiarize yourself with its signals.
HammerThis indicator automatically detects powerful candlestick formations such as Hammer, Inverted Hammer, Bullish Engulfing, Hanging Man, Shooting Star, and Bearish Engulfing.
It visually marks potential reversal zones on the chart and provides instant Long / Short alerts.
By combining pattern recognition with swing levels, it helps you identify possible trend reversals more clearly.
A simple, fast, and price-action-focused tool for smarter trading decisions.
💡 Yellow dotted lines indicate possible reaction zones around swing points.
Enhanced Holt-Winters RSI [BOSWaves]Enhanced Holt-Winters RSI – Next-Level Momentum Smoothing & Signal Precision
Overview
The Enhanced Holt-Winters RSI transforms the classic Relative Strength Index into a robust, lag-minimized momentum oscillator through Holt-Winters triple exponential smoothing. By modeling the level, trend, and cyclical behavior of the RSI series, this indicator delivers smoother, more responsive signals that highlight overbought/oversold conditions, momentum shifts, and high-conviction trading setups without cluttering the chart with noise.
Unlike traditional RSI, which reacts to historical data and produces frequent whipsaws, the Enhanced Holt-Winters RSI filters transient price fluctuations, enabling traders to detect emerging momentum and potential reversal zones earlier.
Theoretical Foundation
The traditional RSI measures relative strength by comparing average gains and losses, but suffers from:
Lag in trend recognition : Signals often arrive after momentum has shifted.
Noise sensitivity : High-frequency price movements generate unreliable crossovers.
Limited insight into structural market shifts : Standard RSI cannot contextualize cyclical or momentum patterns.
The Enhanced Holt-Winters RSI addresses these limitations by applying triple exponential smoothing directly to the RSI series. This decomposes the series into:
Level (Lₜ) : Represents the smoothed central tendency of RSI.
Trend (Tₜ) : Captures rate-of-change in smoothed momentum.
Seasonal Component (Sₜ) : Models short-term cyclical deviations in momentum.
By incorporating these elements, the oscillator produces smoothed RSI values that react faster to emerging trends while suppressing erratic noise. Its internal forecast is mathematical, influencing the smoothed RSI output and signals, rather than being directly plotted.
How It Works
The Enhanced Holt-Winters RSI builds its signal framework through several layers:
1. Base RSI Calculation
Computes standard RSI over the selected period as the primary momentum input.
2. Triple Exponential Smoothing (Holt-Winters)
The RSI is smoothed recursively to extract underlying momentum structure:
Level, trend, and seasonal components are combined to produce a smoothed RSI.
This internal smoothing reduces lag and enhances signal reliability.
3. Momentum Analysis
Short-term momentum shifts are tracked via a moving average of the smoothed RSI, highlighting acceleration or deceleration in directional strength.
4. Volume Confirmation (Optional)
Buy/sell signals can be filtered through a configurable volume threshold, ensuring only high-conviction moves trigger alerts.
5. Visual Output
Colored Candles : Represent overbought (red), oversold (green), or neutral (yellow) conditions.
Oscillator Panel : Plots the smoothed RSI with dynamic color coding for immediate trend context.
Signals : Triangular markers indicate bullish or bearish setups, with stronger signals flagged in extreme zones.
Interpretation
The Enhanced Holt-Winters RSI provides a multi-dimensional perspective on price action:
Trend Strength : Smoothed RSI slope and color coding reflect the direction and momentum intensity.
Momentum Shifts : Rapid changes in the smoothed RSI indicate emerging strength or weakness.
Overbought/Oversold Zones : Highlight areas where price is stretched relative to recent momentum.
High-Conviction Signals : Combined with volume filtering, markers indicate optimal entries/exits.
Cycle Awareness : Smoothing reveals structural patterns, helping traders avoid reacting to noise.
By combining these elements, traders gain early insight into market structure and momentum without relying on raw, lag-prone RSI data.
Strategy Integration
The Enhanced Holt-Winters RSI can be applied across trading styles:
Trend Following
Enter when RSI is aligned with price momentum and color-coded signals confirm trend direction.
Strong slope in the smoothed RSI signals trend continuation.
Reversal Trading
Look for RSI extremes with momentum shifts and strong signal markers.
Compression in oscillator values often precedes reversal setups.
Breakout Detection
Oscillator flattening in neutral zones followed by directional expansion indicates potential breakout conditions.
Multi-Timeframe Confluence
Higher timeframes provide directional bias; lower timeframes refine entry timing using smoothed RSI dynamics.
Technical Implementation Details
Input Source : Close, open, high, low, or price.
Smoothing : Holt-Winters triple exponential smoothing applied to RSI.
Parameters :
Level (α) : Controls smoothing of RSI.
Trend (β) : Adjusts responsiveness to momentum changes.
Seasonal Length : Defines cycles for short-term adjustments.
Delta Smoothing : Reduces choppiness in smoothed RSI difference.
Outputs :
Smoothed RSI
Colored candles and oscillator panel
Buy/Sell signal markers (with optional strength filtering)
Volume Filtering : Optional threshold to confirm signals.
Optimal Application Parameters
Asset-Specific Guidance:
Forex : Use moderate smoothing (α, β) to capture medium-term momentum swings while filtering minor price noise. Works best when combined with volume or volatility filters.
Equities : Balance responsiveness and smoothness to identify sustained sector momentum or rotational shifts; ideal for capturing clean directional transitions.
Cryptocurrency : Increase smoothing parameters slightly to stabilize RSI during extreme volatility; optional volume confirmation can help filter false signals.
Futures/Indices : Lower smoothing sensitivity emphasizes macro momentum and structural trend durability over short-term fluctuations.
Timeframe Optimization:
Scalping (1-5m) : Use higher sensitivity (lower smoothing factors) to react quickly to micro-momentum reversals.
Intraday (15m-1h) : Balance smoothing and responsiveness for detecting short-term acceleration and exhaustion zones.
Swing (4h-Daily) : Apply moderate smoothing to reveal underlying directional persistence and cyclical reversals.
Position (Daily-Weekly) : Use stronger smoothing to isolate dominant momentum trends and filter temporary pullbacks.
Integration Guidelines
Combine with trend filters (EMAs, SuperSmoother MA, ATR-based tools) for confirmation.
Use volume and signal strength markers to filter low-conviction trades.
Slope, color, and signal alignment can guide entry, stop placement, and scaling.
Disclaimer
The Enhanced Holt-Winters RSI is a technical analysis tool, not a guaranteed profit system. Effectiveness depends on proper settings, market structure, and disciplined risk management. Always backtest before live trading.
Volume Sampled Supertrend [BackQuant]Volume Sampled Supertrend
A Supertrend that runs on a volume sampled price series instead of fixed time. New synthetic bars are only created after sufficient traded activity, which filters out low participation noise and makes the trend much easier to read and model.
Original Script Link
This indicator is built on top of my volume sampling engine. See the base implementation here:
Why Volume Sampling
Traditional charts print a bar every N minutes regardless of how active the tape is. During quiet periods you accumulate many small, low information bars that add noise and whipsaws to downstream signals.
Volume sampling replaces the clock with participation. A new synthetic bar is created only when a pre-set amount of volume accumulates (or, in Dollar Bars mode, when pricevolume reaches a dollar threshold). The result is a non-uniform time series that stretches in busy regimes and compresses in quiet regimes. This naturally:
filters dead time by skipping low volume chop;
standardizes the information content per bar, improving comparability across regimes;
stabilizes volatility estimates used inside banded indicators;
gives trend and breakout logic cleaner state transitions with fewer micro flips.
What this tool does
It builds a synthetic OHLCV stream from volume based buckets and then applies a Supertrend to that synthetic price. You are effectively running Supertrend on a participation clock rather than a wall clock.
Core Features
Sampling Engine - Choose Volume buckets or Dollar Bars . Thresholds can be dynamic from a rolling mean or median, or fixed by the user.
Synthetic Candles - Plots the volume sampled OHLC candles so you can visually compare against regular time candles.
Supertrend on Synthetic Price - ATR bands and direction are computed on the sampled series, not on time bars.
Adaptive Coloring - Candle colors can reflect side, intensity by volume, or a neutral scheme.
Research Panels - Table shows total samples, current bucket fill, threshold, bars-per-sample, and synthetic return stats.
Alerts - Long and Short triggers on Supertrend direction flips for the synthetic series.
How it works
Sampling
Pick Sampling Method = Volume or Dollar Bars.
Set the dynamic threshold via Rolling Lookback and Filter (Mean or Median), or enable Use Fixed and type a constant.
The script accumulates volume (or pricevolume) each time bar. When the bucket reaches the threshold, it finalizes one or more synthetic candles and resets accumulation.
Each synthetic candle stores its own OHLCV and is appended to the synthetic series used for all downstream logic.
Supertrend on the sampled stream
Choose Supertrend Source (Open, High, Low, Close, HLC3, HL2, OHLC4, HLCC4) derived from the synthetic candle.
Compute ATR over the synthetic series with ATR Period , then form upperBand = src + factorATR and lowerBand = src - factorATR .
Apply classic trailing band and direction rules to produce Supertrend and trend state.
Because bars only come when there is sufficient participation, band touches and flips tend to align with meaningful pushes, not idle prints.
Reading the display
Synthetic Volume Bars - The non-uniform candles that represent equal information buckets. Expect more candles during active sessions and fewer during lulls.
Volume Sampled Supertrend - The main line. Green when Trend is 1, red when Trend is -1.
Markers - Small dots appear when a new synthetic sample is created, useful for aligning activity cycles.
Time Bars Overlay (optional) - Plot regular time candles to compare how the synthetic stream compresses quiet chop.
Settings you will use most
Data Settings
Sampling Method - Volume or Dollar Bars.
Rolling Lookback and Filter - Controls the dynamic threshold. Median is robust to outliers, Mean is smoother.
Use Fixed and Fixed Threshold - Force a constant bucket size for consistent sampling across regimes.
Max Stored Samples - Ring buffer limit for performance.
Indicator Settings
SMA over last N samples - A moving average computed on the synthetic close series. Can be hidden for a cleaner layout.
Supertrend Source - Price field from the synthetic candle.
ATR Period and Factor - Standard Supertrend controls applied on the synthetic series.
Visuals and UI
Show Synthetic Bars - Turn synthetic candles on or off.
Candle Color Mode - Green/Red, Volume Intensity, Neutral, or Adaptive.
Mark new samples - Puts a dot when a bucket closes.
Show Time Bars - Overlay regular candles for comparison.
Paint candles according to Trend - Colors chart candles using current synthetic Supertrend direction.
Line Width , Colors , and Stats Table toggles.
Some workflow notes:
Trend Following
Set Sampling Method = Volume, Filter = Median, and a reasonable Rolling Lookback so busy regimes produce more samples.
Trade in the direction of the Volume Sampled Supertrend. Because flips require real participation, you tend to avoid micro whipsaws seen on time bars.
Use the synthetic SMA as a bias rail and trailing reference for partials or re-entries.
Breakout and Continuation
Watch for rapid clustering of new sample markers and a clean flip of the synthetic Supertrend.
The compression of quiet time and expansion in busy bursts often makes breakouts more legible than on uniform time charts.
Mean Reversion
In instruments that oscillate, faded moves against the synthetic Supertrend are easier to time when the bucket cadence slows and Supertrend flattens.
Combine with the synthetic SMA and return statistics in the table for sizing and expectation setting.
Stats table (top right)
Method and Total Samples - Sampling regime and current synthetic history length.
Current Vol or Dollar and Threshold - Live bucket fill versus the trigger.
Bars in Bucket and Avg Bars per Sample - How much time data each synthetic bar tends to compress.
Avg Return and Return StdDev - Simple research metrics over synthetic close-to-close changes.
Why this reduces noise
Time based bars treat a 5 minute print with 1 percent of average participation the same as one with 300 percent. Volume sampling equalizes bar information content. By advancing the bar only when sufficient activity occurs, you skip low quality intervals that add variance but little signal. For banded systems like Supertrend, this often means fewer false flips and cleaner runs.
Notes and tips
Use Dollar Bars on assets where nominal price varies widely over time or across symbols.
Median filter can resist single burst outliers when setting dynamic thresholds.
If you need a stable research baseline, set Use Fixed and keep the threshold constant across tests.
Enable Show Time Bars occasionally to sanity check what the synthetic stream is compressing or stretching.
Link again for reference
Original Volume Based Sampling engine:
Bottom line
When you let participation set the clock, your Supertrend reacts to meaningful flow instead of idle prints. The result is a cleaner state machine, fewer micro whipsaws, and a trend read that respects when the market is actually trading.
Multi-Timeframe FVG Detector v2 STEWNewest FVG with alerts and ability to show current TimeFrame Viewed
First-Move-Wrong Toolkit [CHE] First-Move-Wrong Toolkit — Session-bound sweep rejection with structure confirmation
Summary
This indicator marks potential “first move wrong” reversals during a defined trading session. It looks for a quick sweep beyond the prior day high or low, or the opening range high or low, followed by rejection and a basic structure confirmation. Optional rules require a retest and a VWAP reclaim in the direction of the trade idea. The script renders session levels as right-extended lines, signals as labels, optional SL/TP guide lines for visualization, and background tints during sweep events. Pivots are confirmed using swing width, which reduces repaint risk compared to live swings.
Motivation: Why this design?
Intraday reversals often start with a liquidity sweep around obvious highs or lows. Acting on the sweep alone can be noisy, while waiting for structure break and a retest can be slow. This tool balances both by checking a sweep and rejection at session-relevant levels, then requiring a simple structure cue and, optionally, a retest and a VWAP filter. The goal is a clear, rule-based signal layer that is easy to audit on chart without hidden state.
What’s different vs. standard approaches?
Baseline reference: Simple sweep detectors or basic CHOCH markers that ignore session context and liquidity anchors.
Architecture differences:
Session-aware opening range tracking that finalizes after the chosen minutes from session start.
Daily previous high and low pulled without lookahead, then extended forward as visual anchors.
Confirmed pivot highs and lows to avoid repaint from live, unconfirmed swings.
Optional retest rule using crossover or crossunder at the trigger level.
Optional VWAP filter to demand reclaim in the intended direction.
Global label cooldown to prevent clusters of signals.
Practical effect: Fewer one-off flips around noisy levels, clearer alignment with session structure, and compact visual feedback through lines, labels, and tints.
How it works (technical)
Levels: During the defined session, the script builds an opening range high and low until the configured minute mark after session start, then freezes those levels for the day. It also fetches the previous day high and low from the daily timeframe without lookahead and extends them forward.
Sweep and rejection: A sweep is defined as price moving beyond a target level and then rejecting back inside on the same bar. The script checks this condition separately for highs and lows against opening range and previous-day levels.
Structure validation: Confirmed pivot highs and lows are computed using a symmetric swing width. A bearish idea requires a prior sweep of a high plus a break through the last confirmed swing low. A bullish idea requires a prior sweep of a low plus a break through the last confirmed swing high.
Optional retest: If enabled, a bearish signal needs a cross under the bearish trigger level; a bullish signal needs a cross over the bullish trigger level.
VWAP filter (optional): The script requires a reclaim of VWAP in the intended direction when enabled.
State handling: Opening range values, previous-day lines, and the label cooldown timestamp are stored in persistent variables. Lines are created once and updated each bar to extend forward.
Repaint considerations: Pivots confirm only after the specified swing width, reducing repaint. The daily level request is performed without lookahead. Signals use closed-bar checks implied by crossover and crossunder logic.
Parameter Guide
Session (local) — Defines the active trading window. Default nine to seventeen. Narrower windows focus on the main session drive.
Opening Range (min) — Minutes from session start to finalize OR levels. Default fifteen. Shorter values react faster; longer values stabilize levels.
Use PrevDay H/L levels — Toggle previous-day anchors. On by default.
Use OR H/L levels — Toggle opening range anchors. On by default.
Equal H/L tolerance (ticks) — Intended tolerance for equal highs or lows. Default one. (Unknown/Optional) in current signals.
Swing width — Bars on both sides for confirmed pivots. Default two. Larger values reduce noise but confirm later.
Require CHOCH after sweep — Enforces structure break after a sweep. On by default.
Prefer retest entries — Requires crossover or crossunder of the trigger level. On by default.
VWAP filter — Demands a reclaim of VWAP in signal direction. Off by default.
TP in R (guide) — Multiplier for visual TP guides. Default one. Visualization only.
Show levels / Show signals / Show R-guides — Rendering toggles. R-guides are visual aids, not orders.
Label cooldown (bars) — Minimum bars between labels. Default five. Higher values reduce clusters.
Palette inputs — Colors and transparencies for levels, labels, VWAP, and tints.
Reading & Interpretation
Lines: Dotted lines represent opening range high and low after the OR window completes. Dashed lines represent previous-day high and low.
Signals: “Long” labels appear after a low-side sweep with rejection and structure confirmation, subject to optional retest and VWAP rules. “Short” labels mirror this on the high side.
Background tints: Red-tinted bars indicate a high-side sweep and rejection. Green-tinted bars indicate a low-side sweep and rejection.
R-guides: Circles display a visual stop level at the bar extreme and a target guide based on the selected multiple. They are informational only.
Practical Workflows & Combinations
Session reversal scans: During the first hour, watch for sweeps around previous-day or opening range levels, then wait for structure confirmation and optional retest.
Trend following with filters: Combine signals with higher-timeframe structure or a moving average regime check. Ignore signals against the dominant regime.
Exits and stops: Use the visual stop as a reference near the sweep extreme; adapt the target guide to volatility and market conditions.
Multi-asset / Multi-TF: Works on intraday timeframes for liquid futures, indices, forex, and large-cap equities. Start with default settings and adjust swing width and OR minutes to instrument volatility.
Behavior, Constraints & Performance
Repaint/confirmation: Pivots confirm after the swing window completes. Signals occur only when conditions are met on closed bars.
security()/HTF: Daily previous-day levels are requested without lookahead to reduce repaint.
Resources: Uses persistent variables and line updates per bar; no heavy loops or arrays.
Known limits: Signals can arrive later when swing width is large. Gaps around session boundaries may distort OR levels. VWAP behavior may vary with partial sessions or illiquid assets.
Sensible Defaults & Quick Tuning
Starting point: Session nine to seventeen, opening range fifteen minutes, swing width two, CHOCH required, retest on, VWAP off, cooldown five bars.
Too many flips: Increase swing width, enable VWAP filter, or raise label cooldown.
Too sluggish: Reduce swing width or shorten the opening range window.
Too many session-level hits: Disable either previous-day levels or opening range levels to simplify context.
What this indicator is—and isn’t
This is a session-aware visualization and signal layer focused on sweep-plus-structure behavior. It is not a complete trading system and does not manage orders, risk, or portfolio exposure. Use it with market structure, risk limits, and execution rules that fit your process.
Disclaimer
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.
Do not use this indicator on Heikin-Ashi, Renko, Kagi, Point-and-Figure, or Range charts, as these chart types can produce unrealistic results for signal markers and alerts.
Best regards and happy trading
Chervolino
ATR% Multiple From MA - Overextensions trackingATR% Multiple From MA - Quantifiable Profit Taking Indicator
This overlay indicator identifies overextended price moves by calculating how many ATR% multiples price is away from a moving average, providing objective profit-taking signals.
Formula:
A = ATR% = (ATR / Price) × 100
B = % Gain from MA = ((Price - MA) / MA) × 100
ATR% Multiple = B / A
Signals:
Yellow circle at 7x: Start scaling out partial profits
Red circle at 10x+: Heavily overextended, aggressive profit taking recommended
Stats table: Real-time ATR% Multiple, % Gain from MA, ATR%, and action status
For very volatile markets I usually go for 10x and 15x extension instead of 7x and 10x.
This method normalizes moves across different volatility environments, eliminating emotional decision-making. Historical examples include PLTR, SOFI, TSLA, NVDA which stalled after exceeding 10x.
Customizable Settings:
ATR Length (default: 14)
MA Length (default: 50)
Profit Zone thresholds (7x, 10x)
Toggle circles and MA display
Santhosh ATR Buy/Sell with Consolidation OverlayUse this indicator to filter false signals, if you get signals within consolidation area , then wait for the market to break the consolidation zone to take the entry. Avoid entry within consolidation zones . For better performance use "lookback period:45", "Consolidation Length:2" for consolidation inputs. Feel free to use your inputs to match your strategy again any asset.
Liquidity Sweeps (Improved)this is improved version of liqudity sweep and alert thois is my third attempt
Illuminati Zone🟣 Illuminati Zone — Hidden Power of the 11 PM NZ Candle
The Illuminati Zone reveals the hidden footprints of liquidity and market imbalance formed by the 11 PM New Zealand 15-minute candle — a time when global liquidity transitions between major sessions.
This candle often defines key intraday supply and demand boundaries, serving as a magnet for price and a pivot point for high-probability reversals or breakouts.
🧠 How it works
Automatically detects and marks the 11 PM NZ 15-minute candle each day.
Draws a translucent zone box between its high and low.
Extends two reference lines at +1 × range and –1 × range above and below the zone — ideal for spotting overextensions or liquidity sweeps.
Supports custom lookback, colors, and visual options.
💡 How to use it
Watch how price interacts with the zone — rejection often signals smart-money activity.
Use +1 and –1 levels as overextended zones for potential reversals or breakout retests.
Combine with your own confluence tools or volume analysis for precision entries.
⚙️ Customization Options
Target hour (NZ time)
Days back to display
Zone and line colors
Transparency and visual preferences
🔮 Pro Tip: Pair it with a volume or imbalance indicator for surgical-level precision in identifying where smart money positions are built or released.
My EMA IndicatorMy Absolutely Profitable Indicator
It can be use when ema9 crosses ema100 and so on...
Use it with Volume Oscillator...
Mean Reverting Suite [OmegaTools]Overview
The Mean Reverting Suits (MR Suite) by OmegaTools is an advanced analytical and visualization framework designed to identify directional exhaustion, statistical overextensions, and conditions consistent with mean-reversion dynamics. It integrates three pillars into a single display: a composite momentum-normalized oscillator, a percentile-based extension model with volume contextualization, and a dynamic structural mapping engine built on confirmed pivots. The indicator does not generate signals or prescribe trade actions; it provides objective context so users can evaluate market balance and the likelihood that price is departing from its recent statistical baseline.
Core logic
The composite oscillator blends MFI on two horizons and RSI on HL2, then averages them to produce a stabilized mean-reversion gauge. Candle and bar colors are mapped by a dual gradient centered at 50. Readings above 50 progressively shift from neutral gray toward the bearish accent color to reflect increasing momentum saturation; readings below 50 shift from the bullish accent color toward gray to reflect potential accumulation or temporary undervaluation. This continuous mapping avoids rigid thresholds and conveys the strength and decay of momentum as a smooth spectrum.
The percentile-based extension model measures the persistence of directional bias by tracking how many bars have elapsed since the last opposing condition. These rolling counts are compared to the 80th percentile of their own historical distributions stored in arrays. When a current streak exceeds its respective percentile, the environment is labeled as statistically extended in that direction. Background shading communicates this information and is modulated by relative volume, computed as live volume divided by a blended average of SMA(30) and EMA(11). Higher opacity implies greater liquidity participation during the extension.
The structural mapping module uses confirmed pivot highs and lows at the chosen length to create persistent horizontal levels that extend forward and automatically maintain themselves until price invalidates or refreshes them. These levels represent market memory zones and assist in reading where reactions previously formed. The engine updates in real time, ensuring the framework continuously reflects the prevailing structure.
Standard deviation and z-score overlay
The updated version introduces a mean and dispersion layer. A simple moving average of HL2 over twice the length provides the reference mean. Dispersion is estimated as the moving average of the absolute deviation between close and the mean over five times the length. The z-score is computed as the distance of price from the mean divided by this dispersion proxy. Visual arrows highlight observations where the absolute z-score exceeds two standard deviations, offering a concise view of statistically unusual departures from the local mean. This layer complements the percentile extension model by adding an orthogonal measure of extremity based on distributional distance rather than run length.
Visualization
Candle bodies and borders inherit the oscillator’s gradient color, creating an immediate sense of directional pressure and potential momentum fatigue. The chart background activates when the extension model detects a statistically rare streak, using blue tones for bearish extension and red tones for bullish extension, with intensity scaling by relative volume. Horizontal lines denote active pivot-based levels, automatically extending, truncating, and refreshing as structure evolves. The z-score arrows appear only when deviations exceed the ±2 threshold, keeping the display focused on noteworthy statistical events.
Inputs and configuration
Length controls the sensitivity of all modules. Lower values make the oscillator and pivot detection more reactive; higher values smooth readings and widen structural context. Bullish and Bearish colors are user-selectable to match platform themes or accessibility requirements.
Interpretation guidance
A strong red background indicates an unusually extended bullish run in the presence of meaningful volume; a strong blue background indicates an unusually extended bearish run in the presence of meaningful volume. Candle gradients near deep bearish tones suggest oscillator readings well above 50; gradients near deep bullish tones suggest oscillator readings well below 50. Pivot lines mark the most recently confirmed structural levels that the market has reacted to. Z-score arrows denote points where price has moved beyond approximately two standard deviations of its local mean, signaling statistically uncommon distance rather than directional persistence. None of these elements are directives; they are objective descriptors designed to improve situational awareness.
Advantages
The framework is adaptive by design and self-normalizes to each instrument’s volatility and rhythm through percentile logic and dispersion-based distance. It is volume-aware, visually encoding liquidity pressure so that users can distinguish thin extensions from structurally significant ones. It reduces chart clutter by unifying momentum state, statistical extension, standard deviation distance, and structural levels into a single coherent view. It is asset- and timeframe-agnostic, suitable for intraday through swing horizons across futures, equities, FX, and digital assets.
Usage notes
MR Suite is intended for analytical and educational purposes. It does not provide trading signals, risk parameters, or strategy instructions. Users may employ its context alongside their own methodologies, risk frameworks, and execution rules. The indicator’s value derives from quantifying how unusual a move is, showing how much liquidity supports it, and anchoring that information to evolving structural references, thereby improving the clarity and consistency of discretionary assessment without prescribing actions.
EMA Trend Band with Buy/Sell Signals
## What This Indicator Does
The **EMA Trend Band with Buy/Sell Signals** is a powerful visual trend-following indicator that combines two exponential moving averages (30-period fast EMA and 40-period slow EMA) to identify market direction and generate clear trading signals.
### Core Components
**Dual EMA System**: The indicator uses a fast EMA (30) and slow EMA (40) to track short-term and long-term price momentum simultaneously. The fast EMA reacts quickly to price changes, while the slow EMA filters out market noise and confirms the overall trend
**Color-Coded Trend Band**: Both EMAs change color dynamically based on trend direction - blue when bullish (fast EMA above slow EMA) and pink when bearish (fast EMA below slow EMA). The filled area between the two EMAs creates a visual "trend channel" that makes it easy to identify market direction at a glance.
**Buy/Sell Signal Generation**: When the fast EMA crosses above the slow EMA, a BUY signal appears with a blue label and small triangle marker. When the fast EMA crosses below the slow EMA, a SELL signal appears with a red label and triangle marker.
**Background Highlighting**: The chart background has a subtle blue or red tint matching the current trend, providing additional visual confirmation.
**Built-in Alerts**: Three alert conditions notify you of buy signals, sell signals, or any crossover event, allowing you to monitor multiple charts without watching them constantly.
## How to Use This Indicator Effectively
### Entry Rules
**Long (Buy) Entry**: Enter a long position when you see the blue BUY label appear below a candle, which occurs when the 30 EMA crosses above the 40 EMA. Confirm the signal by ensuring the price is above both EMAs and the trend band has turned blue.
**Short (Sell) Entry**: Enter a short position when you see the red SELL label appear above a candle, which occurs when the 30 EMA crosses below the 40EMA. Confirm the signal by ensuring the price is below both EMAs and the trend band has turned pink.
**Additional Confirmation**: For higher probability trades, wait for the price to close above/below both EMAs before entering, rather than entering on the crossover candle itself. This reduces false signals in choppy markets.
### Trade Management
**Trend Following**: Once in a trade, stay in the position as long as the EMAs maintain their color (blue for longs, pink for shorts). The filled band acts as a dynamic support/resistance zone.
**Exit Strategy**: Exit your long position when the EMAs turn pink (sell signal), or exit your short position when the EMAs turn blue (buy signal). Alternatively, use a trailing stop below/above the fast EMA for tighter risk management.
**Stop Loss Placement**: Place your stop loss below the slow EMA (40) for long positions, or above the slow EMA for short positions. This gives the trade room to breathe while protecting against major reversals.
### Filtering False Signals
**Avoid Choppy Markets**: The indicator works best in trending markets and can generate false signals during sideways consolidation. When both EMAs are flat and price oscillates between them, stay out of the market.
**Combine with Higher Timeframes**: Check the trend on a higher timeframe before taking signals on lower timeframes. For example, if trading on 15-minute charts, ensure the 1-hour chart shows the same trend direction.
**Volume Confirmation**: Use volume to confirm signal strength - stronger volume on crossover candles typically leads to more reliable trends.
## Best Timeframes for Different Trading Styles
### Scalping (1-Minute to 5-Minute Charts)
**Settings**: Keep default 30/40 EMA or adjust to 20/100 for faster signals
**Best for**: Highly volatile cryptocurrencies like BTC, ETH during active trading sessions (morning US/evening Asian overlap)
**Advantages**: Quick signals, multiple trades per day, catches micro-trends
**Disadvantages**: More false signals, requires constant monitoring, high stress
**Recommendation**: Use 5-minute charts with this indicator for crypto scalping - it provides the best balance between signal frequency and reliability.
### Day Trading (15-Minute to 1-Hour Charts)
**Settings**: Default 30/40 works perfectly
**Best for**: Forex pairs (EUR/USD, GBP/USD), major crypto pairs, index futures
**Advantages**: Fewer false signals than lower timeframes, captures intraday trends, good risk-reward ratios
**Disadvantages**: Requires several hours of monitoring, 2-4 trades per day maximum
**Recommendation**: **15-minute and 1-hour charts are the OPTIMAL timeframes for this indicator**. The 1-hour timeframe provides the best balance of signal accuracy and trade frequency for most traders.
### Swing Trading (4-Hour to Daily Charts)
**Settings**: Default 30/100 or extend to 50/200 for stronger trends
**Best for**: Stocks, crypto spot trading, major forex pairs, commodities
**Advantages**: Highest signal reliability, less screen time, captures major moves, lower stress
**Disadvantages**: Fewer trading opportunities, larger stop losses required, slower signals
**Recommendation**: Use 4-hour charts for active swing trading or daily charts for position trading. The 4-hour timeframe is excellent for cryptocurrency swing trading with this indicator.
## Recommended Best Timeframe Overall
### For Cryptocurrency Trading (Your Primary Interest)
**1-Hour Chart**: This is the BEST all-around timeframe for this EMA band indicator when trading crypto on Binance. It provides:
- 2-5 quality signals per week per pair
- Strong trend filtering with minimal false signals
- Manageable stop losses (typically 1-2% of position)
- Good risk-reward ratios (2:1 to 4:1 average)
- Reasonable monitoring requirements (check every few hours)
**Alternative for Active Trading**: 15-minute charts if you want more frequent signals and can monitor markets actively during your trading sessions.
### For Forex Trading
**1-Hour Chart**: Also optimal for EUR/USD and other major pairs during London/New York sessions
### For Stocks
**Daily Chart**: Best for swing trading individual stocks with this indicator
## Pro Tips for Maximum Effectiveness
**Multiple Timeframe Confirmation**: Before taking a 15-minute signal, check that the 1-hour trend band shows the same color. This dramatically increases win rate.
**Trade in the Direction of the Larger Trend**: Use daily charts to identify the major trend, then take only signals in that direction on lower timeframes.
**Avoid Trading During Major News Events**: EMAs can give false signals during high-impact economic announcements as price whipsaws.
**Use with Support/Resistance**: Combine EMA crossovers with key support and resistance levels for high-probability setups.
**Paper Trade First**: Test this indicator on a demo account for at least 20-30 trades before risking real money to understand its behavior on your preferred timeframe and instruments.
Adaptive Trend Breaks Adaptive Trend Breaks
## WHAT IT DOES
This script is a modified and enhanced version of "Trendline Breakouts With Targets" concept by ChartPrime.
Adaptive Trend Breaks (ATB) is a trendline breakout system optimized for scalping liquid futures contracts. The indicator automatically draws dynamic support and resistance trendlines based on pivot points, then generates trade signals when price breaks through these levels with confirmation filters. It includes automated target and stop-loss placement with real-time P&L tracking in dollars.
## HOW IT WORKS
**Trendline Detection Method:**
The indicator uses pivot high/low detection to identify significant price turning points. When a new pivot forms, it calculates the slope between consecutive pivots to draw dynamic trendlines. These lines extend forward based on the established trend angle, creating actionable support and resistance zones.
**Band System:**
Around each trendline, the script creates a "band" using a volatility-adjusted calculation: `ATR(14) * 0.2 * bandwidth multiplier / 2`. This adaptive band accounts for current market conditions - wider during volatile periods, tighter during quiet markets.
**Breakout Logic:**
A breakout signal triggers when:
1. Price closes beyond the trendline + band zone
2. Volume exceeds the 20-period moving average by your set multiplier (default 1.2x)
3. Price is within Regular Trading Hours (9:30-16:00 EST) if session filter enabled
4. Current ATR meets minimum volatility threshold (prevents trading dead markets)
**Target & Stop Calculation:**
Upon breakout confirmation:
- **Entry**: Trendline breach point
- **Target**: Entry ± (bandwidth × target multiplier) - default 8x for quick scalps
- **Stop**: Entry ± (bandwidth × stop multiplier) - default 8x for 1:1 risk/reward
- Multipliers adjust automatically to market volatility through the ATR-based band
**P&L Conversion:**
The script converts point movements to dollars using:
```
Dollar P&L = (Price Points × Contract Point Value × Quantity)
```
For example, a 10-point NQ move with 2 contracts = 10 × $20 × 2 = $400
## HOW TO USE IT
**Setup:**
1. Select your instrument (NQ/ES/YM/RTY) - point values auto-configure
2. Set contract quantity for accurate dollar P&L
3. Choose pivot period (lower = more signals but more noise, default 5 for scalping)
4. Adjust bandwidth multiplier if trendlines are too tight/loose (1-5 range)
**Filters Configuration:**
- **Volume Filter**: Requires breakout volume > moving average × multiplier. Increase multiplier (1.5-2.0) for higher conviction trades
- **Session Filter**: Enable to trade only RTH. Disable for 24-hour trading
- **ATR Filter**: Prevents signals during low volatility. Increase minimum % for more active markets only
**Risk Management:**
- Set target/stop multipliers based on your risk tolerance
- 8x bandwidth = approximately 1:1 risk/reward for most liquid futures
- Enable trailing stops for trend-following approach (moves stop to protect profits)
- Adjust line length to see targets further into the future
**Statistics Table:**
- Choose timeframe to analyze: all-time, today, this week, custom days
- Monitor win rate, profit factor, and net P&L in dollars
- Track long vs short performance separately
- See real-time unrealized P&L on active trades
**Reading Signals:**
- **Green triangle below bar** = Long breakout (resistance broken)
- **Red triangle above bar** = Short breakout (support broken)
- **White dashed line** = Entry price
- **Orange line** = Take profit target with dollar value
- **Red line** = Stop loss with dollar value
- **Green checkmark (✓)** = Target hit, winning trade
- **Red X (✗)** = Stop hit, losing trade
## WHAT IT DOES NOT DO
**Limitations to Understand:**
- Does not predict future trendline formations - it reacts to breakouts after they occur
- Historical trendlines disappear after breakout (not kept on chart for clarity)
- Requires sufficient volatility - may not signal in extremely quiet markets
- Volume filter requires exchange volume data (not available on all symbols)
- Statistics are indicator-based simulations, not actual trading results
- Does not account for slippage, commissions, or order fills
## BEST PRACTICES
**Recommended Settings by Market:**
- **NQ (Nasdaq)**: Default settings work well, consider volume multiplier 1.3-1.5
- **ES (S&P 500)**: Slightly slower, try period 7-8, volume 1.2
- **YM (Dow)**: Lower volatility, reduce bandwidth to 1.5-2
- **RTY (Russell)**: Higher volatility, increase bandwidth to 3-4
**Risk Management:**
- Never risk more than 2-3% of account per trade
- Use contract quantity calculator: Max Risk $ ÷ (Stop Distance × Point Value)
- Start with 1 contract while learning the system
- Backtest your specific timeframe and instrument before live trading
**Optimization Tips:**
- Increase pivot period (7-10) for fewer but higher-quality signals
- Raise volume multiplier (1.5-2.0) in choppy markets
- Lower target/stop multipliers (5-6x) for tighter profit taking
- Use trailing stops in strong trending conditions
- Disable session filter for overnight gaps and Asia session moves
## TECHNICAL DETAILS
**Key Calculations:**
- Pivot Detection: `ta.pivothigh(high, period, period/2)` and `ta.pivotlow(low, period, period/2)`
- Slope Calculation: `(newPivot - oldPivot) / (newTime - oldTime)`
- Adaptive Band: `min(ATR(14) * 0.2, close * 0.002) * multiplier / 2`
- Breakout Confirmation: Price crosses trendline + 10% of band threshold
**Data Requirements:**
- Minimum bars in view: 500 for proper pivot calculation
- Volume data required for volume filter accuracy
- Intraday timeframes recommended (1min - 15min) for scalping
- Works on any timeframe but optimized for fast execution
**Performance Metrics:**
All statistics calculate based on indicator signals:
- Tracks every signal as a trade from entry to TP/SL
- P&L in actual contract dollar values
- Win rate = (Winning trades / Total trades) × 100
- Profit factor = Gross profit / Gross loss
- Separates long/short performance for bias analysis
## IDEAL FOR
- Futures scalpers and day traders
- Traders who prefer visual trendline breakouts
- Those wanting automated TP/SL placement
- Traders tracking performance in dollar terms
- Multiple timeframe analysis (compare 1min vs 5min signals)
## NOT SUITABLE FOR
- Swing trading (targets too close)
- Stocks/forex without modifying point values
- Extremely low timeframes (<30 seconds) - too much noise
- Markets without volume data if using volume filter
- Illiquid contracts (signals may not execute at shown prices)
---
**Settings Summary:**
- Core: Period, bandwidth, extension, trendline style
- Filters: Volume, RTH session, ATR volatility
- Risk: R:R ratio, target/stop multipliers, trailing stop
- Display: Stats table position, size, colors
- Stats: Timeframe selection (all-time to custom days)
**License:** This indicator is published open-source under Mozilla Public License 2.0. You may use and modify the code with proper attribution.
**Disclaimer:** This indicator is for educational purposes. Past performance does not guarantee future results. Always practice proper risk management and test thoroughly before live trading.
---
## CREDITS & ATTRIBUTION
This script builds upon the "Trendline Breakouts With Targets" concept by ChartPrime with significant enhancements:
**Major Improvements Added:**
- **Futures-Specific Calculations**: Automated dollar P&L conversion using actual contract point values (NQ=$20, ES=$50, YM=$5, RTY=$50)
- **Advanced Statistics Engine**: Comprehensive performance tracking with customizable timeframe analysis (today, week, month, custom ranges)
- **Multi-Layer Filtering System**: Volume confirmation, RTH session filter, and ATR volatility filter to reduce false signals
- **Professional Trade Management**: Enhanced visual trade tracking with separate TP/SL lines, dollar value labels, and optional trailing stops
- **Optimized for Scalping**: Faster pivot periods (5 vs 10), tighter bands, and reduced extension bars for quick entries
Original trendline detection methodology by ChartPrime - used with modification under Mozilla Public License 2.0.