jamc

Ichimoku_on_steroids v 1.0 IN

Same as the overlay version, without the leading / price lines, as an indicator.
Remove from Favorite Scripts Add to Favorite Scripts
study("Ichimoku_on_steroids v 1.0 IN")

varLo = input(title="Fast Leading Line", type=integer, defval=9, minval=1, maxval=99999)
varHi = input(title="Slow Leading Line", type=integer, defval=26, minval=1, maxval=99999)
emafreq = input(title="Ema on price frequency", type=integer, defval=10, minval=1, maxval=99999)

a = lowest(varLo)
b = highest(varLo)
c = (a + b ) / 2

d = lowest(varHi)
e = highest(varHi)
f = (d + e) / 2

g = ((c + f) / 2)[varHi]
h = ((highest(varHi * 2) + lowest(varHi * 2)) / 2)[varHi]

z = ema(close, emafreq)

bgcolor(z > h and z > g ? green : z < h and z < g ? red : yellow, transp=70)
Is it possible to write the same indicator, but for the cloud without displacement to the future?
Reply
jamc PRO nikakolin
to remove the displacement, all you need to do is remove the from the code :)
Reply
hm ... remove the 'squarebracket' varHi 'squarebracket' ...
Reply
It's a pity. I can not do it.
Thank you.
Reply
cristian.d nikakolin
study("Ichimoku_on_steroids v 1.0 IN")

varLo = input(title="Fast Leading Line", type=integer, defval=9, minval=1, maxval=99999)
varHi = input(title="Slow Leading Line", type=integer, defval=26, minval=1, maxval=99999)
emafreq = input(title="Ema on price frequency", type=integer, defval=10, minval=1, maxval=99999)

a = lowest(varLo)
b = highest(varLo)
c = (a + b ) / 2

d = lowest(varHi)
e = highest(varHi)
f = (d + e) / 2

g = ((c + f) / 2)
h = ((highest(varHi * 2) + lowest(varHi * 2)) / 2)

z = ema(close, emafreq)

bgcolor(z > h and z > g ? green : z < h and z < g ? red : yellow, transp=70)
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Brasil
Россия
Türkiye
日本
한국
Home Stock Screener Forex Signal Finder 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 Account and Billing Sign Out