VAR1:=(3*C+H+L+O)/6;VAR2:=7*REF(VAR1,1);VAR3:=6*REF(VAR1,2);VAR4:=5*REF(VAR1,3);VAR5:=4*REF(VAR1,4);VAR6:=3*REF(VAR1,5);VAR7:=2*REF(VAR1,6);VAR8:=REF(VAR1,8);VAR9:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;VAR10:=SMA(VAR9,2,1);VAR11:=SMA(VAR10,2,1);VAR16:=3*VAR10-2*VAR11;VAR18:=CROSS(VAR16,0)AND(H>=(1-9/100)*MA(C,10));支撑线:(1-9/100)*MA(C,10),COLORYELLOW,LINETHICK2;趋势线:(8*VAR1+VAR2+VAR3+VAR4+VAR5+VAR6+VAR7+VAR8)/36,LINETHICK2,COLORRED;NOTEXT1:IF((趋势线<=REF(趋势线,1)),趋势线,DRAWNULL),COLORGREEN,LINETHICK3;NOTEXT2:IF((趋势线>=REF(趋势线,1)),趋势线,DRAWNULL),COLORRED,LINETHICK3;DRAWICON(VAR18,L*0.95,25);