{国色彩旗指标}
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
A2:IF(MB2
A3:IF(MB3
A4:IF(MB4
A5:IF(MB5
A6:IF(MB6
VAR2:MB1,COLORMAGENTA,LINETHICK2;
VAR3:IF(VAR2
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
A8:IF(MB8
A9:IF(MB9
A10:IF(MB10
A11:IF(MB11
A12:IF(MB12
A13:IF(MB13
A14:IF(MB14
VAR2E:MB1E,COLOR007FFF,LINETHICK2;
VAR3E:IF(VAR2E
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;