ChrisMoody

CM Enhanced Ichimoku Cloud V5

Ichimoku Cloud Indicator With Cloud Shading Based On Trend!!!

I’m releasing this Indicator b/c of the New Feature that Allows Coding The Fill of The Cloud To Change Colors Based On Trend. However, I will be releasing a Much More Advanced Version Soon!!!

Current Features - Via Inputs Tab:

- Ability to Turn On/Off Every Plot Individually Via Check Box
- Ability To Turn On/Off Tenkan and Kinjun Crosses (Arrows)

***Features Coming Soon - All Will Have Capability to Turn On/Off:

- Bar Color Change when Entering The Cloud
- Filtered Tenkan and Kinjun Crosses To Plot Only With Trend, only Counter Trend, Or All Crosses
- Plot Arrows When Price Exits The Cloud.
- Plot Arrows When Lagging Line Crosses The Cloud Confirmed, or Not Confirmed by Price.
- Plus More!!!
- Basically Ability To Set Alerts Based On Any Condition!!!

WHAT ARE YOUR REQUESTS FOR FEATURES??? Comment Below.
Remove from Favorite Scripts Add to Favorite Scripts
//Created By User ChrisMoody
//Last Update 10/20/2014
//new Updates include Cloud Color Change based on Trend.based on Trend
//Added ability to turn on/off Tenkan-Sen (9 Period), Kinjun-Sen (26 Period), Chinkou Span (Lagging Line), and "Cloud"
//Correct Plot Names for Alerts
study(title="CM_Enhanced_Ichimoku Cloud-V5", shorttitle="CM_Enhanced_Ichimoku-V5", overlay=true)
turningPeriods = input(9, minval=1, title="Tenkan-Sen")
standardPeriods = input(26, minval=1, title="Kinjun-Sen")
leadingSpan2Periods = input(52, minval=1, title="Senkou Span B")
displacement = input(26, minval=1, title="-ChinkouSpan/+SenkouSpan A")
sts = input(true, title="Show Tenkan-Sen (9 Period)?")
sks = input(true, title="Show Kinjun-Sen (26 Period)?")
sll = input(true, title="Show Chinkou Span (Lagging Line)?")
sc = input(true, title="Show Cloud?")
cr1 = input(false, title="Show Crosses up/down Tenkan-Sen (9 Period) and Kinjun-Sen (26 Period?")

//Definitions for Tenkan-Sen (9 Period), Kinjun-Sen (26 Period), Chinkou Span (Lagging Line)
donchian(len) => avg(lowest(len), highest(len))
turning = donchian(turningPeriods)
standard = donchian(standardPeriods)
leadingSpan1 = avg(turning, standard)
leadingSpan2 = donchian(leadingSpan2Periods)

//Crosses up/down Tenkan-Sen (9 Period) and Kinjun-Sen (26 Period)
crossUpTenkanKinjun = turning[1] < standard[1] and turning > standard ? 1 : 0
crossDnTenkanKinjun = turning[1] > standard[1] and turning < standard ? 1 : 0
cupA = crossUpTenkanKinjun == 1 ? crossUpTenkanKinjun : 0
cdnB = crossDnTenkanKinjun == 1 ? crossDnTenkanKinjun : 0

//First Definition for Ability to Color Cloud based on Trend.
leadingSpan1Above = leadingSpan1 >= leadingSpan2 ? 1 : na
leadingSpan2Below = leadingSpan1 <= leadingSpan2 ? 1 : na
//Next 4 lines are code used as plots in order to Color Cloud based on Trend
span1plotU = leadingSpan1Above ? leadingSpan1 : na
span2plotU = leadingSpan1Above ? leadingSpan2 : na

span1plotD = leadingSpan2Below ? leadingSpan1 : na
span2plotD = leadingSpan2Below ? leadingSpan2 : na

col = leadingSpan1 >= leadingSpan2 ? lime : red

//plots for 3 lines other than cloud.
plot(sts and turning ? turning : na, title = 'Tenkan-Sen (9 Period)', linewidth=4, color=lime)
plot(sks and standard ? standard : na, title = 'Kinjun-Sen (26 Period)', linewidth=4, color=fuchsia)
plot(sll and close ? close : na, title='Chinkou Span (Lagging Line)', linewidth=4, offset = -displacement, color=aqua)
//Cloud Lines Plot Statements - ***Regular Lines to Fill in Break in Gap
plot(sc and leadingSpan1 ? leadingSpan1 : na, title = 'Senkou Span A (26 Period) Cloud', style=line, linewidth=5, offset = displacement, color=col)
plot(sc and leadingSpan2 ? leadingSpan2 : na, title = 'Senkou Span B (52 Period) Cloud', style=line, linewidth=5, offset = displacement, color=col)
//Cloud Lines Plot Statements - ***linebr to create rules for change in Shading
p1 = plot(sc and span1plotU ? span1plotU  : na, title = 'Senkou Span A (26 Period) Above Span B Cloud', style=linebr, linewidth=6, offset = displacement, color=col)
p2 = plot(sc and span2plotU ? span2plotU  : na, title = 'Senkou Span B (52 Period) Below Span A Cloud', style=linebr, linewidth=6, offset = displacement, color=col)
p3 = plot(sc and span1plotD ? span1plotD  : na, title = 'Senkou Span A (26 Period) Below Span B Cloud', style=linebr, linewidth=6, offset = displacement, color=col)
p4 = plot(sc and span2plotD ? span2plotD  : na, title = 'Senkou Span B (52 Period) Above Span A Cloud', style=linebr, linewidth=6, offset = displacement, color=col)
//Fills that color cloud based on Trend.
fill(p1, p2, color=lime, transp=70, title='Kumo (Cloud)')
fill(p3, p4, color=red, transp=70, title='Kumo (Cloud)')
//Arrow Plots At Tenkan-Sen (9 Period) and Kinjun-Sen (26 Period)
plotarrow(cr1 and cupA ? cupA : na, title="CrossUp Tenkan Kinjun Entry Arrow", colorup=yellow, maxheight=90, minheight=50, transp=0)
plotarrow(cr1 and cdnB*-1 ? cdnB*-1 : na, title="CrossDn Tenkan Kinjun Entry Arrow", colordown=yellow, maxheight=90, minheight=50, transp=0)
I LOVE this view! Coming from using https://cryptowat.ch I was a little sad to not see it native... thank you!!
+1 Reply
thanks for this looks great. but me being stupid what should the chart time interval be set to, as it seems to be different depending on what interval i select
+3 Reply
Hello, this indicator is for any type of asset, such as Stocks, forex?
Is it for any time graphic?
Do you already have a newer version?
Reply
How about ichimoku with time analysis
Reply
Hi Chris,

Could code a indi showing persistent lines of each top and Bottom level of each candle ?
with following parameters :
- From : Date to Date
- Time frame : Year, Month, Week, Day
- "Top" line : Red "Bottom" level : Green

you can email me daniel.buratti@gmail.com

Best regards
Daniel
Reply
Hi Chris,

The crossover arrows don't seem to plot
I have the tick box checked but still nothing.

Any ideas?

Thanks
Kiran
Reply
Hi CM! What would be the code to add an Alert ability?
Reply
chartsurfer chartsurfer
*For a Cloud break? Like "if the candle closes below the cloud, then send alert" .... This would change my life. Thanks I know you're a busy man...
Reply
Chris; could you make an update or create a line of code, so the chikou changes color once crossed above or below the cloud, with green and red? Thanks.
Reply
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder 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 Priority Support Contact Support Ideas Published Followers Following Private Messages Chat Sign Out