Ichimoku Oscillator
Feb 14, 2024

The Ichimoku Oscillator indicator creates a multi-layered oscillator that calculates trend direction and potential entry/exit levels by leveraging Ichimoku Cloud components. It provides a visual representation of the distance between key Ichimoku elements to identify trend strength and momentum shifts.
Usage
The Usage section describes how the script can be used to identify market trends and trade opportunities. The indicator visualizes four distinct layers as areas on the oscillator:
- Layer 1 (Baseline): The distance between the closing price and the cloud (minimum or maximum boundary depending on the main trend).
- Layer 2: The distance between the Lagging Span and the Cloud from X bars ago (where X is the displacement).
- Layer 3: The distance between the Conversion Line and the Base Line.
- Layer 4: The distance between the two Leading Spans (Span A and Span B).
Trade Execution
A full trend signal (Long or Short) is confirmed when all layers are visible and aligned with the primary trend.
- Long Positions: Initiated when the trend reaches a maximum positive value (4), indicating all Ichimoku conditions are bullish.
- Short Positions: Initiated when the trend reaches a maximum negative value (-4), indicating all Ichimoku conditions are bearish.
- Exits: Positions should typically be closed when the main trend changes or when specific "Take Profit" signals appear, such as a cross between the Conversion and Base lines or a cross between the EMA and the fourth layer.
Support and Resistance Bounces
When the "Bounce Off Support/Resistance" setting is enabled, the indicator displays small triangles when a trend is active and the price bounces off the Cloud boundaries, suggesting a trend continuation entry.
Details
The Ichimoku Oscillator converts the standard Ichimoku Kinko Hyo components into a relative momentum-style oscillator. By calculating the spread between these components, it identifies when the price is over-extended or when multiple confirmation factors align.
The script includes an optional EMA of the oscillator values to help identify momentum exhaustion. Additionally, an ATR-based filter can be applied to the Conversion and Base lines to protect against whipsaws during periods of low volatility.
Settings
Setup
- Conversion Line Length: Sets the period for the Tenkan-sen calculation.
- Base Line Length: Sets the period for the Kijun-sen calculation.
- Leading Span B Length: Sets the period for the Senkou Span B.
- Lagging Span: Defines the displacement (offset) for the lagging span and cloud components.
- Use ATR: Enables an Average True Range filter to reduce false signals during sideways markets.
- Bounce Off Support/Resistance: Toggles visibility for additional entry signals when price reacts to cloud boundaries.
- Show EMA: Displays an Exponential Moving Average over the oscillator.
- Take Partial Profit by EMA: Enables exit signals when the oscillator crosses its EMA.
Colors
- Entry/Exit Colors: Customizes the colors for trade initiation and closure markers.
- Colored Background: Toggles the background coloring that reflects the current trend state.
- Uptrend/Downtrend Colors: Sets the color palette for the four oscillator layers.
Alerts
- Main Buy/Sell Alert: Triggers when the full trend alignment (level 4) is reached.
- Additional Buy/Sell Alert: Triggers on bounce-off signals.
- Close Position Alert: Triggers when the primary trend conditions are no longer met.
- Take Partial Profit Alert: Triggers on Conversion/Base line crosses or EMA crosses.
FAQ
How do I interpret the different colored areas in the oscillator? Each area represents a specific distance between Ichimoku components. When all four colors are visible and stacked, it indicates a strong, synchronized trend where price, momentum, and cloud components are all in agreement.
What is the purpose of the ATR setting? The ATR setting adds a buffer (tolerance) to the relationship between the Conversion and Base lines. This helps traders stay in a trend longer by preventing minor price fluctuations (whipsaws) from triggering premature exit or entry signals.
How can I access the Ichimoku Oscillator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.