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

# Sniper Stochastics 2

268 1
Sniper Stochastics 2 is like the other one - a triple stochastics consisting of different lengths, in this case 55,89,144.

One thing I noticed was that the stochastics lines can be a kind of divergence detector with the slow (red), medium (blue) and fast(black) lines making breakaways once they converge.
For example, if the lines are together and the black line starts to diverge upwards, it means that there is a positive divergence which will happen quickly and then end. The blue and the red lines are longer term divergences.

I wanted to share this one and the unique and interesting use of divergences with this indicator.
```study(title="Sniper Stochastics 2", shorttitle="Snp Stoch2")
plotchar = location.top
length1 = input(55, minval=1), smoothK1 = input(1, minval=1), smoothD1 = input(3, minval=1)
length2 = input(89, minval=1), smoothK2 = input(1, minval=1), smoothD2 = input(1, minval=1)
length3 = input(144,minval=1),smoothk3 = input(1,minval=1),smoothD3 = input(1,minval=1)
k1 = sma(stoch(close, high, low, length1), smoothK1)
d1 = sma(k1, smoothD1)
plot(k1, color=black)
k2 = sma(stoch(close, high, low, length2), smoothK2)
d2 = sma(k2, smoothD2)
plot(k2, color=blue)
k3 = sma(stoch(close,high,low,length3),smoothk3)
d3 = sma(k3,smoothD3)
plot(k3,color=red)
```

## Related Ideas

Great stuff! Thanks so much!
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