hg1:=(3*c+h+l+o)/6;
hg2:=8*hg1+7*ref(hg1,1);
hg3:=6*ref(hg1,2);
hg4:=5*ref(hg1,3);
hg5:=4*ref(hg1,4);
hg6:=3*ref(hg1,5);
hg7:=2*ref(hg1,6);
hg8:=(close-llv(low,9))/(hhv(high,9)-llv(low,9))*100;
hg9:=sma(hg8,2,1);
hg10:=sma(hg9,2,1);
指标:=3*hg9-2*hg10;
平台:=cross(指标,0) and (h>=(1-9/100)*ma(c,10));
支撑线:(1-9/100)*ma(c,10),coloryellow,linethick2;
var1:(hg2+hg3+hg4+hg5+hg6+hg7+ref(hg1,8))/36,linethick2,colorred;
if((var1<=ref(var1,1)),var1,drawnull),colorgreen,linethick3;
if((var1>=ref(var1,1)),var1,drawnull),colorred,linethick3;
drawicon(平台,low*0.99,29);