WaveTrend [LazyBear] MOD for 2 timeframes

48 0 5
fast and slow WT in one Indicator
Remove from Favorite Scripts Add to Favorite Scripts
// @author LazyBear
// If you use this code in its original/modified form, do drop me a note. 
study(title="WaveTrend [LazyBear]", shorttitle="WT_LB")
n1 = input(10, "Channel Length")
n2 = input(21, "Average Length")
n3 = input(50, "channel lengt2slow")
n4 = input(105, "average length2slow")
obLevel1 = input(60, "Over Bought Level 1")
obLevel2 = input(53, "Over Bought Level 2")
osLevel1 = input(-60, "Over Sold Level 1")
osLevel2 = input(-53, "Over Sold Level 2")
ap = hlc3 
esa = ema(ap, n1)
esa2 = ema(ap, n3)
d = ema(abs(ap - esa), n1)
d2 = ema(abs(ap - esa2), n3)
ci = (ap - esa) / (0.015 * d)
ci2 = (ap - esa2) / (0.015 * d2)
tci = ema(ci, n2)
tci2= ema(ci2, n4)

wt1 = tci
wt2 = sma(wt1,4)
wt3 = tci2
wt4 = sma(wt3,4)

plot(0, color=gray)
plot(obLevel1, color=red)
plot(osLevel1, color=green)
plot(obLevel2, color=red, style=3)
plot(osLevel2, color=green, style=3)

plot(wt1, color=black)
plot(wt2, color=purple, style=3)
plot(wt1-wt2, color=purple, style=area, transp=80)
plot(wt3, color=green)
plot(wt4, color=red, style=3)
plot(wt3-wt4, color=blue, style=area, transp=80)

Ideas Scripts Chart
United States
United Kingdom
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