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;