歐歐 歐歐量化 2025年01月28日 08:02 廣西 波段類指標(biāo),,比較適合波段大,活躍的個股,,可以做好一只股票,,長期小幅橫盤的個股,并不適合,。紅色為上升段,,綠色虛線為下降段,黃色箭頭進(jìn)場,,綠色箭頭賣出,。DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));DIF轉(zhuǎn)折點(diǎn):=(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)))COLORGREEN,POINTDOT;金死叉價:=(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),NODRAW;變格:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1))),COLORYELLOW,POINTDOT;頂參考:=IF(變格>=DIF轉(zhuǎn)折點(diǎn),變格,DRAWNULL),COLORYELLOW,CIRCLEDOT,LINETHICK1;上拐:IF(DIF轉(zhuǎn)折點(diǎn)< 變格,DIF轉(zhuǎn)折點(diǎn),DRAWNULL),COLORRED,LINETHICK4;下拐:IF(DIF轉(zhuǎn)折點(diǎn)>=變格,DIF轉(zhuǎn)折點(diǎn),DRAWNULL),COLOR33FF33,POINTDOT,LINETHICK4;DRAWTEXT_FIX(C>O,0.01,0.9,0,'微信公眾號:歐歐量化'),COLOR0000FF;IF(ZJ>REF(ZJ,1),ZJ,DRAWNULL),COLORRED,LINETHICK2;IF(HY>REF(HY,1),HY,DRAWNULL),COLORMAGENTA,LINETHICK2,NODRAW;IF(HY< REF(HY,1),HY,DRAWNULL),COLORBLUE,LINETHICK2,NODRAW;STICKLINE(C>ZJ AND C>O,H,C,0,0 ),COLORRED;STICKLINE(C>ZJ AND C>O,L,O,0,0 ),COLORRED;STICKLINE(C>ZJ AND C>O,O,C,2.8,1),COLORRED;STICKLINE(C>ZJ AND C<=O,H,L,0,0 ),COLORRED;STICKLINE(C>ZJ AND C<=O,O,C,2.8,0),COLORRED;STICKLINE(CLOSE=ZJ,H,L,3,0),COLORWHITE;STICKLINE(CLOSE< ZJ,H,L,0,0),COLORYELLOW;STICKLINE(CLOSE< ZJ,O,C,2.5,0),COLORYELLOW;STICKLINE(C< HY AND C>O,H,C,0,0),COLORCYAN;STICKLINE(C< HY AND C>O,O,L,0,0),COLORCYAN;STICKLINE(C< HY AND C>O,O,C,2.8,1),COLORCYAN;STICKLINE(C< HY AND C<=O,H,L,0,0),COLORCYAN;STICKLINE(C< HY AND C<=O,O,C,2.8,0),COLORCYAN;買入準(zhǔn)備:DRAWICON(CROSS(變格,DIF轉(zhuǎn)折點(diǎn)),上拐,34);賣出準(zhǔn)備:DRAWICON(CROSS(DIF轉(zhuǎn)折點(diǎn),變格),下拐,35);SBL:=STRCAT(STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),FGBLOCK),GNBLOCK),ZDBLOCK);DRAWTEXT_FIX(ISLASTBAR,0.01,0.005,0,SBL),COLORCYAN; DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);JCSC:=(M-1)/(M+1)*DEA/(1-2/(M+1));DD:=(MACD/2+(DEA*(M-1)/(M+1)))/(1-2/(M+1));DIF轉(zhuǎn)折點(diǎn):=(DIF*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)));金死叉價:=(JCSC*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)));變格:=(DD*(SHORT+1)*(LONG+1)-(LONG+1)*(SHORT-1)*EMA(C,SHORT)+(SHORT+1)*(LONG-1)*EMA(C,LONG))/(2*((LONG+1)-(SHORT+1)));XG:CROSS(變格,DIF轉(zhuǎn)折點(diǎn)); 風(fēng)險提示:本指標(biāo)公式僅作為知識分享,,模擬測試不構(gòu)成任何投資建議,,不作投資依據(jù)。
|