DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26); DEA:=EMA(DIFF,9); MACD:=2*(DIFF-DEA); MA60:MA(C,60),COLORRED; MA10:MA(C,10),COLORBLUE; MA5:MA(C,5),COLORGREEN; STICKLINE(MA60>=REF(MA60,1),MA60*0.999,MA60,1,0),COLORRED; STICKLINE(MA60<REF(MA60,1),MA60*0.999,MA60,1,0),COLORGREEN; STICKLINE(MA10>=REF(MA10,1),MA10*0.999,MA10,1,0),COLORRED; STICKLINE(MA10<REF(MA10,1),MA10*0.999,MA10,1,0),COLORGREEN; T1:=BARSLAST(CROSS(DEA,DIFF)); T2:=REF(T1,T1+1)+T1+1; T3:=BARSLAST(CROSS(DIFF,DEA)); T4:=REF(T3,T3+1)+T3+1; 調(diào)整:=T1-T3; 反彈:=T2-T1; T5:=BARSLAST(CROSS(MA5,MA10)); T6:=BARSLAST(CROSS(MA10,MA5)); T7:=BARSLAST(CROSS(MA10,MA60)); T72:=REF(T7,T7+1)+T7+1; T8:=BARSLAST(CROSS(MA60,MA10)); T82:=REF(T8,T8+1)+T8+1; D60:=(MA(C,10)/MA(C,60)-1)*100; C60:=(C/MA(C,60)-1)*100; L60:=(L/MA(C,60)-1)*100; H60:=(H/MA(C,60)-1)*100; 低點(diǎn):=HHV(H,T82)/LLV(L,T82); 高點(diǎn):=HHV(H,T72)/LLV(L,T72); 多標(biāo):=C*1.02; 多標(biāo)2:=C*1.01; 空標(biāo):=C*0.98; 空標(biāo)2:=C*0.99; 底背離:=IF( MACD<=0 AND L=LLV(L,T2) AND LLV(DIFF,T2)<LLV(DIFF,T1+1) AND T2-T3>=5 AND T1>=0 AND L60<=-0.5,1,0); DRAWTEXT(FILTER(底背離,3)=1 ,L*0.999,'背離'),COLORRED; 背離金叉:=IF( COUNT(底背離=1,6)>=1 AND CROSS(DIFF,DEA)=1,1,0); DRAWTEXT(背離金叉=1 ,L*0.999,'開(kāi)多'),COLORRED; DRAWNUMBER(背離金叉=1 AND MA10<REF(MA10,1),多標(biāo)2,多標(biāo)2),COLORRED; DRAWNUMBER(背離金叉=1 AND MA10>=REF(MA10,1),多標(biāo),多標(biāo)),COLORRED; 止金叉:=IF( COUNT(背離金叉=1,T3+1)>=1 AND CROSS(DEA,DIFF)=1,1,0); DRAWTEXT(FILTER(止金叉,3)=1 ,L*0.999,'平多'),COLORGREEN; 頂背離:=IF( MACD>=0 AND H=HHV(H,T4) AND HHV(DIFF,T4)>HHV(DIFF,T3) AND T4-T1>5 AND T1>5 AND T3>=0 AND H60>=0.5,1,0); DRAWTEXT( FILTER(頂背離,3)=1 ,H*1.001,'背離'),COLORGREEN; 背離死叉:=IF( COUNT(頂背離=1,6)>=1 AND CROSS(DEA,DIFF)=1,1,0); DRAWTEXT(背離死叉=1 ,H*1.001,'開(kāi)空'),COLORGREEN; 止死叉:=IF( COUNT(背離死叉=1,T1+1)>=1 AND CROSS(DIFF,DEA)=1,1,0); DRAWTEXT(FILTER(止死叉,3)=1 ,L*0.999,'平空'),COLORRED; 買(mǎi)點(diǎn)1:=IF( COUNT(CROSS(MA10,MA60)=1,4)>=1 AND 低點(diǎn)>1.02 AND MA60>=REF(MA60,1) AND MA5>=REF(MA5,1) AND MA10>=REF(MA10,1) AND MA5>=MA10,1,0); DRAWTEXT(FILTER(買(mǎi)點(diǎn)1,3)=1 ,L*0.999,'開(kāi)多1'),COLORRED; DRAWNUMBER(FILTER(買(mǎi)點(diǎn)1,3)=1 , 多標(biāo) ,多標(biāo) ),COLORRED; DRAWNUMBER(FILTER(買(mǎi)點(diǎn)1,3)=1,多標(biāo)2,多標(biāo)2),COLORRED; 止買(mǎi)1:=IF( COUNT(買(mǎi)點(diǎn)1=1,T7+1)>=1 AND CROSS(MA60,MA10)=1,1,0); DRAWTEXT(FILTER(止買(mǎi)1,3)=1 ,L*0.999,'平多1'),COLORGREEN; |
|
來(lái)自: 宜春張會(huì)生 > 《股票知識(shí)》