通達信公認精選實用指標 精選組合戰(zhàn)略家公式 附指標源碼 一,〈大盤頂底〉是用大盤抄底、大盤逃頂、大盤牛熊分界三個公式組合而成。 你可用作主圖,也可用作副圖。副圖隨時可有看,但有毛病。一是畫面先 要調入足夠的周期K線然后再放大。二是個股周期與大盤在時間上不一定 對應。 {大盤頂底} DH:=INDEXH; DO:=INDEXO; DL:=INDEXL; DC:=INDEXC,NODRAW; N:=MA(DC,120); M:=MA(DC,250); S1:DC>N AND N>REF(N,1),COLORRED,NODRAW; S2:DC<N AND DC>M,COLORGREEN,NODRAW; S3:DC<M,COLORBLUE,NODRAW; S4:DC>N AND N<M ,COLORYELLOW,NODRAW; S5:IF((S1+S2+S3+S4)=0,1,0),NODRAW; STICKLINE(S1,DH,DL,0,0),COLORRED; STICKLINE(S1 AND DC>=DO,DC,DO,2.8,1),COLORRED; STICKLINE(S1 AND DC<DO,DC,DO,2.8,0),COLORRED; STICKLINE(S2,DH,DL,0,0),COLORGREEN; STICKLINE(S2 AND DC>=DO,DC,DO,2.8,1),COLORGREEN; STICKLINE(S2 AND DC<DO,DC,DO,2.8,0),COLORGREEN; STICKLINE(S3,DH,DL,0,0),COLORBLUE; STICKLINE(S3 AND DC>=DO,DC,DO,2.8,1),COLORBLUE; STICKLINE(S3 AND DC<DO,DC,DO,2.8,0),COLORBLUE; STICKLINE(S4,DH,DL,0,0),COLORYELLOW; STICKLINE(S4 AND DC>=DO,DC,DO,2.8,1),COLORYELLOW; STICKLINE(S4 AND DC<DO,DC,DO,2.8,0),COLORYELLOW; STICKLINE(S5,DH,DL,0,0),COLORCYAN; STICKLINE(S5 AND DC>=DO,DC,DO,2.8,1),COLORCYAN; STICKLINE(S5 AND DC<DO,DC,DO,2.8,0),COLORCYAN; Z:=MA(DC,120); VAR33:=(MA(DH ,5)-Z)/Z; VAR44:=MA((DC-LLV(DL,10))/(HHV(DH,10)-LLV(DL,10))*100,3); D11:DRAWTEXT(CROSS(95,VAR44) AND VAR33>0.3,1.01*DH ,'★S'),COLORRED; D22:DRAWTEXT( CROSS(93,VAR44) AND HHV(DH,30)/LLV(DL,30)>1.1 AND REF(Z,1)/Z>0.997 ,1.01*DH ,'★S'),COLORGREEN; D33:DRAWTEXT(DC<Z AND Z<REF(Z,1) AND REF(VAR44,1)>90 AND VAR44<REF(VAR44,1) AND REF(VAR44,1)>REF(VAR44,2) ,1.01*DH,'★S'),COLORBLUE; VAR3:=(MA(DC,5)-Z)/Z; VAR4:=MA((DC-LLV(DL,20))/(HHV(DH,20)-LLV(DL,20))*100,3); D1:DRAWTEXT(DC>Z AND REF(VAR4,1)<30 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) ,0.99*DL ,'★B'),COLORRED; D2:DRAWTEXT(REF(VAR4,1)<7 AND VAR4>REF(VAR4,1) AND REF(VAR4,1)<REF(VAR4,2) AND VAR3<-0.1,0.99*DL ,'★B'),COLORGREEN; D3:DRAWTEXT(CROSS(VAR4,5) AND VAR3<-0.3,0.99*DL ,'★B'),COLORBLUE; ============================================================= 由于文章篇幅限制,源碼比較長,未能全部發(fā)出,想要全套指標的朋友我會單獨無償給到大家自行測試! |
|