DY1:=(2*CLOSE+HIGH+LOW)/4;
DY2:=LLV(LOW,34);
DY3:=HHV(HIGH,34);
BDC:EMA((DY1-DY2)/(DY3-DY2)*100,9),COLORRED,LINETHICK2;
BDD:EMA((0.667*REF(BDC,1)+0.333*BDC),3),COLORFF9900,LINETHICK2;
BDE:EMA((DY1-DY2)/(DY3-DY2)*100,30),COLORFFFFFF,LINETHICK1;
BDF:EMA(BDE,5),LINETHICK1,COLORFF0000;
DY4:=(CLOSE-LLV(LOW,89))/(HHV(HIGH,89)-LLV(LOW,89))*100;
{- }
KW:=SMA(DY4,34,1),COLORCCCC22;
DW:=SMA(KW,13,1);
中期趋势:=KW,COLORYELLOW;
DY5:=(CLOSE-LLV(LOW,250))/(HHV(HIGH,250)-LLV(LOW,250))*100;
KM:=SMA(DY5,89,1),COLOR3366DD;
DM:=SMA(KW,34,1);
长期趋势:=KM,COLOR00FF00;
STICKLINE(BDC>=BDD,BDC,BDD,1,0),COLORRED;
STICKLINE(BDC<BDD,BDD,BDC,1,0),COLORFFFF33;
STICKLINE(BDE>=BDF,BDE,BDF,1,0),COLORFFFFFF;
STICKLINE(BDE<BDF,BDF,BDE,1,0),COLORFF00FF;