AO动能指标
ao动能指标 包括碟形买卖 穿越买卖 双峰买卖 即AO震荡指标是判断背离顶底的利器
AO:MA((H+L)*0.5,5)-MA((H+L)*0.5,34),COLORSTICK ,LINETHICK1;
DH:IF(AO>REF(AO,1),AO,DRAWNULL),colorred,LINETHICK1;
DH2:IF(AO<=REF(AO,1),AO,DRAWNULL) ,colorgreen,LINETHICK1;
DEA:MA(AO,5),colormagenta,LINETHICK2;
判断10:IF(DEA<0,DEA,DRAWNULL),colorblue,LINETHICK2;
DIEZB:=AO>REF(AO,1) AND REF(AO,1)< REF(AO,2)AND REF(AO,1)>0AND REF(AO,2)>0AND AO>0;
DIEZS:=AO<REF(AO,1) AND REF(AO,1)> REF(AO,2)AND REF(AO,1)<0AND REF(AO,2)<0AND AO<0;
KDZB1:=IF(DIEZB,1,0);
KDZS1:=IF(DIEZS,1,0);
DRAWTEXT(KDZB1=1,AO,'碟'),colorgreen;
DRAWICON(REF(KDZB1,1)=1 AND H>REF(H,1),AO,1);
DRAWTEXT(KDZS1=1,AO,'碟'),colorred;
DRAWICON(REF(KDZS1,1)=1 AND L<REF(L,1),AO,2);
KCYUEB1:=IF(AO>0 AND REF(AO,1)<0,1,0);
KCYUES1:=IF(AO<0 AND REF(AO,1)>0,1,0);
DRAWTEXT(KCYUEB1=1,AO,'越'),colorgreen;
DRAWICON(REF(KCYUEB1,1)=1 AND H>REF(H,1),AO,1);
DRAWTEXT(KCYUES1=1,AO,'越'),colorred;
DRAWICON(REF(KCYUES1,1)=1 AND L<REF(L,1),AO,2);
KB1:=IF((AO > REF(AO,1)AND AO>0 AND REF(AO,1)>0 ),1,0);
KS1:=IF((AO < REF(AO,1)AND AO<0 AND REF(AO,1)<0 ),1,0);
KSFB:=IF(REF(KB1,1) = 1 AND AO < REF(AO,1) AND AO>0,1,0);
KSFS:=IF(REF(KS1,1) = 1 AND AO > REF(AO,1) AND AO<0,1,0);
DRAWTEXT(KSFB=1,AO,'峰'),colorwhite;
DRAWTEXT(KSFS=1,AO,'谷'),coloryellow;