XRSIDeMarker_Histogram
Download scriptThis technical script is designed to function as a visual trading indicator that combines two well-known market analysis tools into a single, smoothed "histogram" display. By merging these different data points, it aims to provide a clearer picture of market momentum and trend direction than either tool could provide alone.
Core Logic Overview
The logic operates by performing three primary steps: Data Collection, Data Merging, and Smoothing.
1. Data Collection
The script simultaneously pulls information from two distinct technical indicators:
- RSI (Relative Strength Index): This measures the speed and change of price movements to identify overbought or oversold conditions.
- DeMarker: This is a momentum oscillator that compares the closing prices of the current candle to those of previous candles to help determine trend strength.
2. Data Merging (The "Side Marker")
Instead of displaying these two indicators on separate windows, the script performs a mathematical fusion. It takes the value from the RSI and combines it with the DeMarker value. This creates a single unified data point—referred to in the logic as a "Side Marker"—which represents a hybrid state of the market's current strength and velocity.
3. Advanced Smoothing (The XMA Algorithm)
Once the hybrid data point is created, the script applies an advanced smoothing algorithm (XMA). Raw financial data can often be "noisy" or erratic; this process filters out that noise to create a fluid, readable histogram. The smoothing allows traders to see the underlying trend more clearly by removing minor price fluctuations.
Visual Representation and Color Coding
The final output is a colored histogram that changes based on the position of the smoothed line relative to specific "Levels" (High, Medium, and Low) defined in the settings:
- Upper Zone (Overbought/Strong Bullish): When the indicator moves into the high territory, it uses shades of green. The specific shade shifts depending on whether the momentum is still rising or starting to curve back down.
- Middle Zone (Neutral/Trending): When the indicator is between the low and high levels, it uses different colors (such as gray or lime) to indicate steady movement or consolidation.
- Lower Zone (Oversold/Strong Bearish): When the indicator drops into the low territory, it switches to warmer colors (like red or magenta). Similar to the upper zone, the exact color varies based on whether the downward momentum is accelerating or slowing.
Summary for the User
Essentially, this script acts as a trend-filtering tool. It takes two complex mathematical perspectives of the market, blends them into one unified signal, smooths out the "jitter" of live price action, and paints a color-coded histogram that tells you at a glance whether the current trend is strong, weak, or neutral.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | X R S I D e M a r k e r _ H i s t o g r a m . 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 "