朋友送来一个指标---动量震荡指标,我看了一下,其核心原理就是AO。
选股信号较多(三绿柱---钱袋、碟形---红箭头、双峰---手指三种信号 OR 选股),学员可根据自己的需要删减。
现分享给大家,希望对新手有所帮助!
{ DLZD 动量振荡指标 TDX}
ZF:EMA(EMA(C-REF(C,1),14),3)*11;
HL:=(H+L)/2;
JXC:MA(HL,5)-MA(HL,34),COLORFFBB00,NODRAW;
STICKLINE(JXC =REF(JXC,1),0,JXC,0,0),COLORRED;
STICKLINE(JXC =REF(JXC,1),0,JXC,0,0),COLORGREEN;
TJ1:= REF(C,1)/L 1.05 AND C/L 1.05 AND L REF(L,1) AND REF(L,1) REF(L,2);
TJ2:=REF(TJ1,4)=1 OR REF(TJ1,5)=1 OR REF(TJ1,6)=1 OR REF(TJ1,7)=1 OR REF(TJ1,8)=1;
TJ3:=JXC REF(JXC,1) AND REF(JXC,1) REF(JXC,2) AND REF(JXC,2) REF(JXC,3) AND
REF(JXC,3) REF(JXC,4) AND REF(JXC,4) REF(JXC,5) AND REF(JXC,5) REF(JXC,6) AND
REF(JXC,6) REF(JXC,7) AND REF(JXC,7) REF(JXC,8) AND REF(JXC,8)
SLZ:=TJ2 AND TJ3;
DRAWICON(SLZ,JXC*0.95,9);{钱袋}
DX:=JXC 0 AND JXC REF(JXC,1) AND REF(JXC,1) REF(JXC,2) AND REF(JXC,2) REF(JXC,3) AND REF(JXC,3) REF(JXC,4);
DRAWICON(DX,JXC,1);{红箭头}
BCOUNT:=BARSLAST(JXC
BD:=LLV(JXC,BCOUNT);
BCOUNTD:=LLVBARS(JXC,BCOUNT);
B3:=JXC 0 AND REF(JXC,1) REF(JXC,2) AND JXC REF(JXC,1);
B31:=COUNT(B3,BCOUNTD);
AA:=JXC REF(JXC,1) AND REF(JXC,1) REF(JXC,2) AND REF(JXC,2) REF(JXC,3) AND REF(JXC,3) REF(JXC,4);
SF:=B31 =2 AND B3 AND AA;
DRAWICON(SF,JXC*1.06,11);{向上手指}
XG:=SLZ OR SF OR DX; {选股时吧 = 去掉};
----------------------------------------------------------
{DLZD 动量振荡指标 XG}
HL:=(H+L)/2;
JXC:=MA(HL,5)-MA(HL,34);
TJ1:=REF(C,1)/L 1.05 AND C/L 1.05 AND L REF(L,1) AND REF(L,1) REF(L,2);
TJ2:=REF(TJ1,4)=1 OR REF(TJ1,5)=1 OR REF(TJ1,6)=1 OR REF(TJ1,7)=1 OR REF(TJ1,8)=1;
TJ3:=JXC REF(JXC,1) AND REF(JXC,1) REF(JXC,2) AND REF(JXC,2) REF(JXC,3) AND
REF(JXC,3) REF(JXC,4) AND REF(JXC,4) REF(JXC,5) AND REF(JXC,5) REF(JXC,6) AND
REF(JXC,6) REF(JXC,7) AND REF(JXC,7) REF(JXC,8) AND REF(JXC,8)
SLZ:=TJ2 AND TJ3; {钱袋}
DX:=JXC 0 AND JXC REF(JXC,1) AND REF(JXC,1) REF(JXC,2) AND REF(JXC,2) REF(JXC,3) AND REF(JXC,3) REF(JXC,4); {红箭头}
BCOUNT:=BARSLAST(JXC
BD:=LLV(JXC,BCOUNT);
BCOUNTD:=LLVBARS(JXC,BCOUNT);
B3:=JXC 0 AND REF(JXC,1) REF(JXC,2) AND JXC REF(JXC,1);
B31:=COUNT(B3,BCOUNTD);
AA:=JXC REF(JXC,1) AND REF(JXC,1) REF(JXC,2) AND REF(JXC,2) REF(JXC,3) AND REF(JXC,3) REF(JXC,4);
SF:=B31 =2 AND B3 AND AA; {向上手指}
XG:SLZ OR DX OR SF;