N:=3; 財神指標a:=(C-EMA(C,6))/EMA(C,6)*100; qq2:=(C-MA(C,24))/MA(C,24)*100; qq3:=(C-MA(C,32))/MA(C,32)*100; qq4:=(財神指標a+qq2+qq3)/3;{股票指標公式WWW.HAO169CN.COM} KX:MEMA(qq4,N),NODRAW,COLORWHITE; DX:MEMA(KX,3),NODRAW,COLORYELLOW; DRAWBAND(KX,RGB(150,0,100),DX,RGB(100,100,50)); MCD:EMA(EMA(財神指標a,3),N)*2,COLORSTICK; qq5:=EMA(100*(C-LLV(C,34))/(HHV(H,34)-LLV(L,34)),5)-20; qq6:=SMA(SMA(100-3*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1)+SMA(2*(C-LLV(C,75))/(HHV(H,75)-LLV(L,75))*100,20,1),15,1); qq7:=qq6<REF(qq6,1) AND MCD>REF(MCD,1) AND DX>REF(DX,1) AND V>REF(V,1) AND C>O*1.011; qq8:=LLV(qq5,3)<qq5; 財神指標:=KX>DX AND DX<7; 上漲:IF(qq8>=1 AND 財神指標 AND REF(KX<DX,1),1,0),NODRAW,COLORRED; 上漲1:IF(qq7 AND qq8 AND 財神指標,1,0),NODRAW,COLORYELLOW; STICKLINE(上漲,-2,0,2,0),COLORRED; STICKLINE(上漲1=1 AND REF(上漲1,1)<=0,0,1,2,0),COLORYELLOW; DRAWTEXT(上漲,0,'①'),COLORWHITE; DRAWTEXT(上漲1 AND REF(上漲1,1)<=0,2,'②'),COLORYELLOW; |
|