通达信MACD短线指标公式.docx
通达信MACD短线指标公式_正点财经A1:=BARSLAST(CROSS(DEA,DIFF);A2:=REF(BARSLAST(CROSS(DEA,DIFF),A1+1);A3:=REF(BARSLAST(CROSS(DEA,DIFF),A2+A1+2);A4:=REF(BARSLAST(CROSS(DEA,DIFF),A3+A2+A1+3);A5:=REF(BARSLAST(CROSS(DEA,DIFF),A4+A3+A2+A1+4);A11:=LLV(C,A1)REF(LLV(DIFF,A1+1),A1+1);A22:=LLV(C,A1)LLV(DIFF,A1)REF(LLV(DIFF,A1+A2+2),A1+A2+2);A33:=LLV(C,A1)LLV(DIFF,A1)REF(LLV(DIFF,A1+A2+A3+3),A1+A2+A3+3);A44:=LLV(C,A1)LLV(DIFF,A1)REF(LLV(DIFF,A1+A2+A3+A4+4),A1+A2+A3+A4+4)ANDA11ANDA22ANDA33;A55:=LLV(C,A1)LLV(DIFF,A1)REF(LLV(DIFF,A1+A2+A3+A4+A5+5),A1+A2+A3+A4+A5+5)ANDA11ANDA22ANDA33ANDA44;DIBL:=(A11ORA22ORA33ORA44ORA55)ANDDIFF0ANDREF(COUNT(MACD0,2)=2,1)ANDCROSS(DIFF,DEA);DIBL1:=(A11ORA22ORA33ORA44ORA55)ANDDIFF0ANDDIFFREF(DIFF,1)ANDDIFFREF(DIFF,2);底背离:IF(DIBL,0,DEA),COLORRED;IF(DIFF0ANDCROSS(DIFF,DEA)ANDDIBL=0,0,DEA),COLORYELLOW;B0:=BARSLAST(REF(CROSS(0,DEA),1);B1:=BARSLAST(CROSS(DIFF,DEA);B2:=REF(BARSLAST(CROSS(DIFF,DEA),B1+1);B3:=REF(BARSLAST(CROSS(DIFF,DEA),B1+B2+2);B4:=REF(BARSLAST(CROSS(DIFF,DEA),B1+B2+B3+3);B5:=REF(BARSLAST(CROSS(DIFF,DEA),B1+B2+B3+B4+4);B11:=HHV(C,B1)REF(HHV(C,B1+1),B1+1)ANDHHV(DIFF,B1)B55:=HHV(C,B1)REF(HHV(C,B1+B2+B3+B4+B5+5),B1+B2+B3+B4+B5+5)ANDHHV(DIFF,B1)ANDB44;DINGBL:=(B11ORB22ORB33ORB44ORB55)ANDDIFF0ANDREF(COUNT(MACD0,2)=2,1)ANDCROSS(DEA,DIFF);DINGBL1:=(B11ORB22ORB33ORB44ORB55)ANDDIFF0ANDDEAANDDIFF通达信MACD短线指标公式实例图解:通达信MACD短线指标公式