INDEXC>MA(INDEXC,10),COLORWHITE;
F:=EMA(CLOSE,10)-EMA(CLOSE,22);
A:=EMA(F,8);
MD:=(F-A)*2;
周期:=BArslAST(crOSS(F,A) AND A<=0.05)+1;
绿柱:=BARSLASTCOUNT(MD1;
红柱:=BARSLASTCOUNT(MD>REF(MD,1))>1;
绿柱群:BARSLASTCOUNT(绿柱),COLORGREEN;
红柱群:BARSLASTCOUNT(红柱),COLORRED;
绿柱群统计:=COUNT(绿柱群,周期)COLORYELLOW;
红柱群统计:=COUNT(红柱群,周期),COLORLIMAGENTA;