A1:=REF(CLOSE,1);
A2:=SMA(MAX((CLOSE-A1),0),3,1)/SMA(ABS((CLOSE-A1)),3,1)*100,COLORWHITE;
A3:=SMA(MAX((CLOSE-A1),0),5,1)/SMA(ABS((CLOSE-A1)),5,1)*100,COLORYELLOW;
A4:=SMA(MAX((CLOSE-A1),0),8,1)/SMA(ABS((CLOSE-A1)),8,1)*100,COLORLIMAGENTA;
A5:=SMA(MAX((CLOSE-A1),0),13,1)/SMA(ABS((CLOSE-A1)),13,1)*100,COLORLIRED;
A6:=SMA(MAX((CLOSE-A1),0),21,1)/SMA(ABS((CLOSE-A1)),21,1)*100,COLORLICYAN;
A7:=SMA(MAX((CLOSE-A1),0),34,1)/SMA(ABS((CLOSE-A1)),34,1)*100,COLORLIGREEN;
A8:=SMA(MAX((CLOSE-A1),0),55,1)/SMA(ABS((CLOSE-A1)),55,1)*100,COLORLIBLUE;
A9:=SMA(MAX((CLOSE-A1),0),89,1)/SMA(ABS((CLOSE-A1)),89,1)*100,COLORGRAY;
A10:=SMA(MAX((CLOSE-A1),0),100,1)/SMA(ABS((CLOSE-A1)),100,1)*100,COLORLIGRAY;
A11:=SMA(MAX((CLOSE-A1),0),120,1)/SMA(ABS((CLOSE-A1)),120,1)*100,COLORBROWN;
A12:=SMA(MAX((CLOSE-A1),0),160,1)/SMA(ABS((CLOSE-A1)),160,1)*100,COLORMAGENTA;
A13:=(((A5<=20) AND (A6<=49))*2),COLORRED,POINTDOT,LINETHICK2;
黄金底:IF(SMA(MAX(CLOSE-REF(CLOSE,2),0),7,1)/SMA(ABS(CLOSE-REF(CLOSE,2)),7,1)*100<12,1,0),COLORYELLOW;
紫金底:IF(SMA(MAX(CLOSE-REF(CLOSE,5),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,5)),13,1)*100<12,1,0),COLORMAGENTA;