CCIEMA

Rick3712 · study · 12 行 · 点赞 2,272 · TradingView 原页

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

Pine Script

study(title="CCI + EMA", shorttitle="CCIEMA by perrito Blacky")
length1 = input(20, minval=1)
ma_length = input(13, minval=1)
src = input(close, title="Source")
ma1 = ema(src, length1)
cci1 = (src - ma1) / (0.015 * dev(src, length1))
plot(cci1, color=blue)
plot(ema(cci1, ma_length), color=green)
band0 = hline(100)
band1 = hline(0)
band2 = hline(-100)
fill(band0, band2)

← 返回列表