(0.6, 'Diameter Of Circles')
filter_vol = input.float(2, 'Filter Points by Volume', minval = 0, maxval = 6)
ph = ta.pivothigh(15, 15)
pl = ta.pivotlow(15, 15)
volume_ = ta.sum(volume, 30)
reference_vol = ta.percentile_nearest_rank(volume_, 1000, 95)
norm_vol = volume_ / reference_vol * 5
if not na(ph) and norm_vol > filter_vol
label.new(bar_index, high, text = "High Volume", color=color.red)
if not na(pl) and norm_vol > filter_vol
label.new(bar_index, low, text = "Low Volume", color=color.green) 来源:今日美股网lg...