本页源码来自 TradingView 公开发布的开源脚本,版权归原作者所有, 请遵循其原始许可(Pine 脚本常见 CC BY-NC-SA / MPL-2.0 / MIT)。 本项目仅用于研究检索与许可范围内的移植。
//@version=4
study("Volatility Contraction", overlay=true)
h1 = high[1]
h2 = high[2]
h3 = high[3]
h = high
l1 = low[1]
l2 = low[2]
l3 = low[3]
l = low
vc = h3 > h and h3 > h2 and h3 > h1 and l3 < l1 and l3 < l2 and l3 < l
if vc
hh = h3
hh
plotshape(vc, style=shape.cross, location=location.abovebar, color=color.black, text='VC')
//plot (h4, title="Monthly Pivot", style=cross, color=white, linewidth=1)