How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Feature Request FAQ Help & Wiki Twitter

# 5/35 jorzoniano

55 0
oscillator 5/35
```study("5/35")

K2=  0.0555
len = 5
mp = (open + close)/2
b = sma((open + close)/2, 35)

s=sma(mp,5)-sma(mp,35)

//x = s>0? s: s[2]
//y=  s< 0? s: y[1]
Avgp = ema(s,len)

r = s<0? Bs[1]: 0
x = s>=0? Bi[1] : 0
Bs = s>=0? s*K2+Bs[1]*(1-K2) :r

//z = s>=0? Bs : Bs[1]

//Bs = s>=0? s*K2+Bs[1]*(1-K2) :x[1]

Bi = s<0?  s*K2+Bi[1]*(1-K2) :x
plot(Bs)
plot(Bi)
i= s<Avgp and s < 0? fuchsia: na
o= s<Avgp and s > 0? #00BFFF: na
//c_color=s <= 0?  red : blue
//#00BFFF

//plot(Avgp)
//plot(Bs)
//plot(Bi)
p1 =plot(s, color=blue, style=histogram, linewidth=2)
p2 = plot(s, color=i, style=histogram, linewidth=2)
p3=plot(s, color=o, style=histogram, linewidth=2)
//fill(p1,p2,yellow)```
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia

한국
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