{指标名称可按需自拟,比如“个股控盘指标”}AAA:=(3*CLOSE + OPEN + HIGH + LOW)/6;MA12:=EMA(AAA, 12);MA36:=EMA(AAA, 36);MA108:=EMA(AAA, 108);MA250:=EMA(AAA, 250);{计算控盘度,这里 NODRAW 表示只计算不直接显示数值}控盘度:(EMA(AAA, 6) - REF(EMA(AAA, 18), 1)) / REF(EMA(AAA, 18), 1) * 100 + 55, NODRAW;{绘制控盘度大于等于 50 时的柱状图,颜色为黄S色}STICKLINE(控盘度 >= 50, 50, 控盘度, 0.8, 0), COLORYELLOW;{绘制控盘度大于等于 60 时的柱状图,颜色为红色,覆盖黄S色部分(若同时满足)}STICKLINE(控盘度 >= 60, 60, 控盘度, 0.8, 0), COLORRED;{绘制控盘度大于等于 80 时的柱状图,颜色为洋红色,覆盖前面颜色部分(若同时满足)}STICKLINE(控盘度 >= 80, 80, 控盘度, 0.8, 0), COLORMAGENTA;{设定低控盘,当控盘度大于等于 50 时取值,不显示线条粗细,黄.色,且不直接显示数值}低控盘:IF(控盘度 >= 50, 控盘度, 0), LINETHICK0, COLORYELLOW, NODRAW;{设定中控盘,当控盘度大于等于 60 时取值,不显示线条粗细,红色,且不直接显示数值}中控盘:IF(控盘度 >= 60, 控盘度, 0), LINETHICK0, COLORRED, NODRAW;{设定高控盘,当控盘度大于等于 80 时取值,不显示线条粗细,洋红色,且不直接显示数值}高控盘:IF(控盘度 >= 80, 控盘度, 0), LINETHICK0, COLORMAGENTA, NODRAW;