TradingView
blackcat1402
١٩ تموز يوليو ٢٠٢٢ ٠١:٠٢

[blackcat] L2 Vitali Apirine Weekly & Daily Stochastics 

Bitcoin / U.S. dollarBitstamp

الوصف

Level 2

Background

Vitali Apirine’s articles in the Sep issues on 2018,“Weekly & Daily Stochastics”

Function

In “Weekly & Daily Stochastics” in this issue, author Vitali Apirine introduces a novel approach to using the classic stochastic indicator in a way that simulates calculations based on different timeframes while using just a daily interval chart. He describes a number of ways to use this new indicator that allows traders to detect the state of longer-term trends while looking for entry points and reversals. Here, I am providing the TradingView pine code for an indicator based on the author’s ideas.

Remarks

Feedbacks are appreciated.
التعليقات
bigbang74
Hi, i'm using an version of wdstos which was hidden by tradingview since 2018. Your version's values is a bit different?

Here's the code :

//@version=3
//Author: Vitali Apirine
//Coded by: Twitter @borserman

study(title="Weekly & Daily Stochastics", shorttitle="WDSTOS")

Periods = input(14, minval=1, maxval=30, title="Short Period")
Periods1 = input(3, minval=1, maxval=10, title="Short Period SMA")
Pds = input(70, minval=1, maxval=200, title="Long Period")
Pds1 = input(3, minval=1, maxval=10, title="Long Period SMA")

StocD=(close-lowest(low,Periods))/(highest(high,Periods)-lowest(low,Periods))*100
SD=sma(StocD,Periods1)
StocW=(close-lowest(low,Pds))/(highest(high,Pds)-lowest(low,Pds))*100
SW=sma(StocW,Pds1)

plot(80, style=line, color=red)
plot(20, style=line, color=green)
plot(SW, title="Weekly STOS", color=blue, linewidth=2)
plot(SD, title="Daily STOS", color=red, linewidth=1)
bigbang74
@bigbang74, Sorry i found it; ema-sma difference :)
المزيد