九毛八公式指标
公式模块:
涨停:=IF(REF(C,1)*1.1-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,2.0,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORYELLOW;
X1:=(REFDATE(HHV(HIGH,60),DATE)-REFDATE(LLV(LOW,60),DATE))/50;
X2:=REFDATE(LLV(LOW,60),DATE)+X1;
DI:=EMA(C,12)-EMA(C,26);
DE:=EMA(DI,9);
M:=(DI-DE)*4+X2;
DRAWBAND(M,RGB(255,0,0),X2,RGB(0,255,250));
叉:=crOSS(DI,DE) AND DI<-0.1;
DRAWICON(叉,X2*0.99,15) ;
DRAWTEXT(叉,X2*0.98,'鱼头'),COLOR00FFFF;
CBFB:=MA(C,2);
JL:=IF(C>CBFB,V,0);
CL:=IF(C<CBFB,V,0);
JLH:=SUM(JL,4);
CLH:=SUM(CL,4);
LHB:=CLH/JLH;
TJ1:=IF(HHV(LHB,5)>4 AND CROSS(2,LHB) AND C>=O,1,0);
DRAWICON(TJ1,L*0.96,9);
ZT:=C/REF(C,1)>1.097;
DRAWTEXT(ZT,L*0.98,'涨停'),COLORRED;
VARZT:=BArslAST(C/REF(C,1)>1.097);
VARE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;
VARF:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR10:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);
VAR11:=VARF<REF(VAR10,1) AND vol>REF(VOL,1) AND CLOSE>REF(CLOSE,1);
DRAWTEXT(VAR11 AND COUNT(VAR11,30)=1,LOW*0.895,'↑大资金活动'),LINETHICK1,COLORYELLOW;
AA1:=EMA(C,14)COLORWHITE,LINETHICK1;
A1X:=(AA1-REF(AA1,1))/REF(AA1,1)*100,NODRAW;
坐等收渔利:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL)COLORRED,LINETHICK3;
去找其他股:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+0.5),DRAWNULL)COLORGREEN,LINETHICK1;
量顶:=FILTER(V>0.9*HHV(V,150),3)=1;
DRAWTEXT(量顶,1.06*H,'减'),COLORFFAA00;
DRAWTEXT(量顶,1.02*H,'仓'),COLORFFAA00;
MA11:=EMA(C,5),COLOR0000FF,LINETHICK1;
MA22:=REF(MA11,1),COLORFFFFFF;
MA33:=EMA(EMA(C,7),4),COLOR00FFFF,LINETHICK1;
DRAWBAND(MA11,RGB(255,0,0),MA22,RGB(0,255,0));
DRAWBAND(MA22,RGB(255,0,255),MA33,RGB(0,0,255)); DI:=EMA(C,12)-EMA(C,26);
DE:=EMA(DI,9);
鱼头:CROSS(DI,DE) AND DI<-0.1;