FVG Premium [no1x]█ OVERVIEW
This indicator provides a comprehensive toolkit for identifying, visualizing, and tracking Fair Value Gaps (FVGs) across three distinct timeframes (current chart, a user-defined Medium Timeframe - MTF, and a user-defined High Timeframe - HTF). It is designed to offer traders enhanced insight into FVG dynamics through detailed state monitoring (formation, partial fill, full mitigation, midline touch), extensive visual customization for FVG representation, and a rich alert system for timely notifications on FVG-related events.
█ CONCEPTS
This indicator is built upon the core concept of Fair Value Gaps (FVGs) and their significance in price action analysis, offering a multi-layered approach to their detection and interpretation across different timeframes.
Fair Value Gaps (FVGs)
A Fair Value Gap (FVG), also known as an imbalance, represents a range in price delivery where one side of the market (buying or selling) was more aggressive, leaving an inefficiency or an "imbalance" in the price action. This concept is prominently featured within Smart Money Concepts (SMC) and Inner Circle Trader (ICT) methodologies, where such gaps are often interpreted as footprints left by "smart money" due to rapid, forceful price movements. These methodologies suggest that price may later revisit these FVG zones to rebalance a prior inefficiency or to seek liquidity before continuing its path. These gaps are typically identified by a three-bar pattern:
Bullish FVG : This is a three-candle formation where the second candle shows a strong upward move. The FVG is the space created between the high of the first candle (bottom of FVG) and the low of the third candle (top of FVG). This indicates a strong upward impulsive move.
Bearish FVG : This is a three-candle formation where the second candle shows a strong downward move. The FVG is the space created between the low of the first candle (top of FVG) and the high of the third candle (bottom of FVG). This indicates a strong downward impulsive move.
FVGs are often watched by traders as potential areas where price might return to "rebalance" or find support/resistance.
Multi-Timeframe (MTF) Analysis
The indicator extends FVG detection beyond the current chart's timeframe (Low Timeframe - LTF) to two higher user-defined timeframes: Medium Timeframe (MTF) and High Timeframe (HTF). This allows traders to:
Identify FVGs that might be significant on a broader market structure.
Observe how FVGs from different timeframes align or interact.
Gain a more comprehensive perspective on potential support and resistance zones.
FVG State and Lifecycle Management
The indicator actively tracks the lifecycle of each detected FVG:
Formation : The initial identification of an FVG.
Partial Fill (Entry) : When price enters but does not completely pass through the FVG. The indicator updates the "current" top/bottom of the FVG to reflect the filled portion.
Midline (Equilibrium) Touch : When price touches the 50% level of the FVG.
Full Mitigation : When price completely trades through the FVG, effectively "filling" or "rebalancing" the gap. The indicator records the mitigation time.
This state tracking is crucial for understanding how price interacts with these zones.
FVG Classification (Large FVG)
FVGs can be optionally classified as "Large FVGs" (LV) if their size (top to bottom range) exceeds a user-defined multiple of the Average True Range (ATR) for that FVG's timeframe. This helps distinguish FVGs that are significantly larger relative to recent volatility.
Visual Customization and Information Delivery
A key concept is providing extensive control over how FVGs are displayed. This control is achieved through a centralized set of visual parameters within the indicator, allowing users to configure numerous aspects (colors, line styles, visibility of boxes, midlines, mitigation lines, labels, etc.) for each timeframe. Additionally, an on-chart information panel summarizes the nearest unmitigated bullish and bearish FVG levels for each active timeframe, providing a quick glance at key price points.
█ FEATURES
This indicator offers a rich set of features designed to provide a highly customizable and comprehensive Fair Value Gap (FVG) analysis experience. Users can tailor the FVG detection, visual representation, and alerting mechanisms across three distinct timeframes: the current chart (Low Timeframe - LTF), a user-defined Medium Timeframe (MTF), and a user-defined High Timeframe (HTF).
Multi-Timeframe FVG Detection and Display
The core strength of this indicator lies in its ability to identify and display FVGs from not only the current chart's timeframe (LTF) but also from two higher, user-selectable timeframes (MTF and HTF).
Timeframe Selection: Users can specify the exact MTF (e.g., "60", "240") and HTF (e.g., "D", "W") through dedicated inputs in the "MTF (Medium Timeframe)" and "HTF (High Timeframe)" settings groups. The visibility of FVGs from these higher timeframes can be toggled independently using the "Show MTF FVGs" and "Show HTF FVGs" checkboxes.
Consistent Detection Logic: The FVG detection logic, based on the classic three-bar imbalance pattern detailed in the 'Concepts' section, is applied consistently across all selected timeframes (LTF, MTF, HTF)
Timeframe-Specific Visuals: Each timeframe's FVGs (LTF, MTF, HTF) can be customized with unique colors for bullish/bearish states and their mitigated counterparts. This allows for easy visual differentiation of FVGs originating from different market perspectives.
Comprehensive FVG Visualization Options
The indicator provides extensive control over how FVGs are visually represented on the chart for each timeframe (LTF, MTF, HTF).
FVG Boxes:
Visibility: Main FVG boxes can be shown or hidden per timeframe using the "Show FVG Boxes" (for LTF), "Show Boxes" (for MTF/HTF) inputs.
Color Customization: Colors for bullish, bearish, active, and mitigated FVG boxes (including Large FVGs, if classified) are fully customizable for each timeframe.
Box Extension & Length: FVG boxes can either be extended to the right indefinitely ("Extend Boxes Right") or set to a fixed length in bars ("Short Box Length" or "Box Length" equivalent inputs).
Box Labels: Optional labels can display the FVG's timeframe and fill percentage on the box. These labels are configurable for all timeframes (LTF, MTF, and HTF). Please note: If FVGs are positioned very close to each other on the chart, their respective labels may overlap. This can potentially lead to visual clutter, and it is a known behavior in the current version of the indicator.
Box Borders: Visibility, width, style (solid, dashed, dotted), and color of FVG box borders are customizable per timeframe.
Midlines (Equilibrium/EQ):
Visibility: The 50% level (midline or EQ) of FVGs can be shown or hidden for each timeframe.
Style Customization: Width, style, and color of the midline are customizable per timeframe. The indicator tracks if this midline has been touched by price.
Mitigation Lines:
Visibility: Mitigation lines (representing the FVG's opening level that needs to be breached for full mitigation) can be shown or hidden for each timeframe. If shown, these lines are always extended to the right.
Style Customization: Width, style, and color of the mitigation line are customizable per timeframe.
Mitigation Line Labels: Optional price labels can be displayed on mitigation lines, with a customizable horizontal bar offset for positioning. For optimal label placement, the following horizontal bar offsets are recommended: 4 for LTF, 8 for MTF, and 12 for HTF.
Persistence After Mitigation: Users can choose to keep mitigation lines visible even after an FVG is fully mitigated, with a distinct color for such lines. Importantly, this option is only effective if the general setting 'Hide Fully Mitigated FVGs' is disabled, as otherwise, the entire FVG and its lines will be removed upon mitigation.
FVG State Management and Behavior
The indicator tracks and visually responds to changes in FVG states.
Hide Fully Mitigated FVGs: This option, typically found in the indicator's general settings, allows users to automatically remove all visual elements of an FVG from the chart once price has fully mitigated it. This helps maintain chart clarity by focusing on active FVGs.
Partial Fill Visualization: When price enters an FVG, the indicator offers a dynamic visual representation: the portion of the FVG that has been filled is shown as a "mitigated box" (typically with a distinct color), while the original FVG box shrinks to clearly highlight the remaining, unfilled portion. This two-part display provides an immediate visual cue about how much of the FVG's imbalance has been addressed and what potential remains within the gap.
Visual Filtering by ATR Proximity: To help users focus on the most relevant price action, FVGs can be dynamically hidden if they are located further from the current price than a user-defined multiple of the Average True Range (ATR). This behavior is controlled by the "Filter Band Width (ATR Multiple)" input; setting this to zero disables the filter entirely, ensuring all detected FVGs remain visible regardless of their proximity to price.
Alternative Usage Example: Mitigation Lines as Key Support/Resistance Levels
For traders preferring a minimalist chart focused on key Fair Value Gap (FVG) levels, the indicator's visualization settings can be customized to display only FVG mitigation lines. This approach leverages these lines as potential support and resistance zones, reflecting areas where price might revisit to address imbalances.
To configure this view:
Disable FVG Boxes: Turn off "Show FVG Boxes" (for LTF) or "Show Boxes" (for MTF/HTF) for the desired timeframes.
Hide Midlines: Disable the visibility of the 50% FVG Midlines (Equilibrium/EQ).
Ensure Mitigation Lines are Visible: Keep "Mitigation Lines" enabled.
Retain All Mitigation Lines:
Disable the "Hide Fully Mitigated FVGs" option in the general settings.
Enable the feature to "keep mitigation lines visible even after an FVG is fully mitigated". This ensures lines from all FVGs (active or fully mitigated) remain on the chart, which is only effective if "Hide Fully Mitigated FVGs" is disabled.
This setup offers:
A Decluttered Chart: Focuses solely on the FVG opening levels.
Precise S/R Zones: Treats mitigation lines as specific points for potential price reactions.
Historical Level Analysis: Includes lines from past, fully mitigated FVGs for a comprehensive view of significant price levels.
For enhanced usability with this focused view, consider these optional additions:
The on-chart Information Panel can be activated to display a quick summary of the nearest unmitigated FVG levels.
Mitigation Line Labels can also be activated for clear price level identification. A customizable horizontal bar offset is available for positioning these labels; for example, offsets of 4 for LTF, 8 for MTF, and 12 for HTF can be effective.
FVG Classification (Large FVG)
This feature allows for distinguishing FVGs based on their size relative to market volatility.
Enable Classification: Users can enable "Classify FVG (Large FVG)" to identify FVGs that are significantly larger than average.
ATR-Based Threshold: An FVG is classified as "Large" if its height (price range) is greater than or equal to the Average True Range (ATR) of its timeframe multiplied by a user-defined "Large FVG Threshold (ATR Multiple)". The ATR period for this calculation is also configurable.
Dedicated Colors: Large FVGs (both bullish/bearish and active/mitigated) can be assigned unique colors, making them easily distinguishable on the chart.
Panel Icon: Large FVGs are marked with a special icon in the Info Panel.
Information Panel
An on-chart panel provides a quick summary of the nearest unmitigated FVG levels.
Visibility and Position: The panel can be shown/hidden and positioned in any of the nine standard locations on the chart (e.g., Top Right, Middle Center).
Content: It displays the price levels of the nearest unmitigated bullish and bearish FVGs for LTF, MTF (if active), and HTF (if active). It also indicates if these nearest FVGs are Large FVGs (if classification is enabled) using a selectable icon.
Styling: Text size, border color, header background/text colors, default text color, and "N/A" cell background color are customizable.
Highlighting: Background and text colors for the cells displaying the overall nearest bullish and bearish FVG levels (across all active timeframes) can be customized to draw attention to the most proximate FVG.
Comprehensive Alert System
The indicator offers a granular alert system for various FVG-related events, configurable for each timeframe (LTF, MTF, HTF) independently. Users can enable alerts for:
New FVG Formation: Separate alerts for new bullish and new bearish FVG formations.
FVG Entry/Partial Fill: Separate alerts for price entering a bullish FVG or a bearish FVG.
FVG Full Mitigation: Separate alerts for full mitigation of bullish and bearish FVGs.
FVG Midline (EQ) Touch: Separate alerts for price touching the midline of a bullish or bearish FVG.
Alert messages are detailed, providing information such as the timeframe, FVG type (bull/bear, Large FVG), relevant price levels, and timestamps.
█ NOTES
This section provides additional information regarding the indicator's usage, performance considerations, and potential interactions with the TradingView platform. Understanding these points can help users optimize their experience and troubleshoot effectively.
Performance and Resource Management
Maximum FVGs to Track : The "Max FVGs to Track" input (defaulting to 25) limits the number of FVG objects processed for each category (e.g., LTF Bullish, MTF Bearish). Increasing this value significantly can impact performance due to more objects being iterated over and potentially drawn, especially when multiple timeframes are active.
Drawing Object Limits : To manage performance, this script sets its own internal limits on the number of drawing objects it displays. While it allows for up to approximately 500 lines (max_lines_count=500) and 500 labels (max_labels_count=500), the number of FVG boxes is deliberately restricted to a maximum of 150 (max_boxes_count=150). This specific limit for boxes is a key performance consideration: displaying too many boxes can significantly slow down the indicator, and a very high number is often not essential for analysis. Enabling all visual elements for many FVGs across all three timeframes can cause the indicator to reach these internal limits, especially the stricter box limit
Optimization Strategies : To help you manage performance, reduce visual clutter, and avoid exceeding drawing limits when using this indicator, I recommend the following strategies:
Maintain or Lower FVG Tracking Count: The "Max FVGs to Track" input defaults to 25. I find this value generally sufficient for effective analysis and balanced performance. You can keep this default or consider reducing it further if you experience performance issues or prefer a less dense FVG display.
Utilize Proximity Filtering: I suggest activating the "Filter Band Width (ATR Multiple)" option (found under "General Settings") to display only those FVGs closer to the current price. From my experience, a value of 5 for the ATR multiple often provides a good starting point for balanced performance, but you should feel free to adjust this based on market volatility and your specific trading needs.
Hide Fully Mitigated FVGs: I strongly recommend enabling the "Hide Fully Mitigated FVGs" option. This setting automatically removes all visual elements of an FVG from the chart once it has been fully mitigated by price. Doing so significantly reduces the number of active drawing objects, lessens computational load, and helps maintain chart clarity by focusing only on active, relevant FVGs.
Disable FVG Display for Unused Timeframes: If you are not actively monitoring certain higher timeframes (MTF or HTF) for FVG analysis, I advise disabling their display by unchecking "Show MTF FVGs" or "Show HTF FVGs" respectively. This can provide a significant performance boost.
Simplify Visual Elements: For active FVGs, consider hiding less critical visual elements if they are not essential for your specific analysis. This could include box labels, borders, or even entire FVG boxes if, for example, only the mitigation lines are of interest for a particular timeframe.
Settings Changes and Platform Limits : This indicator is comprehensive and involves numerous calculations and drawings. When multiple settings are changed rapidly in quick succession, it is possible, on occasion, for TradingView to issue a "Runtime error: modify_study_limit_exceeding" or similar. This can cause the indicator to temporarily stop updating or display errors.
Recommended Approach : When adjusting settings, it is advisable to wait a brief moment (a few seconds) after each significant change. This allows the indicator to reprocess and update on the chart before another change is made
Error Recovery : Should such a runtime error occur, making a minor, different adjustment in the settings (e.g., toggling a checkbox off and then on again) and waiting briefly will typically allow the indicator to recover and resume correct operation. This behavior is related to platform limitations when handling complex scripts with many inputs and drawing objects.
Multi-Timeframe (MTF/HTF) Data and Behavior
HTF FVG Confirmation is Essential: : For an FVG from a higher timeframe (MTF or HTF) to be identified and displayed on your current chart (LTF), the three-bar pattern forming the FVG on that higher timeframe must consist of fully closed bars. The indicator does not draw speculative FVGs based on incomplete/forming bars from higher timeframes.
Data Retrieval and LTF Processing: The indicator may use techniques like lookahead = barmerge.lookahead_on for timely data retrieval from higher timeframes. However, the actual detection of an FVG occurs after all its constituent bars on the HTF have closed.
Appearance Timing on LTF (1 LTF Candle Delay): As a natural consequence of this, an FVG that is confirmed on an HTF (i.e., its third bar closes) will typically become visible on your LTF chart one LTF bar after its confirmation on the HTF.
Example: Assume an FVG forms on a 30-minute chart at 15:30 (i.e., with the close of the 30-minute bar that covers the 15:00-15:30 period). If you are monitoring this FVG on a 15-minute chart, the indicator will detect this newly formed 30-minute FVG while processing the data for the 15-minute bar that starts at 15:30 and closes at 15:45. Therefore, the 30-minute FVG will become visible on your 15-minute chart at the earliest by 15:45 (i.e., with the close of that relevant 15-minute LTF candle). This means the HTF FVG is reflected on the LTF chart with a delay equivalent to one LTF candle.
FVG Detection and Display Logic
Fair Value Gaps (FVGs) on the current chart timeframe (LTF) are detected based on barstate.isconfirmed. This means the three-bar pattern must be complete with closed bars before an FVG is identified. This confirmation method prevents FVGs from being prematurely identified on the forming bar.
Alerts
Alert Setup : To receive alerts from this indicator, you must first ensure you have enabled the specific alert conditions you are interested in within the indicator's own settings (see 'Comprehensive Alert System' under the 'FEATURES' section). Once configured, open TradingView's 'Create Alert' dialog. In the 'Condition' tab, select this indicator's name, and crucially, choose the 'Any alert() function call' option from the dropdown list. This setup allows the indicator to trigger alerts based on the precise event conditions you have activated in its settings
Alert Frequency : Alerts are designed to trigger once per bar close (alert.freq_once_per_bar_close) for the specific event.
User Interface (UI) Tips
Settings Group Icons: In the indicator settings menu, timeframe-specific groups are marked with star icons for easier navigation: 🌟 for LTF (Current Chart Timeframe), 🌟🌟 for MTF (Medium Timeframe), and 🌟🌟🌟 for HTF (High Timeframe).
Dependent Inputs: Some input settings are dependent on others being enabled. These dependencies are visually indicated in the settings menu using symbols like "↳" (dependent setting on the next line), "⟷" (mutually exclusive inline options), or "➜" (directly dependent inline option).
Settings Layout Overview: The indicator settings are organized into logical groups for ease of use. Key global display controls – such as toggles for MTF FVGs, HTF FVGs (along with their respective timeframe selectors), and the Information Panel – are conveniently located at the very top within the '⚙️ General Settings' group. This placement allows for quick access to frequently adjusted settings. Other sections provide detailed customization options for each timeframe (LTF, MTF, HTF), specific FVG components, and alert configurations.
█ FOR Pine Script® CODERS
This section provides a high-level overview of the FVG Premium indicator's internal architecture, data flow, and the interaction between its various library components. It is intended for Pine Script™ programmers who wish to understand the indicator's design, potentially extend its functionality, or learn from its structure.
System Architecture and Modular Design
The indicator is architected moduarly, leveraging several custom libraries to separate concerns and enhance code organization and reusability. Each library has a distinct responsibility:
FvgTypes: Serves as the foundational data definition layer. It defines core User-Defined Types (UDTs) like fvgObject (for storing all attributes of an FVG) and drawSettings (for visual configurations), along with enumerations like tfType.
CommonUtils: Provides utility functions for common tasks like mapping user string inputs (e.g., "Dashed" for line style) to their corresponding Pine Script™ constants (e.g., line.style_dashed) and formatting timeframe strings for display.
FvgCalculations: Contains the core logic for FVG detection (both LTF and MTF/HTF via requestMultiTFBarData), FVG classification (Large FVGs based on ATR), and checking FVG interactions with price (mitigation, partial fill).
FvgObject: Implements an object-oriented approach by attaching methods to the fvgObject UDT. These methods manage the entire visual lifecycle of an FVG on the chart, including drawing, updating based on state changes (e.g., mitigation), and deleting drawing objects. It's responsible for applying the visual configurations defined in drawSettings.
FvgPanel: Manages the creation and dynamic updates of the on-chart information panel, which displays key FVG levels.
The main indicator script acts as the orchestrator, initializing these libraries, managing user inputs, processing data flow between libraries, and handling the main event loop (bar updates) for FVG state management and alerts.
Core Data Flow and FVG Lifecycle Management
The general data flow and FVG lifecycle can be summarized as follows:
Input Processing: User inputs from the "Settings" dialog are read by the main indicator script. Visual style inputs (colors, line styles, etc.) are consolidated into a types.drawSettings object (defined in FvgTypes). Other inputs (timeframes, filter settings, alert toggles) control the behavior of different modules. CommonUtils assists in mapping some string inputs to Pine constants.
FVG Detection:
For the current chart timeframe (LTF), FvgCalculations.detectFvg() identifies potential FVGs based on bar patterns.
For MTF/HTF, the main indicator script calls FvgCalculations.requestMultiTFBarData() to fetch necessary bar data from higher timeframes, then FvgCalculations.detectMultiTFFvg() identifies FVGs.
Newly detected FVGs are instantiated as types.fvgObject and stored in arrays within the main script. These objects also undergo classification (e.g., Large FVG) by FvgCalculations.
State Update & Interaction: On each bar, the main indicator script iterates through active FVG objects to manage their state based on price interaction:
Initially, the main script calls FvgCalculations.fvgInteractionCheck() to efficiently determine if the current bar's price might be interacting with a given FVG.
If a potential interaction is flagged, the main script then invokes methods directly on the fvgObject instance (e.g., updateMitigation(), updatePartialFill(), checkMidlineTouch(), which are part of FvgObject).
These fvgObject methods are responsible for the detailed condition checking and the actual modification of the FVG's state. For instance, the updateMitigation() and updatePartialFill() methods internally utilize specific helper functions from FvgCalculations (like checkMitigation() and checkPartialMitigation()) to confirm the precise nature of the interaction before updating the fvgObject’s state fields (such as isMitigated, currentTop, currentBottom, or isMidlineTouched).
Visual Rendering:
The FvgObject.updateDrawings() method is called for each fvgObject. This method is central to drawing management; it creates, updates, or deletes chart drawings (boxes, lines, labels) based on the FVG's current state, its prev_* (previous bar state) fields for optimization, and the visual settings passed via the drawSettings object.
Information Panel Update: The main indicator script determines the nearest FVG levels, populates a panelData object (defined in FvgPanelLib), and calls FvgPanel.updatePanel() to refresh the on-chart display.
Alert Generation: Based on the updated FVG states and user-enabled alert settings, the main indicator script constructs and triggers alerts using Pine Script's alert() function."
Key Design Considerations
UDT-Centric Design: The fvgObject UDT is pivotal, acting as a stateful container for all information related to a single FVG. Most operations revolve around creating, updating, or querying these objects.
State Management: To optimize drawing updates and manage FVG lifecycles, fvgObject instances store their previous bar's state (e.g., prevIsVisible, prevCurrentTop). The FvgObject.updateDrawings() method uses this to determine if a redraw is necessary, minimizing redundant drawing calls.
Settings Object: A drawSettings object is populated once (or when inputs change) and passed to drawing functions. This avoids repeatedly reading numerous input() values on every bar or within loops, improving performance.
Dynamic Arrays for FVG Storage: Arrays are used to store collections of fvgObject instances, allowing for dynamic management (adding new FVGs, iterating for updates).
Volatilite
Last Week's APM FX pairs only📖 Description:
This script is designed for precision-focused forex traders who understand the power of volatility measurement. It calculates the Average Price Movement (APM) from the previous week by measuring the full wick-to-wick range (high to low) of each daily candle from Monday to Friday, then averaging them across the five sessions.
🔍 Core Features:
✅ Accurate APM Calculation:
Pulls daily high-low ranges from last week using locked daily timeframe data, ensuring stable and reliable pip range measurements across all chart timeframes.
✅ Auto-Adjusts for Pip Precision:
Detects whether the pair is JPY-based or not, and automatically adjusts the pip multiplier (100 for JPY pairs, 10,000 for all others) to give true pip values.
✅ Visual Display in Clean UI:
The calculated APM is displayed in a non-intrusive, fixed-position table in the top-right corner of the chart — making it ideal for traders who want continuous awareness of recent market behavior without visual clutter.
✅ Timeless on Any Timeframe:
Whether you’re on the 1-minute chart or the daily, the script remains anchored and accurate because it sources raw data from the daily chart internally.
📈 How It Helps Your Trading:
🧠 Volatility Awareness: Know how much a pair typically moves per day based on recent historical behavior — great for range analysis, target setting, or session biasing.
📊 Week-to-Week Comparison: Use it as a benchmark to compare current volatility to last week’s. Great for identifying if the market is expanding, contracting, or stabilizing.
🔗 Perfect for Confluence: APM can serve as a supporting metric when combined with order blocks, liquidity zones, news catalysts, or other volatility-based tools like ATR.
🛠️ Ideal For:
Professional and prop firm traders
Institutional model traders (ICT-style or SMC)
Volatility scalpers and range-based intraday traders
Anyone building a rules-based trading system with data-driven logic
🔐 Clean. Reliable. Focused.
If you value structure, volatility awareness, and pip precision — this tool belongs in your chart workspace.
5-Day APM for Forex PairsThis script calculates the 5-Day Average Pip Movement (APM) for major Forex pairs.
It displays the average daily range (in pips) over the past 5 trading days using true high-low price movement.
The script is optimized for clarity and minimalism — showing a single floating label on the main chart for pairs like GBPUSD, USDJPY, EURUSD, etc.
Automatically adjusts pip calculation for JPY pairs (×100) and other pairs (×10000).
✅ Great for identifying high-volatility vs low-volatility conditions
✅ Clean design with no clutter
✅ Only works on major FX pairs (whitelisted)
Long Explosive V1The “Long Explosive V1” strategy calculates the percentage change in price from the last closing price of the candlestick, so that if it increases by a certain percentage it goes long, but if it decreases by another percentage it sends an exit order, so that the percentage limits above and below the current price function as inherent stop loss and take profit, with the benefit of taking advantage of the volatility of the bull market.
Entries and exits are always at the market and based on percentage changes in the price. Of course, the default configuration of the strategy considers a position with a 5% risk control, modest initial capital and standard commissions, which helps to obtain realistic results and protect the user from unexpectedly controlled potential losses.
It is again emphasized that it is always advisable to adjust the parameters of the strategy well, so that the risk-reward is well controlled.
Arnaud Legoux Trend Aggregator | Lyro RSArnaud Legoux Trend Aggregator
Introduction
Arnaud Legoux Trend Aggregator is a custom-built trend analysis tool that blends classic market oscillators with advanced normalization, advanced math functions and Arnaud Legoux smoothing. Unlike conventional indicators, 𝓐𝓛𝓣𝓐 aggregates market momentum, volatility and trend strength.
Signal Insight
The 𝓐𝓛𝓣𝓐 line visually reflects the aggregated directional bias. A rise above the middle line threshold signals bullish strength, while a drop below the middle line indicates bearish momentum.
Another way to interpret the 𝓐𝓛𝓣𝓐 is through overbought and oversold conditions. When the 𝓐𝓛𝓣𝓐 rises above the +0.7 threshold, it suggests an overbought market and signals a strong uptrend. Conversely, a drop below the -0.7 level indicates an oversold condition and a strong downtrend.
When the oscillator hovers near the zero line, especially within the neutral ±0.3 band, it suggests that no single directional force is dominating—common during consolidation phases or pre-breakout compression.
Real-World Example
Usually 𝓐𝓛𝓣𝓐 is used by following the bar color for simple signals; however, like most indicators there are unique ways to use an indicator. Let’s dive deep into such ways.
The market begins with a green bar color, raising awareness for a potential long setup—but not a direct entry. In this methodology, bar coloring serves as an alert mechanism rather than a strict entry trigger.
The first long position was initiated when the 𝓐𝓛𝓣𝓐 signal line crossed above the +0.3 threshold, suggesting a shift in directional acceleration. This entry coincided with a rising price movement, validating the trade.
As price advanced, the position was exited into cash—not reversed into a short—because the short criteria for this use case are distinct. The exit was prompted by 𝓐𝓛𝓣𝓐 crossing back below the +0.3 level, signaling the potential weakening of the long trend.
Later, as 𝓐𝓛𝓣𝓐 crossed below 0, attention shifted toward short opportunities. A short entry was confirmed when 𝓐𝓛𝓣𝓐 dipped below -0.3, indicating growing downside momentum. The position was eventually closed when 𝓐𝓛𝓣𝓐 crossed back above the -0.3 boundary—signaling a possible deceleration of the bearish move.
This logic was consistently applied in subsequent setups, emphasizing the role of 𝓐𝓛𝓣𝓐’s thresholds in guiding both entries and exits.
Framework
The Arnaud Legoux Trend Aggregator (ALTA) combines multiple technical indicators into a single smoothed signal. It uses RSI, MACD, Bollinger Bands, Stochastic Momentum Index, and ATR.
Each indicator's output is normalized to a common scale to eliminate bias and ensure consistency. These normalized values are then transformed using a hyperbolic tangent function (Tanh).
The final score is refined with a custom Arnaud Legoux Moving Average (ALMA) function, which offers responsive smoothing that adapts quickly to price changes. This results in a clear signal that reacts efficiently to shifting market conditions.
⚠️ WARNING ⚠️: THIS INDICATOR, OR ANY OTHER WE (LYRO RS) PUBLISH, IS NOT FINANCIAL OR INVESTMENT ADVICE. EVERY INDICATOR SHOULD BE COMBINED WITH PRICE ACTION, FUNDAMENTALS, OTHER TECHNICAL ANALYSIS TOOLS & PROPER RISK. MANAGEMENT.
Mandelbrot-Fibonacci Cascade Vortex (MFCV)Mandelbrot-Fibonacci Cascade Vortex (MFCV) - Where Chaos Theory Meets Sacred Geometry
A Revolutionary Synthesis of Fractal Mathematics and Golden Ratio Dynamics
What began as an exploration into Benoit Mandelbrot's fractal market hypothesis and the mysterious appearance of Fibonacci sequences in nature has culminated in a groundbreaking indicator that reveals the hidden mathematical structure underlying market movements. This indicator represents months of research into chaos theory, fractal geometry, and the golden ratio's manifestation in financial markets.
The Theoretical Foundation
Mandelbrot's Fractal Market Hypothesis Traditional efficient market theory assumes normal distributions and random walks. Mandelbrot proved markets are fractal - self-similar patterns repeating across all timeframes with power-law distributions. The MFCV implements this through:
Hurst Exponent Calculation: H = log(R/S) / log(n/2)
Where:
R = Range of cumulative deviations
S = Standard deviation
n = Period length
This measures market memory:
H > 0.5: Trending (persistent) behavior
H = 0.5: Random walk
H < 0.5: Mean-reverting (anti-persistent) behavior
Fractal Dimension: D = 2 - H
This quantifies market complexity, where higher dimensions indicate more chaotic behavior.
Fibonacci Vortex Theory Markets don't move linearly - they spiral. The MFCV reveals these spirals using Fibonacci sequences:
Vortex Calculation: Vortex(n) = Price + sin(bar_index × φ / Fn) × ATR(Fn) × Volume_Factor
Where:
φ = 0.618 (golden ratio)
Fn = Fibonacci number (8, 13, 21, 34, 55)
Volume_Factor = 1 + (Volume/SMA(Volume,50) - 1) × 0.5
This creates oscillating spirals that contract and expand with market energy.
The Volatility Cascade System
Markets exhibit volatility clustering - Mandelbrot's "Noah Effect." The MFCV captures this through cascading volatility bands:
Cascade Level Calculation: Level(i) = ATR(20) × φ^i
Each level represents a different fractal scale, creating a multi-dimensional view of market structure. The golden ratio spacing ensures harmonic resonance between levels.
Implementation Architecture
Core Components:
Fractal Analysis Engine
Calculates Hurst exponent over user-defined periods
Derives fractal dimension for complexity measurement
Identifies market regime (trending/ranging/chaotic)
Fibonacci Vortex Generator
Creates 5 independent spiral oscillators
Each spiral follows a Fibonacci period
Volume amplification creates dynamic response
Cascade Band System
Up to 8 volatility levels
Golden ratio expansion between levels
Dynamic coloring based on fractal state
Confluence Detection
Identifies convergence of vortex and cascade levels
Highlights high-probability reversal zones
Real-time confluence strength calculation
Signal Generation Logic
The MFCV generates two primary signal types:
Fractal Signals: Generated when:
Hurst > 0.65 (strong trend) AND volatility expanding
Hurst < 0.35 (mean reversion) AND RSI < 35
Trend strength > 0.4 AND vortex alignment
Cascade Signals: Triggered by:
RSI > 60 AND price > SMA(50) AND bearish vortex
RSI < 40 AND price < SMA(50) AND bullish vortex
Volatility expansion AND trend strength > 0.3
Both signals implement a 15-bar cooldown to prevent overtrading.
Advanced Input System
Mandelbrot Parameters:
Cascade Levels (3-8):
Controls number of volatility bands
Crypto: 5-7 (high volatility)
Indices: 4-5 (moderate volatility)
Forex: 3-4 (low volatility)
Hurst Period (20-200):
Lookback for fractal calculation
Scalping: 20-50
Day Trading: 50-100
Swing Trading: 100-150
Position Trading: 150-200
Cascade Ratio (1.0-3.0):
Band width multiplier
1.618: Golden ratio (default)
Higher values for trending markets
Lower values for ranging markets
Fractal Memory (21-233):
Fibonacci retracement lookback
Uses Fibonacci numbers for harmonic alignment
Fibonacci Vortex Settings:
Spiral Periods:
Comma-separated Fibonacci sequence
Fast: "5,8,13,21,34" (scalping)
Standard: "8,13,21,34,55" (balanced)
Extended: "13,21,34,55,89" (swing)
Rotation Speed (0.1-2.0):
Controls spiral oscillation frequency
0.618: Golden ratio (balanced)
Higher = more signals, more noise
Lower = smoother, fewer signals
Volume Amplification:
Enables dynamic spiral expansion
Essential for stocks and crypto
Disable for forex (no central volume)
Visual System Architecture
Cascade Bands:
Multi-level volatility envelopes
Gradient coloring from primary to secondary theme
Transparency increases with distance from price
Fill between bands shows fractal structure
Vortex Spirals:
5 Fibonacci-period oscillators
Blue above price (bullish pressure)
Red below price (bearish pressure)
Multiple display styles: Lines, Circles, Dots, Cross
Dynamic Fibonacci Levels:
Auto-updating retracement levels
Smart update logic prevents disruption near levels
Distance-based transparency (closer = more visible)
Updates every 50 bars or on volatility spikes
Confluence Zones:
Highlighted boxes where indicators converge
Stronger confluence = stronger support/resistance
Key areas for reversal trades
Professional Dashboard System
Main Fractal Dashboard: Displays real-time:
Hurst Exponent with market state
Fractal Dimension with complexity level
Volatility Cascade status
Vortex rotation impact
Market regime classification
Signal strength percentage
Active indicator levels
Vortex Metrics Panel: Shows:
Individual spiral deviations
Convergence/divergence metrics
Real-time vortex positioning
Fibonacci period performance
Fractal Metrics Display: Tracks:
Dimension D value
Market complexity rating
Self-similarity strength
Trend quality assessment
Theory Guide Panel: Educational reference showing:
Mandelbrot principles
Fibonacci vortex concepts
Dynamic trading suggestions
Trading Applications
Trend Following:
High Hurst (>0.65) indicates strong trends
Follow cascade band direction
Use vortex spirals for entry timing
Exit when Hurst drops below 0.5
Mean Reversion:
Low Hurst (<0.35) signals reversal potential
Trade toward vortex spiral convergence
Use Fibonacci levels as targets
Tighten stops in chaotic regimes
Breakout Trading:
Monitor cascade band compression
Watch for vortex spiral alignment
Volatility expansion confirms breakouts
Use confluence zones for targets
Risk Management:
Position size based on fractal dimension
Wider stops in high complexity markets
Tighter stops when Hurst is extreme
Scale out at Fibonacci levels
Market-Specific Optimization
Cryptocurrency:
Cascade Levels: 5-7
Hurst Period: 50-100
Rotation Speed: 0.786-1.2
Enable volume amplification
Stock Indices:
Cascade Levels: 4-5
Hurst Period: 80-120
Rotation Speed: 0.5-0.786
Moderate cascade ratio
Forex:
Cascade Levels: 3-4
Hurst Period: 100-150
Rotation Speed: 0.382-0.618
Disable volume amplification
Commodities:
Cascade Levels: 4-6
Hurst Period: 60-100
Rotation Speed: 0.5-1.0
Seasonal adjustment consideration
Innovation and Originality
The MFCV represents several breakthrough innovations:
First Integration of Mandelbrot Fractals with Fibonacci Vortex Theory
Unique synthesis of chaos theory and sacred geometry
Novel application of Hurst exponent to spiral dynamics
Dynamic Volatility Cascade System
Golden ratio-based band expansion
Multi-timeframe fractal analysis
Self-adjusting to market conditions
Volume-Amplified Vortex Spirals
Revolutionary spiral calculation method
Dynamic response to market participation
Multiple Fibonacci period integration
Intelligent Signal Generation
Cooldown system prevents overtrading
Multi-factor confirmation required
Regime-aware signal filtering
Professional Analytics Dashboard
Institutional-grade metrics display
Real-time fractal analysis
Educational integration
Development Journey
Creating the MFCV involved overcoming numerous challenges:
Mathematical Complexity: Implementing Hurst exponent calculations efficiently
Visual Clarity: Displaying multiple indicators without cluttering
Performance Optimization: Managing array operations and calculations
Signal Quality: Balancing sensitivity with reliability
User Experience: Making complex theory accessible
The result is an indicator that brings PhD-level mathematics to practical trading while maintaining visual elegance and usability.
Best Practices and Guidelines
Start Simple: Use default settings initially
Match Timeframe: Adjust parameters to your trading style
Confirm Signals: Never trade MFCV signals in isolation
Respect Regimes: Adapt strategy to market state
Manage Risk: Use fractal dimension for position sizing
Color Themes
Six professional themes included:
Fractal: Balanced blue/purple palette
Golden: Warm Fibonacci-inspired colors
Plasma: Vibrant modern aesthetics
Cosmic: Dark mode optimized
Matrix: Classic green terminal
Fire: Heat map visualization
Disclaimer
This indicator is for educational and research purposes only. It does not constitute financial advice. While the MFCV reveals deep market structure through advanced mathematics, markets remain inherently unpredictable. Past performance does not guarantee future results.
The integration of Mandelbrot's fractal theory with Fibonacci vortex dynamics provides unique market insights, but should be used as part of a comprehensive trading strategy. Always use proper risk management and never risk more than you can afford to lose.
Acknowledgments
Special thanks to Benoit Mandelbrot for revolutionizing our understanding of markets through fractal geometry, and to the ancient mathematicians who discovered the golden ratio's universal significance.
"The geometry of nature is fractal... Markets are fractal too." - Benoit Mandelbrot
Revealing the Hidden Order in Market Chaos Trade with Mathematical Precision. Trade with MFCV.
— Created with passion for the TradingView community
Trade with insight. Trade with anticipation.
— Dskyz , for DAFE Trading Systems
Ensemble Consensus System
The Ensemble Consensus System (ECS) brings a **Random Forest-style ensemble vote** to Pine Script: five orthogonal "expert" strategies each cast a bull/bear vote (+1/-1/0), and only high-confidence consensus moves become signals—dramatically reducing noise while capturing strong directional moves.
## What Makes This Original
ECS is the first Pine Script indicator to implement true machine learning-style ensemble voting. Rather than relying on a single methodology, five independent experts analyze different market dimensions:
• **Trend Expert**: Multi-timeframe EMA alignment analysis
• **Momentum Expert**: RSI/MACD/Stochastic confluence with consistency filters
• **Volume Expert**: Proprietary volume pressure + OBV confirmation
• **Volatility Expert**: Bollinger Band mean reversion opportunities
• **Structure Expert**: Adaptive pivot-based support/resistance detection
## How It Works
The system requires consensus among experts, with an **adaptive threshold** based on market volatility:
| Volatility Regime | ATR/Close | Votes Required |
|-------------------|-----------|----------------|
| Low Volatility | <1% | 2+ |
| Normal Markets | 1-2% | 3+ |
| High Volatility | >2% | 4+ |
This dynamic adjustment prevents overtrading in choppy conditions while maintaining responsiveness during strong trends.
## Key Features
### Signals
• **Visual entry points** with strength percentage (60% = 3/5 experts agree)
• **Adaptive thresholds** that adjust to market conditions
• **Multi-expert consensus** reduces false signals
### Risk Control
• **Dynamic stop-loss/take-profit** based on ATR
• **Regime-adjusted targets** (±50% in volatile markets)
• **Visual SL/TP lines** with exact price labels
### Analytics
• **Real-time vote panel** showing each expert's stance
• **Performance tracking** with win rate and P/L
• **Market regime indicator** (Trending/Ranging/Volatile)
• **Light Mode** for better performance on slower systems
## How to Use
1. **Apply ECS** to a liquid instrument on 15m-4H timeframe (best: 1H)
2. **Wait for signal** - green ▲ for long, red ▼ for short with strength %
3. **Verify votes** - check panel to see which experts agree
4. **Execute trade** using the displayed SL/TP levels
5. **Monitor regime** - be cautious if market regime changes
### Quick Start Settings
• **Standard Trading**: Use defaults (3 votes, adaptive mode ON)
• **Conservative**: Increase to 4 votes minimum
• **Aggressive**: Reduce to 2 votes, tighten stops
## Important Limitations
• **Chart Types**: Not compatible with Renko/Heikin-Ashi
• **Volume Data**: Requires reliable volume (forex pairs may underperform)
• **News Events**: Signals may lag during gaps/major announcements
• **Processing**: Heavy calculations - use Light Mode if needed
## Settings Guide
**Ensemble Controls**
• `Minimum Votes` (default: 3): Base threshold before volatility adjustment
• `Adaptive Mode` (default: ON): Auto-adjusts threshold by market volatility
**Visual Options**
• `Vote Panel`: Live expert voting display
• `Performance Stats`: Win rate and trade tracking
• `Light Mode`: Disables heavy visuals for speed
**Risk Parameters**
• `Stop Multiplier` (default: 2.0): ATR multiple for stop-loss
• `TP Multiplier` (default: 3.0): ATR multiple for take-profit
• `Dynamic TP` (default: ON): Adjusts targets by market regime
## Troubleshooting
**Too few signals?**
→ Lower minimum votes or check if market is ranging
**Indicator running slow?**
→ Enable Light Mode, disable performance tracking
**Weird volume votes?**
→ Verify your symbol has accurate volume data
## Technical Concepts
The ensemble approach mimics **Random Forest algorithms** where multiple decision trees vote on outcomes. By requiring agreement among experts using orthogonal methodologies, ECS filters out signals that would fail under different market lenses. The adaptive threshold addresses fixed-parameter weakness by dynamically adjusting selectivity based on volatility.
• Adaptive pivot lookback for dynamic structure detection
• Safe volume pressure calculation preventing division errors
• Momentum consistency filter reducing choppy false signals
• Unified dashboard merging vote panel + performance stats
• Regime-based dynamic take-profit adjustment
*Educational indicator demonstrating ensemble methods in Pine Script. No guarantee of future performance. Always use proper risk management and position sizing.*
Symbol vs Benchmark Performance & Volatility TableThis tool puts the current symbol’s performance and volatility side-by-side with any benchmark —NASDAQ, S&P 500, NIFTY or a custom index of your choice.
A quick glance shows whether the stock is outperforming, lagging, or just moving with the market.
⸻
Features
• ✅ Returns over 1W, 1M, 3M, 6M, 12M
• 🔄 Benchmark comparison with optional difference row
• ⚡ Volatility snapshot (20D, 60D, or 252D)
• 🎛️ Fully customizable:
• Show/hide rows and timeframes
• Switch between default or custom benchmarks
• Pick position, size, and colors
Built to answer a simple, everyday question — “How’s this really doing compared to the broader market?”
Thanks to @BeeHolder, whose performance table originally inspired this.
Hope it makes your analysis a little easier and quicker.
[RenkoCore] PublicWhen it comes the Renko chart, we all know it has its advantages & disadvantages compared to the candle-stick chart. My aim of this was to alleviate some of the disadvantages by providing some sort of structure on Renko chart. These set of tools may hopefully help your trading journey on Renko chart.
Helpful tips:
a) Enable wicks on your Renko settings, this indicator needs wicks to work.
b) Choose correct size (I recommend traditional size option) for your Renko chart as well as for your instrument.
c) Keep it on 1-second time frame, anything other than that doesn't work on TradingView's Renko. This is important as price will not repaint.
d) If you want to see bigger picture (like 4hr/daily on candle-stick chart), just increase your Renko size, but still keep it on 1-second timeframe.
This toolset includes couple different methods to provide some structures as explained below:
1. 📌 Balance | Price Action Equilibrium Zones
Overview
The Balance is a visual framework designed to evaluate directional bias and internal structure in price action. It measures net bullish/bearish momentum within a configurable rolling window, while highlighting key structural turning points based on multiple custom sensitivity levels. This tool helps traders stay in sync with market rhythm by emphasizing balance, imbalance, and inflection zones.
🔧 How It Works:
Inflection Tiers
Three customizable rounds of pivot-based divergence detection—labeled as 1°, 2°, and 3°—automatically identify regular bullish and regular bearish pivot structures. Though may not be always accurate, these structural signals are intended to keep user's focus to continually reflect emerging internal market shifts.
Balance Limit
Monitors directional bar disparity within a customizable retrospective span. When the net balance exceeds ±50% of the range, the line turns green to suggest strong directional bias. A red fill zone between these thresholds indicates equilibrium or no-trade conditions.
Volatility Based Reversal (Candle Reversal Detector)
This tool scans for extreme price movements relative to local volatility baselines, helping traders detect possible tops and bottoms before major price reversals or pauses. Compares current price action to the lowest recent volatility anchor or if price sharply dips below the highest recent volatility anchor.
🧠 Use Case Recommendations:
Discretionary trading to visually confirm balance and momentum shifts.
Confluence strategies, combining the balance counter with trend indicators or support/resistance levels.
Structure mapping, to highlight exhaustion zones or emerging reversals based on internal divergences.
Avoid using this tool in isolation. It is most effective when combined with broader market context or other confirmation layers.
2. 📌 Primary Level Detection
Overview
This is a precision tool for detecting dynamic price zones where significant market reversals may begin. Using a blend of momentum, price tension, and volatility structure, it identifies potential top and bottom areas — and tracks them with adaptive channel levels that evolve in real time.
🔧 How It Works:
Combines price action, RSI-based bias, and volatility deviation to identify moments when price is overextended.
Reacts only to major changes — reducing false positives in choppy markets.
Levels persist on the chart until a new valid reversal is confirmed, giving you visual structure and actionable areas to work with.
🧠 Use Case Recommendations:
Trading reversals, reversion-to-mean, or liquidity sweeps
Confirming entries from other indicators (like divergence, order blocks, or support/resistance)
Analyzing volatile markets where rapid direction changes are common (e.g., crypto, futures, scalping)
3. 📌 Secondary Level Detection
Overview
This tool highlights where price may be overextended and due for a short-term reversal, based on recent price structure.
🔧 How It Works:
It uses dynamic bar-count and swing conditions to identify potential price turning points after extended directional moves or strong sequence of bars in same direction.
Levels persist on the chart until a new valid reversal is confirmed, giving you visual structure and actionable areas to work with.
🧠 Use Case Recommendations:
Trading reversals, reversion-to-mean, or liquidity sweeps
Confirming entries from other indicators (like divergence, order blocks, or support/resistance)
⚠️ Important Notes:
This indicator does not repaint. All pivots and plots are based on closed candles and verified conditions.
This tool does not provide trade signals. It is a structural analysis tool intended to assist in discretionary decision-making. This indicator is for informational and educational purposes only. Use in combination with your own trading strategy, risk management, and market context. The signals generated do not guarantee outcomes and should not be used in isolation.
It is not intended to be financial advice or a recommendation to buy or sell any security or asset. Trading involves risk. Always do your own research and consult with a licensed financial advisor before making any trading decisions. Past performance is not indicative of future results.
The author is not responsible for any losses incurred from the use of this script.
RSI SwingRadar🧠 Strategy Overview
This long-only strategy combines RSI/MA crossovers with ATR-based risk management, designed for cleaner entries during potential bounce phases — especially tuned for assets like XMR/USDT.
🔍 Core Logic:
- RSI Crossover: Entry occurs when the 14-period RSI crosses above its 14-period SMA, signaling a potential shift in momentum.
- Oversold Filter: The RSI must have been below a user-defined oversold threshold (default: 35) on the previous candle, filtering for bounce setups after a pullback.
- ATR-Based Stop/Target: Stop-loss is placed below the low by a user-adjustable ATR multiplier (default: 0.5×). Take-profit is calculated with a Risk:Reward multiplier (default: 4×).
These elements work in tandem — RSI crossovers give momentum confirmation, oversold filtering adds context, and ATR-based exits adapt to volatility, creating a compact yet responsive strategy.
📉 Visuals:
- Dynamic Bands: The chart displays the active stop-loss, entry price, and take-profit as colored bands for easy visual tracking.
- Clean Overlay: Designed with simplicity — only confirmed setups are shown, keeping noise low.
✅ Suggested Use:
- Works best on XMR/USDT or similarly trending assets.
- Best suited for pullback entries during broader uptrends.
- Adjustable for different volatility conditions and asset behaviors.
⚠️ Disclaimer
- This strategy is for educational and research purposes only.
- It does not guarantee profitability in any market.
- Always backtest, forward-test, and understand your own risk tolerance before using any
strategy in a live environment.
- Past performance is not indicative of future results.
- This script is not financial advice.
Alex Scalper with Volatility CheckAlex Scalper with Volatility Check - Script Description
This Pine Script indicator is a comprehensive scalping strategy designed for short-term trading with built-in risk management and volatility filtering.
Key Features:
📊 Core Strategy:
Uses VWAP (Volume Weighted Average Price) as the primary trend filter
Employs Stochastic oscillator for entry timing (oversold/overbought conditions)
Generates buy signals when price is above VWAP with stochastic momentum
Generates sell signals when price is below VWAP with stochastic reversal
🛡️ Risk Management:
Volatility Protection: Automatically pauses trading during high volatility periods using ATR and Bollinger Band width analysis
Multi-Target System: Three take-profit levels (10, 15, 25 points) for progressive profit-taking
Fixed Stop Loss: 20-point stop loss protection
Position Sizing: Dynamic lot size adjustment based on win/loss performance
⏰ Trading Hours:
Restricted to US market hours (9:30-11:30 AM and 2:00-4:00 PM EST)
Prevents trading during low-liquidity periods
🔔 Alert System:
Real-time buy/sell alerts with complete trade information
Includes entry price, stop loss, take profit levels, and position size
Ready for automated trading integration
📈 Visual Elements:
Green triangles for buy signals below price bars
Red triangles for sell signals above price bars
Orange volatility warning labels during high-risk periods
This script is ideal for traders seeking a systematic approach to scalping with built-in protection against volatile market conditions.
CAFX Liquidity Pro V1CAFX Liquidity Pro Indicator
Precision Engineered for Smart Profit-Taking
The CAFX Liquidity Pro Indicator is a powerful trading tool designed to help traders pinpoint high-probability liquidity zones, making it ideal for setting accurate and strategic take profit levels. By identifying where institutional interest is likely to reside, this indicator highlights the areas where price is most likely to react, reverse, or pause—giving you the edge in locking in profits before the market shifts.
Whether you're scalping, day trading, or swing trading, the CAFX Liquidity Pro provides clear visual cues that simplify your decision-making process and enhance your trade management. With a focus on precision and reliability, it helps you avoid emotional exits and instead base your take profits on real market behavior and liquidity dynamics.
Use CAFX Liquidity Pro to stay one step ahead—because knowing where to exit is just as important as knowing when to enter.
Sri_Momentum Burst Histogram📝 Description :
🌀 Sri_Momentum Burst Histogram — A Custom Momentum and Volatility Fusion Tool
The Sri_Momentum Burst Histogram is a unique technical analysis tool designed to visualize sudden changes in price momentum in the form of a dynamic, color-coded histogram. This indicator helps traders identify trend accelerations, early momentum shifts, and potential exhaustion in real time.
By combining a MACD-like momentum engine with a volatility-sensitive Bollinger Band range, this script offers an enhanced view of market bursts — moments where momentum "pops" beyond typical ranges. The result is a refined perspective on market sentiment, helping traders to anticipate reversals, follow breakouts, and assess the relative strength of ongoing trends.
🧠 Core Methodology
The indicator calculates the difference between a fast and slow EMA (Exponential Moving Average), similar to a MACD histogram.
This difference is then compared across candles to gauge the rate of change in momentum — referred to here as a “momentum burst.”
A sensitivity multiplier allows you to scale the response based on your preferred timeframe and trading style.
A volatility band, derived from Bollinger Band logic, is used to frame the relative intensity of the momentum change.
The histogram is divided into two parts:
Green/Lime Bars represent increasing and decreasing bullish momentum.
Red/Orange Bars represent increasing and decreasing bearish momentum.
⚙️ Customizable Inputs
Momentum Sensitivity: Adjust the responsiveness of the burst detection mechanism.
Short EMA Period: Sets the lookback period for the fast EMA.
Long EMA Period: Sets the lookback period for the slow EMA.
Volatility Band Length: Controls the length used for Bollinger Band calculations.
Band Std Dev Multiplier: Adjusts how wide the volatility range should be, based on price dispersion.
📈 How to Use It
Use the green/red histogram bars to visually gauge momentum strength and direction.
Watch for transitions in color intensity (e.g., green to lime, red to orange) as early warning signs of trend exhaustion or reversal.
Combine with other indicators like RSI, MACD, ADX, or volume profiles to confirm entry/exit points.
Useful in both trending and ranging markets, especially on lower timeframes for scalping or intraday setups.
✅ Key Features
Easy-to-read histogram with intuitive color coding.
Fully customizable settings for fine-tuned signal control.
Can be used on any asset class — stocks, forex, crypto, commodities.
Optimized for real-time use with minimal lag.
🔐 This script is an original creation, developed independently by adapting publicly known mathematical concepts into a unique visualization tool. All function and variable names have been customized for originality and compliance with TradingView’s publishing and community standards.
💡 Developed by: @venkat_27
🧩 For educational purposes only — not financial advice.
Dynamic Range Filter with Trend Candlesticks (Zeiierman)█ Overview
Dynamic Range Filter with Trend Candlesticks (Zeiierman) is a volatility-responsive trend engine that adapts in real-time to market structure, offering a clean and intelligent visualization of directional bias. It blends dynamic range calculation with customizable smoothing techniques and layered trend confirmation logic, making it ideal for traders who rely on clear trend direction, structural range analysis, and momentum-based candlestick signals.
By measuring scaled volatility over configurable lengths and applying advanced moving average techniques, this indicator filters out market noise while preserving true directional intent. Complementing this, a dual-trend system (range-based and candle-based) enhances clarity and responsiveness, particularly during shifting market conditions.
█ How It Works
⚪ Scaled Volatility Band Calculation
At the core lies a volatility engine that constructs adaptive range bands around price using smoothed high/low calculations. The bands are dynamically adjusted using:
High/Low Smoothing – Applies a moving average to the raw high and low data before calculating the range.
Scaled Range Volatility – A 2.618 multiplier scales the distance between smoothed highs and lows, forming a responsive volatility envelope.
Band Multiplier – Controls how wide the upper/lower range bands extend from the mean.
This filtering process minimizes false signals and highlights only structurally meaningful moves.
⚪ Multi-Type Smoothing Engine
Users can choose from a wide array of smoothing algorithms for trend construction, including:
HMA (default), SMA, EMA, RMA
KAMA – Adapts to market volatility using efficiency ratios.
VIDYA – Momentum-sensitive smoothing using CMO logic.
FRAMA – Dynamically adjusts to fractal dimension in price.
Super Smoother – Ideal for eliminating aliasing in range signals.
This provides the trader with fine-tuned control over reactivity vs. smoothness.
⚪ Trend Detection (Dual Engine)
The indicator includes two independent trend tracking systems:
Main Trend Filter – Based on adaptive volatility band shifts.
Candle Trend Filter – A second-tier confirmation using smoothed candle data, ideal for directional candles and confirmation entries.
█ How to Use
⚪ Trend Confirmation
Use the Trend Line and colored candlesticks for high-probability entries in the trend direction. The more trend layers that align, the higher the confidence.
⚪ Reversal Zones
When the price reaches the outer bands or fails to break them, look for candle color shifts or a crossover in the range to anticipate possible reversals or consolidations.
█ Settings
Scaled Volatility Length – Controls the lookback used to stabilize the base volatility band.
MA Type & Length – Choose and fine-tune the smoothing method (HMA, EMA, KAMA, etc.)
High/Low Smoother – Pre-smoothing for structural high/low banding.
Band Multiplier – Adjusts the width of the dynamic bands.
Trend Length (Candles) – Length used for candle-based trend confirmation.
-----------------
Disclaimer
The content provided in my scripts, indicators, ideas, algorithms, and systems is for educational and informational purposes only. It does not constitute financial advice, investment recommendations, or a solicitation to buy or sell any financial instruments. I will not accept liability for any loss or damage, including without limitation any loss of profit, which may arise directly or indirectly from the use of or reliance on such information.
All investments involve risk, and the past performance of a security, industry, sector, market, financial product, trading strategy, backtest, or individual's trading does not guarantee future results or returns. Investors are fully responsible for any investment decisions they make. Such decisions should be based solely on an evaluation of their financial circumstances, investment objectives, risk tolerance, and liquidity needs.
Trend Surge with Pullback FilterTrend Surge with Pullback Filter
Overview
Trend Surge with Pullback Filter is a price action-based strategy designed to enter strong trends not at the breakout, but at the first controlled pullback after a surge. It filters out noise by requiring momentum confirmation and low volatility conditions, aiming for better entry prices and reduced risk exposure.
How It Works
A strong upward trend is identified when the Rate of Change (ROC) exceeds a defined percentage (e.g., 2%).
Instead of jumping into the trend immediately, the strategy waits for a pullback: the price must drop at least 1% below its recent high (over the past 3 candles).
A low volatility environment is also required for entry — measured using ATR being below its 20-period average multiplied by a safety factor.
If all three conditions are met (trend + pullback + quiet volatility), the system enters a long position.
The trade is managed using a dynamic ATR-based stop-loss and a take-profit at 2x ATR.
An automatic exit occurs after 30 bars if neither SL nor TP is hit.
Key Features
- Momentum-triggered trend detection via ROC
- Smart pullback filter avoids overbought entries
- Volatility-based filter to eliminate noise and choppy conditions
- Dynamic risk-reward ratio with ATR-driven exit logic
- Time-limited exposure using bar-based exit
Parameter Explanation
ROC Length (10): Looks for short-term price surges
ROC Threshold (2.0%): Trend is considered valid if price increased more than 2%
Pullback Lookback (3): Checks last 3 candles for price retracement
Minimum Pullback % (1.0%): Entry only if price pulled back at least 1%
ATR Length (14): Measures current volatility
Low Volatility Multiplier (1.2): ATR must be below this multiple of its 20-period average
Risk-Reward (2.0): Target is set at 2x the stop-loss distance
Max Bars (30): Trade is closed automatically after 30 bars
Originality Statement
This strategy doesn’t enter at the trend start, unlike many momentum bots. Instead, it waits for the first market hesitation — a minor pullback under low volatility — before entering. This logic mimics how real traders often wait for a better entry after a breakout, avoiding emotional overbought buys. The combined use of ROC, dynamic pullback detection, and ATR-based environment filters makes it both practical and original for real-world trading.
Disclaimer
This strategy is intended for educational and research purposes. Backtest thoroughly and understand the logic before using with real capital.
AsturRiskPanelIndicator Summary
ATR Engine
Length & Smoothing: Choose how many bars to use (default 14) and the smoothing method (RMA/SMA/EMA/WMA).
Median ATR: Computes a rolling median of ATR over a user-defined look-back (default 14) to derive a “scalp” target.
Scalp Target
Automatically set at ½ × median ATR, snapped to the nearest tick.
Optional rounding to whole points for simplicity.
Stop Calculation
ATR Multiplier: Scales current ATR by a user input (default 1.5) to produce your stop distance in points (and ticks when appropriate).
Distortion Handling: Switches between point-only and point + tick displays based on contract specifications.
Risk & Sizing
Risk % of account per trade (default 2 %).
Calculates dollar risk per contract and optimal contract count.
Displays all metrics (scalp, stop, risk/contract, max contracts, max risk, account size) in a customizable on-chart table.
ATR-Based Stop Placement Guidelines
Trade Context ATR Multiplier Notes
Tight Range Entry 1.0 × ATR High-conviction, precise entries. Expect more shake-outs.
Standard Trend Entry 1.5 × ATR Balanced for H2/L2, MTR, DT/DB entries.
Breakouts/Microchannels 2.0 × ATR Wide stops through chop—Brooks-style breathing room.
How to Use
Select ATR Settings
Pick an ATR length (e.g. 14) and smoothing (RMA for stability).
Adjust the median length if you want a faster/slower scalp line.
Align Multiplier with Your Setup
For tight-range entries, set ATR Multiplier ≈ 1.0.
For standard trend trades, leave at 1.5.
For breakout/pullback setups, increase to 2.0 or more.
Customize Risk Parameters
Enter your account size and desired risk % per trade (e.g. 2 %).
The table auto-calculates how many contracts you can take.
Read the On-Chart Table
Scalp shows your intraday target.
Stop gives Brooks-style stop distance in points (and ticks).
Risk/Contract is the dollar risk per contract.
Max Contracts tells you maximum position size.
Max Risk confirms total dollar exposure.
Visual Confirmation
Place your entry, then eyeball the scalp and stop levels against chart structure (e.g. swing highs/lows).
Adjust the ATR multiplier if market context shifts (e.g. volatility spikes).
By blending this sizing panel with contextual ATR multipliers, you’ll consistently give your trades the right amount of “breathing room” while keeping risk in check.
Ergodic Market Divergence (EMD)Ergodic Market Divergence (EMD)
Bridging Statistical Physics and Market Dynamics Through Ensemble Analysis
The Revolutionary Concept: When Physics Meets Trading
After months of research into ergodic theory—a fundamental principle in statistical mechanics—I've developed a trading system that identifies when markets transition between predictable and unpredictable states. This indicator doesn't just follow price; it analyzes whether current market behavior will persist or revert, giving traders a scientific edge in timing entries and exits.
The Core Innovation: Ergodic Theory Applied to Markets
What Makes Markets Ergodic or Non-Ergodic?
In statistical physics, ergodicity determines whether a system's future resembles its past. Applied to trading:
Ergodic Markets (Mean-Reverting)
- Time averages equal ensemble averages
- Historical patterns repeat reliably
- Price oscillates around equilibrium
- Traditional indicators work well
Non-Ergodic Markets (Trending)
- Path dependency dominates
- History doesn't predict future
- Price creates new equilibrium levels
- Momentum strategies excel
The Mathematical Framework
The Ergodic Score combines three critical divergences:
Ergodic Score = (Price Divergence × Market Stress + Return Divergence × 1000 + Volatility Divergence × 50) / 3
Where:
Price Divergence: How far current price deviates from market consensus
Return Divergence: Momentum differential between instrument and market
Volatility Divergence: Volatility regime misalignment
Market Stress: Adaptive multiplier based on current conditions
The Ensemble Analysis Revolution
Beyond Single-Instrument Analysis
Traditional indicators analyze one chart in isolation. EMD monitors multiple correlated markets simultaneously (SPY, QQQ, IWM, DIA) to detect systemic regime changes. This ensemble approach:
Reveals Hidden Divergences: Individual stocks may diverge from market consensus before major moves
Filters False Signals: Requires broader market confirmation
Identifies Regime Shifts: Detects when entire market structure changes
Provides Context: Shows if moves are isolated or systemic
Dynamic Threshold Adaptation
Unlike fixed-threshold systems, EMD's boundaries evolve with market conditions:
Base Threshold = SMA(Ergodic Score, Lookback × 3)
Adaptive Component = StDev(Ergodic Score, Lookback × 2) × Sensitivity
Final Threshold = Smoothed(Base + Adaptive)
This creates context-aware signals that remain effective across different market environments.
The Confidence Engine: Know Your Signal Quality
Multi-Factor Confidence Scoring
Every signal receives a confidence score based on:
Signal Clarity (0-35%): How decisively the ergodic threshold is crossed
Momentum Strength (0-25%): Rate of ergodic change
Volatility Alignment (0-20%): Whether volatility supports the signal
Market Quality (0-20%): Price convergence and path dependency factors
Real-Time Confidence Updates
The Live Confidence metric continuously updates, showing:
- Current opportunity quality
- Market state clarity
- Historical performance influence
- Signal recency boost
- Visual Intelligence System
Adaptive Ergodic Field Bands
Dynamic bands that expand and contract based on market state:
Primary Color: Ergodic state (mean-reverting)
Danger Color: Non-ergodic state (trending)
Band Width: Expected price movement range
Squeeze Indicators: Volatility compression warnings
Quantum Wave Ribbons
Triple EMA system (8, 21, 55) revealing market flow:
Compressed Ribbons: Consolidation imminent
Expanding Ribbons: Directional move developing
Color Coding: Matches current ergodic state
Phase Transition Signals
Clear entry/exit markers at regime changes:
Bull Signals: Ergodic restoration (mean reversion opportunity)
Bear Signals: Ergodic break (trend following opportunity)
Confidence Labels: Percentage showing signal quality
Visual Intensity: Stronger signals = deeper colors
Professional Dashboard Suite
Main Analytics Panel (Top Right)
Market State Monitor
- Current regime (Ergodic/Non-Ergodic)
- Ergodic score with threshold
- Path dependency strength
- Quantum coherence percentage
Divergence Metrics
- Price divergence with severity
- Volatility regime classification
- Strategy mode recommendation
- Signal strength indicator
Live Intelligence
- Real-time confidence score
- Color-coded risk levels
- Dynamic strategy suggestions
Performance Tracking (Left Panel)
Signal Analytics
- Total historical signals
- Win rate with W/L breakdown
- Current streak tracking
- Closed trade counter
Regime Analysis
- Current market behavior
- Bars since last signal
- Recommended actions
- Average confidence trends
Strategy Command Center (Bottom Right)
Adaptive Recommendations
- Active strategy mode
- Primary approach (mean reversion/momentum)
- Suggested indicators ("weapons")
- Entry/exit methodology
- Risk management guidance
- Comprehensive Input Guide
Core Algorithm Parameters
Analysis Period (10-100 bars)
Scalping (10-15): Ultra-responsive, more signals, higher noise
Day Trading (20-30): Balanced sensitivity and stability
Swing Trading (40-100): Smooth signals, major moves only Default: 20 - optimal for most timeframes
Divergence Threshold (0.5-5.0)
Hair Trigger (0.5-1.0): Catches every wiggle, many false signals
Balanced (1.5-2.5): Good signal-to-noise ratio
Conservative (3.0-5.0): Only extreme divergences Default: 1.5 - best risk/reward balance
Path Memory (20-200 bars)
Short Memory (20-50): Recent behavior focus, quick adaptation
Medium Memory (50-100): Balanced historical context
Long Memory (100-200): Emphasizes established patterns Default: 50 - captures sufficient history without lag
Signal Spacing (5-50 bars)
Aggressive (5-10): Allows rapid-fire signals
Normal (15-25): Prevents clustering, maintains flow
Conservative (30-50): Major setups only Default: 15 - optimal trade frequency
Ensemble Configuration
Select markets for consensus analysis:
SPY: Broad market sentiment
QQQ: Technology leadership
IWM: Small-cap risk appetite
DIA: Blue-chip stability
More instruments = stronger consensus but potentially diluted signals
Visual Customization
Color Themes (6 professional options):
Quantum: Cyan/Pink - Modern trading aesthetic
Matrix: Green/Red - Classic terminal look
Heat: Blue/Red - Temperature metaphor
Neon: Cyan/Magenta - High contrast
Ocean: Turquoise/Coral - Calming palette
Sunset: Red-orange/Teal - Warm gradients
Display Controls:
- Toggle each visual component
- Adjust transparency levels
- Scale dashboard text
- Show/hide confidence scores
- Trading Strategies by Market State
- Ergodic State Strategy (Primary Color Bands)
Market Characteristics
- Price oscillates predictably
- Support/resistance hold
- Volume patterns repeat
- Mean reversion dominates
Optimal Approach
Entry: Fade moves at band extremes
Target: Middle band (equilibrium)
Stop: Just beyond outer bands
Size: Full confidence-based position
Recommended Tools
- RSI for oversold/overbought
- Bollinger Bands for extremes
- Volume profile for levels
- Non-Ergodic State Strategy (Danger Color Bands)
Market Characteristics
- Price trends persistently
- Levels break decisively
- Volume confirms direction
- Momentum accelerates
Optimal Approach
Entry: Breakout from bands
Target: Trail with expanding bands
Stop: Inside opposite band
Size: Scale in with trend
Recommended Tools
- Moving average alignment
- ADX for trend strength
- MACD for momentum
- Advanced Features Explained
Quantum Coherence Metric
Measures phase alignment between individual and ensemble behavior:
80-100%: Perfect sync - strong mean reversion setup
50-80%: Moderate alignment - mixed signals
0-50%: Decoherence - trending behavior likely
Path Dependency Analysis
Quantifies how much history influences current price:
Low (<30%): Technical patterns reliable
Medium (30-50%): Mixed influences
High (>50%): Fundamental shift occurring
Volatility Regime Classification
Contextualizes current volatility:
Normal: Standard strategies apply
Elevated: Widen stops, reduce size
Extreme: Defensive mode required
Signal Strength Indicator
Real-time opportunity quality:
- Distance from threshold
- Momentum acceleration
- Cross-validation factors
Risk Management Framework
Position Sizing by Confidence
90%+ confidence = 100% position size
70-90% confidence = 75% position size
50-70% confidence = 50% position size
<50% confidence = 25% or skip
Dynamic Stop Placement
Ergodic State: ATR × 1.0 from entry
Non-Ergodic State: ATR × 2.0 from entry
Volatility Adjustment: Multiply by current regime
Multi-Timeframe Alignment
- Check higher timeframe regime
- Confirm ensemble consensus
- Verify volume participation
- Align with major levels
What Makes EMD Unique
Original Contributions
First Ergodic Theory Trading Application: Transforms abstract physics into practical signals
Ensemble Market Analysis: Revolutionary multi-market divergence system
Adaptive Confidence Engine: Institutional-grade signal quality metrics
Quantum Coherence: Novel market alignment measurement
Smart Signal Management: Prevents clustering while maintaining responsiveness
Technical Innovations
Dynamic Threshold Adaptation: Self-adjusting sensitivity
Path Memory Integration: Historical dependency weighting
Stress-Adjusted Scoring: Market condition normalization
Real-Time Performance Tracking: Built-in strategy analytics
Optimization Guidelines
By Timeframe
Scalping (1-5 min)
Period: 10-15
Threshold: 0.5-1.0
Memory: 20-30
Spacing: 5-10
Day Trading (5-60 min)
Period: 20-30
Threshold: 1.5-2.5
Memory: 40-60
Spacing: 15-20
Swing Trading (1H-1D)
Period: 40-60
Threshold: 2.0-3.0
Memory: 80-120
Spacing: 25-35
Position Trading (1D-1W)
Period: 60-100
Threshold: 3.0-5.0
Memory: 100-200
Spacing: 40-50
By Market Condition
Trending Markets
- Increase threshold
- Extend memory
- Focus on breaks
Ranging Markets
- Decrease threshold
- Shorten memory
- Focus on restores
Volatile Markets
- Increase spacing
- Raise confidence requirement
- Reduce position size
- Integration with Other Analysis
- Complementary Indicators
For Ergodic States
- RSI divergences
- Bollinger Band squeezes
- Volume profile nodes
- Support/resistance levels
For Non-Ergodic States
- Moving average ribbons
- Trend strength indicators
- Momentum oscillators
- Breakout patterns
- Fundamental Alignment
- Check economic calendar
- Monitor sector rotation
- Consider market themes
- Evaluate risk sentiment
Troubleshooting Guide
Too Many Signals:
- Increase threshold
- Extend signal spacing
- Raise confidence minimum
Missing Opportunities
- Decrease threshold
- Reduce signal spacing
- Check ensemble settings
Poor Win Rate
- Verify timeframe alignment
- Confirm volume participation
- Review risk management
Disclaimer
This indicator is for educational and informational purposes only. It does not constitute financial advice. Trading involves substantial risk of loss and is not suitable for all investors. Past performance does not guarantee future results.
The ergodic framework provides unique market insights but cannot predict future price movements with certainty. Always use proper risk management, conduct your own analysis, and never risk more than you can afford to lose.
This tool should complement, not replace, comprehensive trading strategies and sound judgment. Markets remain inherently unpredictable despite advanced analysis techniques.
Transform market chaos into trading clarity with Ergodic Market Divergence.
Created with passion for the TradingView community
Trade with insight. Trade with anticipation.
— Dskyz , for DAFE Trading Systems
Navier-Cauchy Market Elasticity [PhenLabs]📊 Navier-Cauchy Market Elasticity
Version: PineScript™ v6
📌 Description
The Navier-Cauchy Market Elasticity (NCME) indicator takes a new step into technical analysis by applying materials science principles to financial markets. Similar to last weeks release utilizing Navier-Stokes dynamics equation this indicator focuses on the elastic interaction of virtual “solids”. Based on elasticity theory used in engineering, NCME treats price movements as material deformations, calculating market stress and strain using proven physics formulas. This unique approach reveals hidden market dynamics invisible to traditional indicators.
By implementing Lamé parameters and Young’s modulus calculations, NCME identifies critical stress points where markets exhibit extreme tension or compression. These zones often precede significant price movements, providing traders with advanced warning of potential reversals or breakouts.
🚀 Points of Innovation
• First indicator to apply Navier-Cauchy elasticity equations to market analysis
• Dynamic stress tensor calculations adapted for one-dimensional price movements
• Real-time Poisson ratio adjustments for market-specific elasticity modeling
• Gradient-based coloring system that visualizes stress intensity variations
• Advanced display modes with customizable visual layers for professional analysis
• Physics-based volatility normalization using Young’s modulus principles
🔧 Core Components
• Elasticity Engine: Calculates market elasticity using volatility-adjusted Young’s modulus
• Stress Tensor System: Computes normal stress values using Lamé parameters (λ and μ)
• Strain Measurement: Tracks price displacement relative to historical movement patterns
• Dynamic Bands: Statistical deviation bands that adapt to market elasticity changes
🔥 Key Features
• Four Display Modes: Choose between Histogram, Line, Both, or Advanced visualization
• Five Color Schemes: Modern, Classic, Neon, Ocean, and Fire themes with gradient support
• Background Stress Zones: Five distinct zones showing market stress levels visually
• Customizable Smoothing: Adjustable period for noise reduction without signal lag
• Extreme Value Detection: Automatic marking of critical stress points with visual alerts
• Advanced Mode Options: Glow effects, momentum ribbon, and extreme dots toggles
🎨 Visualization
• Stress Line: Primary indicator showing real-time market stress with gradient coloring
• Histogram Bars: Normalized stress values with dynamic opacity based on magnitude
• Reference Bands: Primary and secondary deviation bands for context
• Background Zones: Color-coded regions indicating stress intensity levels
• Signal Dots: Markers appearing at extreme stress points for easy identification
📖 Usage Guidelines
Display Settings
• Display Style
○ Default: Advanced
○ Options: Histogram, Line, Both, Advanced
○ Description: Controls visual presentation mode. Advanced offers the most comprehensive view with multiple layers
• Smoothing Period
○ Default: 3
○ Range: 1-50
○ Description: Moving average periods for noise reduction. Higher values create smoother signals but may introduce lag
Elasticity Parameters
• Displacement Length
○ Default: 14
○ Range: 1-100
○ Description: Lookback period for strain calculation. Shorter periods detect rapid stress changes
• Elasticity Length
○ Default: 30
○ Range: 1-200
○ Description: Period for volatility-based elasticity calculation. Longer periods provide more stable readings
• Poisson Ratio
○ Default: 0.3
○ Range: 0-0.5
○ Description: Theoretical elasticity ratio. 0.3 works well for most markets; adjust for specific asset classes
✅ Best Use Cases
• Identifying market tension before major breakouts
• Detecting compression zones during accumulation phases
• Confirming trend strength through stress persistence
• Timing reversals at extreme stress levels
• Multi-timeframe stress analysis for comprehensive market view
⚠️ Limitations
• Requires sufficient price history for accurate elasticity calculations
• May produce false signals during unprecedented market events
• Works best in liquid markets with consistent volume
• Not suitable as a standalone trading system
💡 What Makes This Unique
• Physics-Based Foundation: First indicator to properly implement elasticity theory
• Academic Rigor: Based on proven Navier-Cauchy equations from materials science
• Visual Innovation: Multiple display modes with professional-grade aesthetics
• Adaptive Technology: Self-adjusting parameters based on market conditions
🔬 How It Works
1. Strain Calculation:
• Measures price displacement over specified period
• Normalizes displacement relative to price level
2. Elasticity Determination:
• Calculates Young’s modulus using inverse volatility
• Updates Lamé parameters based on Poisson ratio
3. Stress Computation:
• Applies elasticity theory formula: σ = (λ + 2μ) × ε
• Scales result for visual clarity
• Applies smoothing to reduce noise
💡 Note: NCME represents a breakthrough in applying physics principles to market analysis. While based on proven scientific formulas, remember that markets are complex systems influenced by human psychology and external factors. Use NCME as part of a comprehensive trading strategy with proper risk management.
Visual ProwessVisual Prowess: Ultimate Visual of Price Action Indicator
Overview
Visual Prowess is a Pine Script indicator that integrates Trend, Momentum, Strength/Weakness, Money Flow, and Volatility into a single, intuitive interface. Scaled from 0 to 100, it provides traders with clear bullish (>50) and bearish (<50) zones. Visual Prowess is made up of several data components which will be explained below. All these components have custom thresholds that lead to Green Dot Buy Signals and Red Dot sell signals. Designed for multi-timeframe analysis, it helps traders anticipate market moves with precision seeing behind the scenes of price action.
The fundamental inputs of price action are made up of different variables -- the components of Trend Strength, Volatility, Momentum, Money Flow/Volume and Overbought/Oversold. These are very important inputs market makers use. From what I've learned in my trading journey (always still learning), this is the data I value most important. This is why I combined all these components into one indicator.....to be an ultimate visual—this extrapolation of different pieces of data is the Visual Prowess.
What It Does
Visual Prowess combines five key market factors into a unified score (0-100) to assess market conditions by examining the price action like an x-ray aka Visual Prowess:
• Trend Direction & Strength (Green and Red Wave) : Identifies bullish (green clouds) or bearish (red clouds) trend. This data is designed to illustrate the trend by the color, and its strength by the height (score).
How it is Calculated = Data is derived from price action-- comparing the current and previous price highs and lows to measure the strength of upward (+) or downward (-) price movements, smoothed over a period and expressed as a percentage of the price range.
• Momentum (Blue and White Wave): Tracks price acceleration via a custom momentum oscillator, displayed as blue (positive) or white (negative) waves.
How it is Calculated = Data is calculated by subtracting a longer-term exponential moving average from a shorter-term exponential moving average to measure momentum and trend direction. Momentum strength is measured by height on 0-100 score, and color dictates the trend-- Blue up, White down.
• Strength Index (Purple Line): Measures overbought/oversold conditions with a normalized index, derived from price deviation.
How it is Calculated = Strength Index is calculated by comparing the average of price gains to the average of price losses over a specified period, expressed as a value between 0 and 100 to measure momentum and identify overbought or oversold conditions.
• Money Flow: Monitors capital inflows and outflows using a modified Money Flow Index, shown as green (buying) or red (selling) circles.
How it is Calculated = The Money Flow is calculated by using price and volume data to measure buying and selling pressure, comparing positive and negative money flow over a specified period to produce a value between 0 and 100, indicating overbought or oversold conditions and more importantly where the money is moving, + or -.
• Volatility: Gauges market volatility, marked by colored crosses (blue for low, red for high). Blue illustrates low volatility which is key for big moves either + or -; red to illustrate when price action is extremely overheated either + or -.
How it is Calculated = The volatility is calculated by the creator of the BBWP The_Caretaker. This excellent work is calculated using the width of the iconic indicator the Bollinger Bands (the difference between the upper and lower bands divided by the middle band (the moving average), expressed as a percentage to show how volatile the price is relative to its recent average.
Originality
Unlike traditional multi-indicator dashboards, Visual Prowess uses a combination of specific open-source indicators which I believe to be the most important inputs in price action-- trend, momentum, strength, money flow, and volatility into an all-in-one visual ratioed on a 0-100 scale. This unique synthesis of data reduces noise, prioritizes signal alignment, and a look behind the scenes of price action to see deeper into the movement – This combination of indicators has custom thresholds, when these components in alignment with each other hit certain parameters; it leads to key custom price action signals -- Green Dot Buy and Red Dot Sell signals.
There is also a bonus indicator….. a Yellow Triangle. When you see this, it is rare and strong. It only prints when strength index reaches extreme lows at the same time volatility reaches extreme highs…. It then waits to print the yellow triangle upon a third condition= which is price action is back in bullish/positive zone. This Yellow triangle is meant to be strong reversals of Macro Trend lows.
How to Use the Visual Prowess Components:
• Add to Chart: Apply Visual Prowess to any timeframe (recommended: higher timeframes 12H, 1D, 2D, 3D for optimal signals).
• Interpret Zones: Values >50 indicate bullish conditions (green background); <50 signal bearish conditions (red background).
Wait for Green Dot Buy signal for buys and Red Dot Sell signals for sells. One can read each component individually to gauge the price action and predict before the buy signal prints; all of those components merged together is what leads to the buy and sell signals. The story of what’s to come can be seen at lower timeframes before the higher timeframes print, that is a key way to gauge projections of bull or bear prints to come.
HOW TO READ EACH DATA COMPONENT
TREND CLOUDS: Green/red clouds show trend direction; vivid colors tied to number/ score on the 0-100 scale indicate strength of the trend.
Bull Conditions
Green cloud illustrates the trend is bullish. The height is correlated to the trend’s strength—this height is also aligned with colors, more transparent green is weak, then it gets more opaque being medium strength, and the most vibrant is the strongest. How to ride the bull condition is by seeing this transformation of trend get from weak to strong, until it tops out and the wave points down losing strength which alludes to the bear condition.
Bear Conditions
Vice versa with the bear condition. Different shades of red tie into the strength of the bear trend. How to read when things are about to get bearish, is by seeing bull trend shift levels of strength (Example- medium to weak). This transition of bull strength getting weaker is the start, once it gets to weak bear it has commenced until bearish strength tops out before it begins to get weaker leading to the next bull phase.
MOMENTUM WAVES: Blue waves above 50 suggest bullish momentum; white waves below 50 warn of bearish shifts.
Bull Conditions
Good to look at flips of white wave to blue in bearish zones to see the tide turning= guaranteed bullish when safely gets above and holds above 50 zone.
Bear Conditions
Vice versa for Bearish side of this momentum wave being blue wave turning white in bullish zone aiming down to break below 50 zone to confirm bearish descent.
STRENGTH INDEX: Values >80 indicate overbought; <20 suggest oversold. Look for “Bull” or “Bear” labels for divergences.
Bull Conditions
Above 50 level is key, so seeing price action break from below 50 to above 50 is strong buy condition until it gets overbought.
Bear Conditions
Once conditions are too overbought and falling making lower lows (especially when price action is climbing or staying sideways) it is indicating strength is getting weaker. When this indicator fights 50 level and breaks down below 50 level bearish conditions are coming until it gets to an oversold level.
MONEYFLOW: Green circles signal buying pressure; red circles indicate selling.
Bull Conditions
Green circles show money flow is positive so that’s a good sign of upward price action to come, and again above 50 level is bullish conditions
Bear Conditions
Red circles show money flow is negative so that’s a bad sign of price action to come, pointing down and breaking below 50 level is no good. It can have corrections in bullish scenario keep in mind seeing red doesn’t mean trend is over z9could be in higher low scenario).
VOLATILITY: Blue crosses (<25% volatility) suggest breakout potential; red crosses (>75%) warn of overheated markets.
Bull Conditions
This is a very important indication. Big volatile moves can move either direction + or -. When all other components look positive/bullish and this is signalling blue crosses it means a big move is coming and will most likely be in the upward direction –If all other components align/lean bullish.
Another bullish scenario is when price action is down large and red crosses are forming. This indicates that the downward move is overheated (red x’s are rare). This extremely oversold condition can be great buying opportunities when volatility is hot printing red x’s.
Bear Conditions
When all other components look negative/bearish and this is signalling blue crosses it means a big move is coming and will most likely be in the downward direction –If all other components align/lean bearish.
Another bearish scenario is when price action is up large and red crosses are forming. This indicates that the upward move is overheated (red x’s are rare). This extremely overbought condition can be great selling opportunities when volatility is hot printing red x’s.
*****All these components in alignment of hitting each pertaining important threshold--is what prints the green dot and sell signals to trade by. It is not black and white; each component has a sweet spot fine tuned to be triggered through analysis of what is happening individually to each component and how it is reacting to the price action data.
EXAMPLE= Taking a look at the screenshot (Perfect Scenario)
Bullish Examination
- Taking a look at the 2-D timeframe on BTC
x>50
x= all components traveling to the bullish zone. Blue wave, Strength Index with bullish divergence accumulation, Money Flow Positive with Green Trend Wave starting, with teal low volatility cross→→→ leads to Green Dot Buy Signal print…. And the big rise speaks for itself with price action and the big mountain wave of the Green Trend Wave.
This rise leads to
↓↓↓↓
Bearish Examination
Strength Index gets really high at 80 scale, Red X’s showing extremely heated Volatility, Money Flow turning red and sloping down, Trend Wave peaking starting to roll over, Blue Momentum Wave transitioning to white, bearish divergence of price action related to Strength Index→→→ leads to Red Dot Sell Signal print… and the flush speaks for itself when all components fall below 50 level with Trend wave turning red
All this is forecasted in the data, showing weakness before weakness and showing strength before strength. It works because every single piece of important elements in data of price action is incorporated in this all-in-one indicator…. Which leads to the reasoning of me calling this indicator the Visual Prowess, for its unprecedent sharpness of visual observation.
****This is a passion script incorporating every piece of data I value important when reading a chart — to see current perspective of a chart and to help foresee future projection of direction Up or Down. Any community feedback is greatly appreciated. Ongoing work will be done on this script as new thoughts and fine tuning will continuously be done for infinity, as this is my personal go to model for data on the markets.
Volatility Pulse with Dynamic ExitVolatility Pulse with Dynamic Exit
Overview
This strategy, Volatility Pulse with Dynamic Exit, is designed to capture impulsive price moves following volatility expansions, while ensuring risk is managed dynamically. It avoids trades during low-volatility periods and uses momentum confirmation to enter positions. Additionally, it features a time-based forced exit system to limit overexposure.
How It Works
A position is opened when the current ATR (Average True Range) significantly exceeds its 20-period average, signaling a volatility expansion.
To confirm the move is directional and not random noise, the strategy checks for momentum: the close must be above/below the close of 20 bars ago.
Low volatility zones are filtered out to avoid chop and poor trade entries.
Upon entry, a dynamic stop-loss is set at 1x ATR, while take-profit is set at 2x ATR, offering a 2:1 reward-to-risk ratio.
If the position remains open for more than 42 bars, it is forcefully closed, even if targets are not hit. This prevents long-lasting, stagnant trades.
Key Features
✅ Volatility-based breakout detection
✅ Momentum confirmation filter
✅ Dynamic stop-loss and take-profit based on real-time ATR
✅ Time-based forced exit (42 bars max holding)
✅ Low-volatility environment filter
✅ Realistic settings with 0.05% commission and slippage included
Parameters Explanation
ATR Length (14): Captures recent volatility over ~2 weeks (14 candles).
Momentum Lookback (20): Ensures meaningful price move confirmation.
Volatility Expansion Threshold (0.5x): Strategy activates only when ATR is at least 50% above its average.
Minimum ATR Filter (1.0x): Avoids entries in tight, compressed market ranges.
Max Holding (42 bars): Trades are closed after 42 bars if no exit signal is triggered.
Risk-Reward (2.0x): Aiming for 2x ATR as profit for every 1x ATR risk.
Originality Note
While volatility and momentum have been used separately in many strategies, this script combines both with a time-based dynamic exit system. This exit rule, combined with an ATR-based filter to exclude low-activity periods, gives the system a practical edge in real-world use. It avoids classic rehashes and integrates real trading constraints for better applicability.
Disclaimer
This is a research-focused trading strategy meant for backtesting and educational purposes. Always use proper risk management and perform due diligence before applying to real funds.
Support and Resistance ZonesSupport and Resistance Zones— Indicator
Overview :
This indicator dynamically detects and visualizes key support and resistance zones by aggregating price data into synthetic candles. It highlights these critical price areas as shaded boxes that adjust in real-time, providing traders with clear visual cues on where price might find support or resistance.
Key Features :
-Dynamic Zone Detection: Automatically identifies zones formed by consecutive grouped candles meeting customizable criteria.
-Aggregation Factor: Combine multiple bars into synthetic candles to reduce noise and emphasize significant price zones.
-Customizable Zone Length: Extend the zone boxes by a user-defined number of bars beyond the current price for enhanced visualization.
-Visual Styling: Fully customizable zone fill and border colors to suit your chart preferences.
-Zone Lifecycle Control: Option to terminate old zones to maintain a clean chart.
-Breakout Alerts: Trigger alerts when price breaks above or below confirmed zones, signaling potential trading opportunities.
Inputs :
-Minimum Candles to Form Zone: Sets how many consecutive synthetic candles must align to form a valid zone.
-Aggregation Factor: Defines how many bars are combined to create a synthetic candle.
-Zone Fill and Border Colors: Customize the appearance of zones on the chart.
-Terminate Old Zones: Enable or disable automatic removal of previous zones.
-Box Extension Bars: Number of bars the zone boxes extend beyond their detected range for better visibility.
How to Use :
1. Apply the Indicator : Add it to your chart on any timeframe or market (Forex, stocks, crypto).
2. Set Input : Adjust the minimum candles, aggregation factor, and box extension bars based on your trading style and timeframe. For example, higher aggregation smooths noise for longer-term zones.
3. Visualize Zones : Watch as the indicator dynamically draws shaded boxes representing areas of support and resistance. Zones will grow as price action confirms their strength.
4. Monitor Breakouts : Use breakout alerts to be notified when price decisively moves beyond a zone, providing signals for possible entries or exits.
5.Customize Appearance : Adjust colors and enable zone termination to keep your chart clear and focused.
This tool simplifies identifying important price levels, reducing manual analysis time and helping you make informed trading decisions.
Jesus Vix Spike ComboThis script will:
Show you vix spikes with your 4 different settings.
Draw a white line at the start of each vix.
Draw a dotted green line for 3 spikes in 6 minutes.
Draw a dotted pink line for 3 spikes in 16 minutes.
Draw a green line extending right if it takes out a past low in the last 200 bars plus a spike.
It will also:
Place a white dot on the 5th candle if the price rises past the vix starting point,
a white omega sign on the 6th candle if price rises past the vix starting point,
and a large white dot on the 7th candle past the vix starting point if the price is higher.
It will also:
Show higher time frame EMAs and other emas.
Has some alerts added also.
I have only been using this on the 1 minute chart with $OANDA:SPX500USD.
Ill write about the strategy I use for this soon. But basically you wait for a drop and for some prominent lows to be taken out, then a vix, then your white dot, omega then the large white dot to enter, expect a 100% expansion from the vix low. More aggressive entry's would be the first white dot or 3 green candles in a row. Backtest to see.
Thanks for checking it out. Let me know if it can be better.
The original script is from Xxattaxx and Christ Moody I believe, thank you for sharing all your hard work.
Value at Risk (VaR/CVaR) - Stop Loss ToolThis script calculates Value at Risk (VaR) and Conditional Value at Risk (CVaR) over a configurable T-bar forward horizon, based on historical T-bar log returns. It plots projected price thresholds that reflect the worst X% of historical return outcomes, helping set statistically grounded stop-loss levels.
A 95% 5-day VaR of −3% means: “In the worst 5% of all historical 5-day periods, losses were 3% or more.” If you're bullish, and your thesis is correct, price should not behave like one of those worst-case scenarios. So if the market starts trading below that 5-day VaR level, it may indicate that your long bias is invalidated, and a stop-loss near that level can help protect against further downside consistent with tail-risk behavior.
How it's different:
Unlike ATR or standard deviation-based methods, which measure recent volatility magnitude, VaR/CVaR incorporate both the magnitude and **likelihood** (5% chance for example) of adverse moves. This makes it better suited for risk-aware position sizing and exits grounded in actual historical return distributions.
How to use for stop placement:
- Set your holding horizon (T) and confidence level (e.g., 95%) in the inputs.
- The script plots a price level below which only the worst 5% (or chosen %) of T-bar returns have historically occurred (VaR).
- If price approaches or breaches the VaR line, your bullish/bearish thesis may be invalidated.
- CVaR gives a deeper threshold: the average loss **if** things go worse than VaR — useful for a secondary or emergency stop.
FURTHER NOTES FROM SOURCE CODE:
//======================================================================//
// If you're bullish (expecting the price to go up), then under normal circumstances, prices should not behave like they do on the worst-case days.
// If they are — you're probably wrong, or something unexpected is happening. Basically, returns shouldn't be exhibiting downside tail-like behavior if you're bullish.
// VaR(95%, T) gives the threshold below which the price falls only 5% of the time historically, over T days/bars and considering N historical samples.
// CVaR tells you the expected/average price level if that adverse move continues
// Caveats:
// For a variety of reasons, VaR underestimates volatility, despite using historical returns directly rather than making normality assumptions
// as is the case with the standard historicalvol/bollinger band/stdev/ATR approaches)
// Volatility begets volatility (volatility clustering), and VaR is not a conditional probability on recent volatility so it likely underestimates the true volatility of an adverse event
// Regieme shifts occur (bullish phase after prolonged bearish behavior), so upside/short VaR would underestimate the best-case days in the beginning of that move, depending on lookahead horizon/sampling period
// News/events happen, and maybe your sampling period doesn't contain enough event-driven returns to form reliable stats
// In general of course, this tool assumes past return distributions are reflective of forward risk (not the case in non-stationary time series)
// Thus, this tool is not predictive — it shows historical tail risk, not guaranteed outcomes.
// Also, when forming log-returns, overlapping windows of returns are used (to get more samples), but this introduces autocorrelation (if it wasn't there already). This means again, the true VaR is underestimated.
// Description:
// This script calculates and plots both Value at Risk (VaR) and
// Conditional Value at Risk (CVaR) for a given confidence level, using
// historical log returns. It computes both long-side (left tail) and
// short-side (right tail) risk, and converts them into price thresholds (red and green lines respectively).
//
// Key Concepts:
// - VaR: "There is a 95% chance the loss will be less than this value over T days. Represents the 95th-percentile worst empirical returns observed in the sampling period, over T bars.
// - CVaR: "Given that the loss exceeds the VaR, the average of those worst 5% losses is this value. (blue line)" Expected tail loss. If the worst case breached, how bad can it get on average
// - For shorts, the script computes the mirror (right-tail) equivalents.
// - Use T-day log returns if estimating risk over multiple days forward.
// - You can see instances where the VaR for time T, was surpassed historically with the "backtest" boolean
//
// Usage for Stop-Loss:
// - LONG POSITIONS:
// • 95th percentile means, 5% of the time (1 in 20 times) you'd expect to get a VaR level loss (touch the red line), over the next T bars.
// • VaR threshold = minimum price expected with (1 – confidence)% chance.
// • CVaR threshold = expected price if that worst-case zone is breached.
// → Use as potential stop-loss (VaR) or disaster stop (CVaR). If you're bullish (and you're right), price should not be exhibiting returns consistent with the worst 5% of days/T_bars historically.
//======================================================================//