Stochastic Full Weighted 14-6-14 PRIMUS

lfsscr1990 · study · 18 行 · 点赞 8 · TradingView 原页

本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。

Pine Script

//@version=6
indicator("Stochastic Full Weighted 14-6-14", overlay=false)
 
kPeriod = 14
dPeriod = 6
slowingPeriod = 14
 
lowestLow = ta.lowest(low, kPeriod)
highestHigh = ta.highest(high, kPeriod)
fastK = highestHigh != lowestLow ? 100 * (close - lowestLow) / (highestHigh - lowestLow) : 0
 
fullK = ta.wma(fastK, slowingPeriod)
fullD = ta.wma(fullK, dPeriod)
 
plot(fullK, "Full K", color=color.blue, linewidth=2)
plot(fullD, "Full D", color=color.orange, linewidth=2)
hline(70, "Sobrecompra", color=color.red)
hline(30, "Sobreventa", color=color.green)

← 返回列表