2XMA_Ichimoku_Oscillator
Download scriptThe 2 Ichimoku XMA Oscillator is a specialized technical analysis tool designed to identify and visualize momentum shifts in the financial markets by comparing two different "smoothed" versions of the Ichimoku cloud components.
Core Logic Overview
Instead of simply looking at price action alone, this script calculates two distinct moving averages based on the XMA (Exponential Moving Average) logic. It then measures the mathematical distance between these two averages to create an oscillator. By observing how this distance grows, shrinks, or changes direction, traders can identify momentum trends more clearly than by looking at a standard chart.
Key Components of the Logic:
1. Dual-Layer Calculation (XMA 1 and XMA 2) The script creates two independent data streams:
- Primary Layer (XMA 1): A fast-reacting smoothed average.
- Secondary Layer (XMA 2): A slower, broader smoothed average. Each layer can be customized by the user to look at different price types (such as High, Low, Close, or Median prices) and different smoothing methods (like Simple, Exponential, or Jurik).
2. The Oscillator Mechanism The "Oscillator" value is derived by subtracting the secondary average from the primary average.
- When the primary average is significantly higher than the secondary, it indicates strong upward momentum.
- When the primary average falls below the secondary, it signals downward momentum.
3. Visual Momentum Signals (Color Coding) The script doesn't just provide a line; it uses a dynamic color-changing histogram to help traders visualize "state changes" in the market:
- Trend Direction: The indicator changes colors based on whether the current oscillator value is rising or falling compared to the previous bar.
- Zero-Line Transitions: It features specific logic to handle when the oscillator crosses above or below the zero point, providing immediate visual cues for potential trend reversals.
- Stability: If the value remains unchanged between bars, the script retains the previous color to ensure the visual flow is smooth and readable.
Summary for Traders
Essentially, this tool acts as a "momentum speedometer." By smoothing out the noise of price fluctuations through two layers of XMA logic, it highlights the underlying strength of a trend. The color-coded histogram allows you to quickly see if momentum is accelerating (changing color in favor of the trend) or decelerating (changing color against the trend), helping to identify potential entry and exit points more effectively than raw price action alone.
ÿþ/ / + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
/ / | 2 X M A _ I c h i m o k u _ O s c i l l a t o r . 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 "