bc:=(IF(C>(H+L+C)/3,(H*0.618+L*0.382)*0.382,(H*0.382+L*0.618)*0.382)+(O*0.382+C*0.618)*0.618);
P:=3;
前高:=HHV(bc,P);
前低:=LLV(bc,P);
DH:=bc=前高;
DL:=bc=前低;
高:=BArslAST(DH);
低:=BARSLAST(DL);
H1:=REF(bc,高);
L1:=REF(bc,低);
中:=(H1+L1)/2;
A浪:=MA(中,5),COLORWHITE;
C浪:=(EMA(A浪,25)),COLORYELLOW,LINETHICK2;
主浪:(EMA(A浪,75)),COLOR6600FF,LINETHICK2;
A上:A浪+2*STD(中,5),COLORWHITE,DOTLINE;
A下:A浪-2*STD(中,5),COLORWHITE,DOTLINE;
C上:C浪+2*STD(A浪,25),COLORYELLOW;
C下:C浪-2*STD(A浪,25),COLORYELLOW;
主上:主浪+2*STD(A浪,75),COLOR6600FF,DOTLINE;
主下:主浪-2*STD(A浪,75),COLOR6600FF,DOTLINE;
离合:主浪-((c-主浪)*c-主浪)/主浪,LINETHICK,COLORGREEN;
IF(离合<0,离合/10,离合),COLOR00bb00;