Enhanced Ichimoku Cloud Indicator!!!

9283 22 1614
There are two Custom Ichimoku Indicators on the chart.

The one that is hidden is the Ichimoku Indicator with
The correct names for the lines Under the Style Tab.

The Indicator shown is coded so when the cloud is in
a down trend both lines turn Red.

When the Cloud is rising both lines turn to Green.

Because of the code used in order to switch the colors of
Both Lines at the same time I couldn't name Senkou Span A
and Senkou Span B in the "Styles" Tab.

You can still modify the colors to customize chart.
Remove from Favorite Scripts Add to Favorite Scripts
//Created By User ChrisMoody
//Last Update 12-30-2013
//Special Thanks to Alex in Tech Support.  I spent 4 hours and couldn't get it to work and he fixed it in 2 minutes...

study(title="CM_Enhanced_Ichimoku Cloud-V3", shorttitle="CM_Enhanced_Ichimoku-V3", overlay=true)
turningPeriods = input(9, minval=1), standardPeriods = input(26, minval=1)
leadingSpan2Periods = input(52, minval=1), displacement = input(26, minval=1)
donchian(len) => avg(lowest(len), highest(len))
turning = donchian(turningPeriods)
standard = donchian(standardPeriods)
leadingSpan1 = avg(turning, standard)
leadingSpan2 = donchian(leadingSpan2Periods)
plot(turning, title = 'Tenkan-Sen (9 Period)', linewidth=4, color=white)
plot(standard, title = 'Kinjun-Sen (26 Period)', linewidth=4, color=orange)
plot(close, title='Chinkou Span (Lagging Line)', linewidth=4, offset = -displacement, color=aqua)
spanColor = leadingSpan1>=leadingSpan2 ? lime : red

p1 = plot(leadingSpan1, title = 'Senkou Span A (26 Period)', linewidth=4, offset = displacement, color=spanColor)
p2 = plot(leadingSpan2, title = 'Senkou Span B (52 Period)', linewidth=4, offset = displacement, color=spanColor)
fill(p1, p2, color=silver, transp=40, title='Kumo (Cloud)')
I need 2 colors cloud.
loquasto fxredjohn

Change these parts, adding a fill color variable. Change the colors by changing lime:maroon to whatever you like.

Add under spanColor:

fillColor = leadingSpan1<=leadingSpan2 ? lime : maroon

Change this to use fillColor instead of silver:

fill(p1, p2, color=fillColor, transp=70, title='Kumo (Cloud)')
+1 Reply
Hello Chris, just wanted to let you know that as of today this indicator suddenly produces the following error: 'studylib.sdk.MutableInteger cannot be cast to studylib.Series'. Maybe you know what's happening there?
many custom scripts were experiencing glitches due to a recent TradingView scripting component update. The developers are aware and have already begun fixes.
adilio ronfkingswanson
Thanks for this info Ron
Thanks....I just got back in town...I'll take a look later and figure out why
Hi Chris, all your works was awesome. Ohya, btw do you know about the Tom DeMark Trendline Trader indi?. Would you create something similar for Tradingview?. And should have the ability to change the input either using the fractals point or Tom Demark's point as the trend line . Thx Chris.
ChrisMoody faizal.mansor.908
Thanks... I prefer to have the "Cloud" change colors instead of the lines....can't do it now...but will be able to soon I'm sure....
Thank you for sharing your work. Good luck in your adventures.
ChrisMoody Milla Vanilla
Thank You...Working on a lot of new indicators I will be sharing shortly.
EN English
EN English (UK)
EN English (IN)
DE Deutsch
FR Français
ES Español
IT Italiano
PL Polski
SV Svenska
TR Türkçe
RU Русский
PT Português
ID Bahasa Indonesia
MS Bahasa Melayu
TH ภาษาไทย
VI Tiếng Việt
JA 日本語
KO 한국어
ZH 简体中文
ZH 繁體中文
AR العربية
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out