XRSI_Candle_Vol
Download scriptThis script is a specialized technical analysis tool designed for the MetaTrader 5 platform. It creates a sophisticated visual overlay that combines momentum, volume, and price action data into a single unified indicator.
The logic of the script can be broken down into three primary functional layers:
1. Multi-Source Momentum Analysis
Instead of looking at price alone, the script tracks four different types of Relative Strength Index (RSI) data simultaneously. It calculates the RSI for:
- Opening Prices
- Highs
- Lows
- Closing Prices
By analyzing all four facets of a candle's price range at once, the script gains a more holistic view of market momentum than a standard RSI could provide.
2. Volume-Weighted Smoothing
A unique core feature of this logic is how it treats volume. Rather than treating every price movement equally, it multiplies the price data by the transaction volume (or tick volume). This means that price moves supported by high trading activity carry more "weight" in the calculation than moves on low volume.
The script then applies a series of advanced smoothing algorithms (such as T3 or other customized moving averages) to this volume-weighted data. This serves to filter out "market noise," resulting in smoother, more reliable trend lines that are less prone to erratic spikes.
3. Dynamic Visual Mapping
The final layer of the logic translates these complex calculations into a visual format on your chart:
- Dynamic Channels: The script establishes an upper and lower boundary (a channel) based on the smoothed volume-weighted data.
- Smart Gap Handling: It includes logic to detect and "close" small price gaps, ensuring that the indicator remains continuous even when there is a break in trade activity.
- Contextual Coloring: The script assigns specific colors to the candles based on their position relative to the momentum channel. For example, it identifies whether a candle is breaking above the upper boundary, staying within the middle zone, or dropping below the lower boundary. It also distinguishes between bullish and bearish movements within those zones by comparing the open and close prices.
Summary of Behavior
In practical terms, this script acts as a "weighted momentum filter." It identifies the true strength of a trend by verifying if price action is supported by significant volume. It then paints your chart to show you not just where the price is, but whether that price movement has enough underlying strength and volume to be considered a significant trend shift or a minor fluctuation.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | X R S I _ C a n d l e _ V o l . m q 5 |
/ / | C o p y r i g h t © 2 0 1 8 , N i k o l a y K o s i t s i n |
/ / | K h a b a r o v s k , f a r r i a @ m a i l . r e d c o m . r u |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | ;O @01>BK 8=48:0B>@0 A;54C5B ?>;>68BL D09; S m o o t h A l g o r i t h m s . m q h |
/ / | 2 ?0?:C ( 48@5:B>@8N) : :0B0;>3_ 40==KE_ B5@<8=0;0\ \ M Q L 5 \ I n c l u d e |
/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
# p r o p e r t y c o p y r i g h t "