有人知道我可以使用什么脚本在交易视图中的日线图上绘制前一个季度(3个月)的高点和低点吗? 我现在在前一周的高点和低点使用的脚本如下。
此致
Juros
Blockquote
//modified by Juros as by xKaVaLiS as modidified by zonedoutdad from the script by ChrisMoody
study(title="previous Week high & low", shorttitle="Prev Wk H-L", overlay=true, precision=8)
swt = input(true, title="Show This Weeks OHLC?")
showMonthly = input(false, title="Show Monthly Data (open/close)?")
highlightBG = input(false, title="Highlight Background Bias")
aboveBelowBarWeekIndicator = input(true, title="Turn on Above/Below Week Open Top Chart")
//Weekly
prevWeekHigh = security(tickerid, 'W', high[1], lookahead=true)
prevWeekLow = security(tickerid, 'W', low[1], lookahead=true)
//Weekly Plots
plot(swt and prevWeekHigh ? prevWeekHigh : na, title="Prev Week High", style=stepline, linewidth=1, color=green,transp=50)
plot(swt and prevWeekLow ? prevWeekLow : na, title="Prev Week Low", style=stepline, linewidth=1, color=red,transp=50)