价:EMA(MA((((C-REF(C,1))+(H-REF(H,1))+(L-REF(L,1)))/3)/C,5),1)*50;
价5:MA(价,5);
价Q:=C/HHV(H,5);价Q5:MA(价Q,5);
STICKLINE(价>价Q5,价Q5,价,3,0),COLOR32CD32 ;
STICKLINE(价5>价Q5,价Q5,价5,3,0),COLORFF00FF ;
TYP:=(HIGH+LOW+CLOSE)/3;
价均:=EMA(TYP/REF(TYP,1),5);
大盘:=(INDEXH+INDEXL+INDEXC)/3;
大盘均:EMA(大盘/REF(大盘,1),5);
启稳:=COUNT(CROSS(价Q,价Q5),价均<大盘均)=1;
买:=COUNT(CROSS(价,价5),价均<大盘均)=1;
DRAWTEXT(启稳,价,'启稳'),COLORYELLOW;
DRAWTEXT(买,价,'买'),COLORDBDB70;
AA:=1110730;
SFX:=EMA(2500*(CLOSE-LLV(LOW,20))/(HHV(HIGH,20)-LLV(LOW,20)),7);
ZJX:=EMA(2500*(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9)),2);
散户线:=IF(DATE<=AA,SFX,0),COLORGREEN,LINETHICK2;
庄家线:=IF(DATE<=AA,ZJX,0),COLORFF00FF,LINETHICK2;
底:=COUNT(庄家线<500 OR 散户线<500,3)>=1;
换手:=AMOUNT/V/CAPITAL*100;
东方:EMA(MA(C*换手/MA(C*换手,3),5),3);
东方5:MA(东方,5);
J:=(东方-REF(东方,1))/东方*100;
J1:=东方/J>1.2;
价D:=EMA(MA((((C-REF(C,1))+(H-REF(H,1))+(L-REF(L,1)))/3)/C,5),1)*50;
价5D:=MA(价D,5);
发家:=COUNT(0.00<=价D<=0.02 AND REF(J,1)<0 AND J>0 AND-0.02<=价5D<=0.02,CROSS(价D,价5D))=1 AND 东方>REF(东方,1) AND J1,COLORYELLOW ;
STICKLINE(发家,价,价5+0.5,1,0),COLORRED;
STICKLINE(发家 AND 底,价,价5,4,0),COLORMAGENTA;
STICKLINE(COUNT(启稳,3)>=1 AND 发家,价,价5,2,0),COLORWHITE ;
STICKLINE(COUNT(启稳,3)>=1 AND 发家 AND 底,价,价5+0.5,2,0),COLORYELLOW ;