Libraries: IncIchimokuOnArray

 

IncIchimokuOnArray:

The CIchimokuOnArray class is intended for calculation of Ichimoku (Ichimoku Kinko Hyo) values on indicator buffers. Additionally, the Test_IchimokuOnArray.mq5 indicator demonstrating how to use of CIchimokuOnArray class is included.

Ichimoku Kinko Hyo Technical Indicator is predefined to characterize the market Trend, Support and Resistance Levels, and to generate signals of buying and selling. This indicator works best at weekly and daily charts.

Author: Дмитрий

An example of using the CIchimokuOnArray class

 

Watch Price In Relation To Ichimoku Cloud (adapted from dailyfx article)

  • Price & Cloud Relationships
  • Price Bouncing Off Cloud Shows You A Well-Supported Trend
  • An Example Ichimoku Trade with USDJPY

Ichimoku is a trend following indicator that almost anyone can learn to use with ease. When trading with Ichimoku, you’re often advised to start with the cloud to get a feel for whether or not price is trending up or down to past points on the chart. However, to get a better feel for the strength of the trend, it is better to see how price is reacting to the cloud rather than only looking where price is in relation to the cloud at any point in time.

Price & Cloud Interactions

USDJPY Has Demonstrated a Strong Trend Due To Multiple Cloud Bounces:


The cloud is a dynamic indicator that takes into consideration two aspects of a currency pair. In an uptrend, the top line of the cloud, traditionally known as Senkou Span A is composed of the mid-point between the 9 & 26 moving average based on mid-prices, or Tenkan-Sen & Kijun-Sen, and pushed forward 26-periods in order to give you a reference for the strength of a move. If current price is above the cloud, then current price is stronger than the mid-point of the 9 & 26 moving average from 26-periods ago, identifying the strength of the current trend.

The cloud’s bottom line in an uptrend, traditionally known as Senkou Span B, is composed of the mid-point over the last 52-periods on the chart and is also pushed forward 26-periods just like the top line. Therefore, if the current candle is above the cloud, which was created from 26-periods ago, then you can see that price is above both the mid-point of the 9 & 26 moving average as well as the mid-point over the last 52-sessions.

Price Bouncing Off Cloud Shows You a Well-Supported Trend

The key point of this article is that it’s not enough to simply know where price is in relation to the cloud to have a strong trend based trade. What you need to do is see if price is consistently on one side of the cloud or if price flips on either side of the cloud showing a very weak or non-existent trend. If there is no consistency with price and is consistently bouncing higher off the cloud proving the cloud as support and that the uptrend is strong, then it is best to take Ichimoku off your charts as Ichimoku doesn’t work well in ranges and will likely only clog up the charts if there is no clear trend.

A Cloud & Price Example Trade with USDJPY


Entry to Buy: 105.00 (Breakout through resistance)
Stop: 103.70 (recent price action low and below May 2013 High – Pivotal Support)
Limit: 107.50 (Monthly R2 Pivot)

If this is your first reading of the Ichimoku report, here is a definitive guide on the versatile indicator:

  • Full Candle Bodies above the Kumo Cloud
  • The trigger line (black) is above the base line (light blue) or is crossing below
  • Lagging line is above price action from 26 periods ago (Bright green line)
  • Kumo ahead of price is bullish and rising (blue cloud = bullish Kumo)
Reason: