资源描述:
《【股票指标公式下载】-【通达信】分时一目了然(准备、》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、【通达信】分时一目了然(准备、诱空、阻力、杀多)-指标公式源码RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;K:=SMA(RSV,3,1),COLORWHITE;D:=SMA(K,3,1),COLORYELLOW;J:=3*K-2*D,COLORFF00FF;A:=250;DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26));DEA:=EMA(DIFF,9),COLORBLUE,LINETHICK0;MACD:=2*(DIFF
2、-DEA);MM:=IF(MACD<0,MACD,0);JJ:=MM>REF(MM,1);ZZ:=REF(JJ,1)=1;准备:=(JJANDZZ)*DEA;STICKLINE(准备=DEA,1,-1,2,1),COLORFFFF00;JH:=HHV(MAX(K,MAX(D,J)),A);DH:=HHV(MAX(DIFF,DEA),A);SH:=INTPART(JH/DH)/2;DIFF50:=SH*DIFF+50,COLORFFFF00;DEA50:=SH*DEA+50,COLORBLUE;STICK
3、LINE(DIFF50>DEA50,0,1.5*(DIFF50-DEA50),0,0),COLORRED;STICKLINE(DIFF50REF(1.5*(DIFF50-DEA50),1),1.5*(DIFF50-DEA50),0),STICK,COLORLICYAN;绿柱:IF(1.5*(DIFF50-DEA50)4、),1.5*(DIFF50-DEA50),0),STICK,COLORGREEN;缩头:=IF(1.5*(DIFF50-DEA50)>0ANDREF(1.5*(DIFF50-DEA50),1)>REF(1.5*(DIFF50-DEA50),2)AND1.5*(DIFF50-DEA50)5、2)AND1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);杀多:=IF(1.5*(DIFF50-DEA50)<0ANDREF(1.5*(DIFF50-DEA50),1)>REF(1.5*(DIFF50-DEA50),2)AND1.5*(DIFF50-DEA50)[0ANDREF(1.5*(DIFF50-DEA50),1)]6、DIFF50-DEA50),2)AND1.5*(DIFF50-DEA50)>REF(1.5*(DIFF50-DEA50),1),1,0);阻力:=IF(CROSS(C,MA(C,20))ORCROSS(C,MA(C,60)),1,0);DRAWTEXT(FILTER(杀多,3)AND杀多,1.5*(DIFF50-DEA50),'杀多'),COLORFF00FF;DRAWTEXT(FILTER(缩头,3)AND缩头,1.5*(DIFF50-DEA50)+0.2,'卖'),COLORFF00FF;DRAWT
7、EXT(FILTER(诱空,3)AND诱空,1.5*(DIFF50-DEA50),'洗盘'),COLOR00FF00;DRAWTEXT(FILTER(缩脚,3)AND缩脚,1.5*(DIFF50-DEA50)-0.2,'买'),COLOR00FF00;DRAWTEXT(FILTER(阻力,16)AND1.5*(DIFF50-DEA50)>=0,1.5*(DIFF50-DEA50)+0.01,'¤阻力'),COLOR00FFFF;VRA:=REF(CLOSE,1);VRB:=SMA(MAX(CLOSE-V
8、RA,0),6,1)/SMA(ABS(CLOSE-VRA),6,1)*100;VRC:=(2*CLOSE+HIGH+LOW)/4;VR0:=LLV(LOW,34);VR1:=HHV(HIGH,34);VR2:=EMA((VRC-VR0)/(VR1-VR0)*100,6);VR3:=EMA(0.667*REF(VR2,1)+0.333*VR2,4);VA1:=(REF(HIGH,1)+REF(LOW,1))/2;VA2:=MA(CLOSE,2