Chikou Span 'Open Space' Colors

The Ichimoku Clouds strategy has been one of my favorite scripts to work with since I came across it a few months ago, so I thought I'd share one of the automated features I created for the strategy.
For the purpose of this script, I'll only explain the Chikou Span aspect of it since there are plenty of other explanations about Ichimoku Clouds.

The Chikou Span is one of the most useful aspects of the Ichimoku Clouds strategy despite it not being used in most people's strategies. It is calculated by simply taking the current closing value and plotting it backwards 26 bars. The Chikou Span is used to identify large trend moves and trend reversals by what is referred to as 'open space'. This occurs when the Chikou Span is not intersecting any candlestick within 10 bars (if you were to draw a horizontal line from the tip of the Chikou Span, it would not touch any part of a candle within 10 bars).

The purpose of this script is to better identify the Chikou Span reaching 'open space' by coloring the Chikou Span's line:
- Green when it is in upwards open space (bullish trend), and
- Red when it is in downwards open space (bearish trend).

I've also included my personal color scheme for the Ichimoku Clouds strategy as well as inputs to turn on/off every aspect of the strategy.

** Disclaimer: THIS IS NOT TRADING ADVICE. The Chikou Span should not be used on its own to make any trades. When trading with the Ichimoku Cloud strategy, one should utilize all 5 lines of the strategy to make realistic trades. If you'd like to learn more, I'd recommend reading "Trading with Ichimoku Clouds - The Essential Guide to Ichimoku Kinko Hyo Technical Analysis" **
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.


The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?