{国色彩旗指标}
MB1:=EMA(C,5),COLORYELLOW,LINETHICK2;
MB2:EMA(MB1,2),COLORYELLOW;
MB3:EMA(MB2,2),COLORYELLOW;
MB4:EMA(MB3,2),COLORYELLOW;
MB5:EMA(MB4,2),COLORYELLOW;
MB6:EMA(MB5,2),COLORYELLOW;
A1:IF(MB1<REF(MB1,1),MB2,DRAWNULL),COLORBLUE,LINETHICK1;
A2:IF(MB2<REF(MB2,1),MB2,DRAWNULL),COLORBLUE,LINETHICK1;
A3:IF(MB3<REF(MB3,1),MB3,DRAWNULL),COLORBLUE,LINETHICK1;
A4:IF(MB4<REF(MB4,1),MB4,DRAWNULL),COLORBLUE,LINETHICK1;
A5:IF(MB5<REF(MB5,1),MB5,DRAWNULL),COLORBLUE,LINETHICK1;
A6:IF(MB6<REF(MB6,1),MB6,DRAWNULL),COLORBLUE,LINETHICK1;
VAR2:MB1,COLORMAGENTA,LINETHICK2;
VAR3:IF(VAR2<REF(VAR2,1),VAR2,DRAWNULL),COLORBLUE,LINETHICK2;
MB1E:=EMA(C,21),COLORRED,LINETHICK2;
MB7:EMA(MB1E,2),COLORRED;
MB8:EMA(MB7,2),COLORRED;
MB9:EMA(MB8,2),COLORRED;
MB10:EMA(MB9,2),COLORRED;
MB11:EMA(MB10,2),COLORRED;
MB12:EMA(MB11,2),COLORRED;
MB13:EMA(MB12,2),COLORRED;
MB14:EMA(MB13,2),COLORRED};
A7:IF(MB7<REF(MB7,1),MB7,DRAWNULL),COLORGREEN,LINETHICK1;
A8:IF(MB8<REF(MB8,1),MB8,DRAWNULL),COLORGREEN,LINETHICK1;
A9:IF(MB9<REF(MB9,1),MB9,DRAWNULL),COLORGREEN,LINETHICK1;
A10:IF(MB10<REF(MB10,1),MB10,DRAWNULL),COLORGREEN,LINETHICK1;
A11:IF(MB11<REF(MB11,1),MB11,DRAWNULL),COLORGREEN,LINETHICK1;
A12:IF(MB12<REF(MB12,1),MB12,DRAWNULL),COLORGREEN,LINETHICK1;
A13:IF(MB13<REF(MB13,1),MB13,DRAWNULL),COLORGREEN,LINETHICK1;
A14:IF(MB14<REF(MB14,1),MB14,DRAWNULL),COLORGREEN,LINETHICK1};
VAR2E:MB1E,COLOR007FFF,LINETHICK2;
VAR3E:IF(VAR2E<REF(VAR2E,1),VAR2E,DRAWNULL),COLOREEFF00,LINETHICK2;
MAA5:=MA(C,5),COLORFF00FF,LINETHICK2;
MAA10:=MA(C,10);
MAA30:=MA(C,30),COLORRED;
KS:=IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;
A3V:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4V:=SMA(A3V,3,1);
A5V:=SMA(A4V,3,1);
A6V:=3*A4V-2*A5V;
A7V:=C-REF(C,1);
A8V:=100*EMA(EMA(A7V,6),6)/EMA(EMA(ABS(A7V),6),6);
买Q:=LLV(A8V,2)=LLV(A8V,7) AND COUNT(A8V<0,2) AND CROSS(A8V,MA(A8V,2));
DRAWTEXT(FILTER(买Q=1,5),LOW-0.05,'★'),COLORYELLOW;