AA:=REF(C,1);
HH:=MAX(C,AA);
LL:=MIN(C,AA);
ZY:=REF(C,1)>REF(LL,1);{昨天收阳}
ZD:=REF(C,1)<REF(HH,1);{昨天收阴}
STICKLINE(C>=AA,LL,HH,2.7,0),COLORRED;
STICKLINE(C<AA,LL,HH,2.7,0),COLOR008000;
STICKLINE(ZY AND C>=REF(AA,1),LL,HH,2.7,0),COLORRED;
STICKLINE(ZY AND C<REF(AA,1),HH,REF(AA,1),2.7,0),COLORRED;
STICKLINE(ZY AND C<REF(AA,1),REF(AA,1),C,2.7,0),COLOR008000;
STICKLINE(ZD AND C<=REF(AA,1),LL,HH,2.7,0),COLOR008000;
STICKLINE(ZD AND C>REF(AA,1),LL,REF(AA,1),2.7,0),COLOR008000;
STICKLINE(ZD AND C>REF(AA,1),REF(AA,1),C,2.7,0),COLORRED;
MA5:EMA(CLOSE,5),COLORRED;
MS5:IF(MA5<REF(MA5,1),MA5,DRAWNULL),COLORGREEN;