Accumulative Swing Cloud [MarkitTick]💡This indicator presents a modernized hybrid approach to J. Welles Wilder’s classical Accumulative Swing Index (ASI). While the traditional ASI is often viewed as a simple line oscillator used to confirm price breakouts, the Accumulative Swing Cloud reconstructs this concept into a dynamic trend-following system. By smoothing the raw ASI data into multiple moving average layers, this script creates a "Cloud" structure that visualizes the strength, direction, and momentum of the swing index, effectively treating the ASI value itself as a tradeable price action entity.
● Originality and Utility
The standard Accumulative Swing Index is a powerful tool for seeing through the "noise" of open, high, low, and close prices to find the real trend. However, looking at a raw ASI line can be jagged and difficult to interpret for sustained trends. This script innovates by applying "Cloud Dynamics" to the ASI. It calculates three distinct moving averages (Fast, Mid, and Slow) of the ASI value itself. The area between the Fast and Slow averages is filled with a dynamic gradient color. This allows traders to not only see the trend direction (Bullish or Bearish) but also gauge the volatility and strength of the move based on the expansion or contraction of the cloud's width. Additionally, this version introduces an optional Volume Integration feature, allowing the Swing Index calculations to be weighted by relative volume, giving more significance to moves backed by high market participation.
● Methodology and Calculations
The core of this indicator relies on the Swing Index calculation. It compares the current bar's Open, High, Low, and Close against the previous bar's values to derive a variable "R" (a measure of the market's range).
The script determines the largest price movement (K) among the High-Close, Low-Close, and High-Low ranges.
It calculates the "R" value based on the relationship between the daily range and the gap between the prior close and current open.
A Swing Index (SI) value is derived using the Limit Move value (T), the defined Multiplier, and the calculated R and K values.
This SI is accumulated into a running total (ASI State).
If Volume Integration is enabled, the SI is multiplied by a Volume Factor (Current Volume divided by Average Volume), capped at 3.0 to prevent outlier distortion.
● Visual Guide
The indicator plots several key visual elements on the chart:
Cloud Fast (Green Line): Represents the shorter-term moving average of the Accumulative Swing Index.
Cloud Slow (Red Line): Represents the longer-term moving average.
Cloud Fill (Gradient Area): The space between the Fast and Slow lines.
Green Gradient: Indicates the Fast MA is above the Slow MA (Bullish Trend).
Red Gradient: Indicates the Fast MA is below the Slow MA (Bearish Trend).
Gradient Intensity: The opacity of the color scales dynamically based on the width of the cloud relative to its recent historical maximum. A wider cloud (stronger trend/higher volatility) appears more solid, while a narrow cloud appears more transparent.
ASI Line (Color-Coded Line): The thick line represents the current raw Accumulative Swing Index value. It changes color (Green/Red) based on its position relative to the Signal Line.
Signal Line (Gray Line): A Simple Moving Average of the ASI Line, acting as a trigger for immediate reversals.
Bar Coloring: The main price candles are colored to match the current state of the Cloud (Green for Bullish Cloud, Red for Bearish Cloud).
● How to Use
Trend Identification: Use the Cloud color to determine the primary trend. A Green Cloud suggests an uptrending market structure, while a Red Cloud suggests a downtrend.
Entry Signals: Traders often look for the "ASI Line" to cross the "Signal Line" in the direction of the Cloud. For example, if the Cloud is Green, a crossover of the ASI Line above the Signal Line is a bullish confirmation.
Cloud Crossovers: A crossover of the Fast and Slow Cloud lines represents a major structural shift in the Accumulative Swing Index trend.
Volatility Filter: Pay attention to the gradient intensity. A very narrow (transparent) cloud indicates low momentum or consolidation, while a widening (solid) cloud indicates expanding momentum.
● Inputs and Settings
ASI Core Engine: Configure the Daily Limit (T) and Multiplier to tune the sensitivity of the Swing Index calculation.
Volume Integration: Toggle "Weight ASI by Volume" to factor in volume spikes. Adjust "Volume Avg Length" to define the baseline volume.
Cloud Dynamics: Choose the Moving Average type (EMA, SMA, RMA, WMA) and set the Fast, Mid, and Slow lengths to customize the cloud's reactivity.
Visual Enhancements: Toggle "Color Candles by Cloud Width" to apply the gradient coloring directly to the price bars.
● Disclaimer
All provided scripts and indicators are strictly for educational exploration and must not be interpreted as financial advice or a recommendation to execute trades. I expressly disclaim all liability for any financial losses or damages that may result, directly or indirectly, from the reliance on or application of these tools. Market participation carries inherent risk where past performance never guarantees future returns, leaving all investment decisions and due diligence solely at your own discretion.
