ChrisMoody

Enhanced Ichimoku Cloud Indicator!!!

4876 20 519
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)')
Code for Indicator shown where the Lines surrounding the Cloud change colors.

//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)')
Reply
Code for Ichimoku Indicator not shown. The Cloud Lines do not change colors but under the "Styles" Tab all of the lines are labeled correctly.

//Created By User ChrisMoody
//Last Update 12-30-2013
study(title="CM_Ichimoku Cloud", shorttitle="CM_Ichimoku", 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=3, color=red)
plot(standard, title = 'Kinjun-Sen (26 Period)', linewidth=3, color=lime)
plot(close, title='Chinkou Span (Lagging Line)', linewidth=4, offset = -displacement, color=silver)

p1 = plot(leadingSpan1, title='Senkou Span A (26 Period)', linewidth=4, offset = displacement, color=green)
p2 = plot(leadingSpan2, title='Senkou Span B (52 Period)', linewidth=4, offset = displacement, color=fuchsia)

fill(p1, p2, color=silver, transp=40, title='Kumo (Cloud)')
Reply
B10ckLanders ChrisMoody
2 years ago
thanks!
Reply
phrak
2 years ago
Thanks Chris & Alex, a massive improvement over the default indicator!
Reply
ChrisMoody PRO phrak
2 years ago
Thanks for the comment....when we have the ability to change the fill color I will implement that. I prefer the Fill or shading to change colors.
Reply
motleifaul phrak
2 years ago
I can agree anly. Thank you. As like your colour changing MA this makes things more visible as well.
Reply
ChrisMoody PRO motleifaul
2 years ago
Thanks...I've been slammed but I'm working on a few codes I paid thousands to have programmers make me on other platforms. Coming sometime soon....
Reply
bekkerm
2 years ago
Nice work! I indeed was looking for a way to better identify the crossovers
Reply
ChrisMoody PRO bekkerm
2 years ago
Thanks....Working on a few more good improvements right now
Reply
danamut
2 years ago
can i have the code
Reply
ChrisMoody PRO danamut
2 years ago
Sure...here are instructions on how to get any ones custom code they publish...

To Get Code:

1. Click On White Arrow At Top Right
2. Click "Make It Mine"
3. Go To Your Chart page
4. Top Left Click Blue Icon/Your Picture
5. Select "Ideas Following"
5. Select This Chart
6. Click { } By Indicator Name (Top Left)
7. Press Save and You Will Find In
Indicators Tab Under Custom Scripts
Reply
Milla Vanilla
2 years ago
Thank you for sharing your work. Good luck in your adventures.
Reply
ChrisMoody PRO Milla Vanilla
2 years ago
Thank You...Working on a lot of new indicators I will be sharing shortly.
Reply
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.
Reply
ChrisMoody PRO faizal.mansor.908
2 years ago
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....
Reply
adilio
2 years ago
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?
Reply
ronfkingswanson PRO adilio
2 years ago
many custom scripts were experiencing glitches due to a recent TradingView scripting component update. The developers are aware and have already begun fixes.
Reply
adilio ronfkingswanson
2 years ago
Thanks for this info Ron
Reply
ChrisMoody PRO adilio
2 years ago
Thanks....I just got back in town...I'll take a look later and figure out why
Reply
fxredjohn PRO
6 months ago
I need 2 colors cloud.
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Private Messages Chat Ideas Published Followers Following Priority Support Public Profile Profile Settings Billing Sign Out