通达信实用背离指标公式Word格式文档下载.docx
《通达信实用背离指标公式Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《通达信实用背离指标公式Word格式文档下载.docx(4页珍藏版)》请在冰豆网上搜索。
![通达信实用背离指标公式Word格式文档下载.docx](https://file1.bdocx.com/fileroot1/2022-12/8/e26a978d-a901-4173-98ba-252e6e381c23/e26a978d-a901-4173-98ba-252e6e381c231.gif)
=LLV(DIFF,MACD金叉);
MACD最低点:
=LLV(DIFF,MACD上次死叉);
MACD底背离:
=REF(CLOSE,MACD金叉+1)>
CLOSEANDMACD次低点>
MACD最低点ANDCROSS(DIFF,DEA);
DRAWLINE(MACD金叉=0,DEA,MACD底背离,DEA,0),COLORRED,LINETHICK2;
{MACD顶背离}
MACD次高点:
=HHV(DIFF,MACD金叉);
MACD最高点:
=HHV(DIFF,MACD上次金叉);
MACD顶背离:
=REF(CLOSE,MACD死叉+1)<
CLOSEANDMACD次高点<
MACD最高点ANDCROSS(DEA,DIFF);
DRAWLINE(MACD死叉=0,DEA,MACD顶背离,DEA,0),COLORGREEN,LINETHICK2;
红面积:
SUM(MACD,BARSLAST(MACD<
0))*(MACD>
0),COLOR0000FF,NODRAW;
绿面积:
SUM(MACD,BARSLAST(MACD>
0))*(MACD<
0),COLORFFFF00,NODRAW;
AA:
=ROUND(REF(绿面积,1)*100);
BB:
=ROUND(REF(红面积,1)*100);
DRAWNUMBER(CROSS(0,MACD),0.04,ABS(BB)),COLORMAGENTA;
DRAWNUMBER(CROSS(MACD,0),-0.01,ABS(AA)),COLORGREEN;
{CCI}
TYP:
=(HIGH+LOW+CLOSE)/3;
CCI:
=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
{BOLL}
BOLL:
=MA(CLOSE,20);
UB:
=BOLL+2*STD(CLOSE,20);
LB:
=BOLL-2*STD(CLOSE,20);
{KDJ}
RSV:
=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:
=SMA(RSV,3,1);
D:
=SMA(K,3,1);
J:
=3*K-2*D;
PP:
=CCI<
-160ANDCLOSE<
LBANDJ<
20;
QQ:
=CCI>
160ANDJ>
100;
{KDJ中J值在0-90间为黄色,小于0为绿色,大于90为红色}
{显示J值和CCI值}
{CCI值小于160且收盘价在BOLL下轨一下,J值小于20为红色箭头,CCI大于160且J值大于100为绿色箭头}
DRAWICON(QQ,0,2);
DRAWICON(PP,0,1);
KDJ金叉:
=BARSLAST(REF(CROSS(J,D),1));
KDJ死叉:
=BARSLAST(REF(CROSS(D,J),1));
KDJ上次金叉:
=SUMBARS(REF(CROSS(J,D),1),2);
KDJ上次死叉:
=SUMBARS(REF(CROSS(D,J),1),2);
{KDJ底背离}
AAA1:
KDJ次低点:
=LLV(J,AAA1);
KDJ最低点:
=LLV(J,KDJ上次死叉);
KDJ底背离:
=REF(CLOSE,AAA1+1)>
CLOSEANDKDJ次低点>
KDJ最低点ANDCROSS(J,D);
DRAWTEXT(KDJ底背离,MACD,'
KDJ底'
),COLORRED;
STICKLINE(KDJ底背离,MACD,0,2,0),COLORRED;
{KDJ顶背离}
BBB1:
KDJ次高点:
=HHV(J,AAA1);
KDJ最高点:
=HHV(J,KDJ上次金叉);
KDJ顶背离:
=REF(CLOSE,BBB1+1)<
CLOSEANDKDJ次高点<
KDJ最高点ANDCROSS(D,J);
DRAWTEXT(KDJ顶背离,MACD,'
KDJ顶'
),COLORGREEN;
STICKLINE(KDJ顶背离,MACD,0,2,0),COLORGREEN;
{九转}
A1:
=C>
=REF(C,4);
A2:
=C<
REF(C,4);
A3:
REF(C,4)ANDREF(A1,1);
T:
=BARSLAST(A3),NODRAW;
M0:
=(T=0ANDREFX(T=1ANDNOT(A2),1))OR(REFX(T=2ANDNOT(A2),2))OR(REFX(T=3ANDNOT(A2),3))OR(REFX(T=4ANDNOT(A2),4))OR(REFX(T=5ANDNOT(A2),5))OR(REFX(T=6ANDNOT(A2),6))OR(REFX(T=7ANDNOT(A2),7))OR(REFX(T=8ANDNOT(A2),8));
M1:
=T=1ANDREFX(T=2ANDNOT(A2),1)OR(REFX(T=3ANDNOT(A2),2))OR(REFX(T=4ANDNOT(A2),3))OR(REFX(T=5ANDNOT(A2),4))OR(REFX(T=6ANDNOT(A2),5))OR(REFX(T=7ANDNOT(A2),6))OR(REFX(T=8ANDNOT(A2),7));
M2:
=T=2ANDREFX(T=3ANDNOT(A2),1)OR(REFX(T=4ANDNOT(A2),2))OR(REFX(T=5ANDNOT(A2),3))OR(REFX(T=6ANDNOT(A2),4))OR(REFX(T=7ANDNOT(A2),5))OR(REFX(T=8ANDNOT(A2),6));
M3:
=T=3ANDREFX(T=4ANDNOT(A2),1)OR(REFX(T=5ANDNOT(A2),2))OR(REFX(T=6ANDNOT(A2),3))OR(REFX(T=7ANDNOT(A2),4))OR(REFX(T=8ANDNOT(A2),5));
M4:
=T=4ANDREFX(T=5ANDNOT(A2),1)OR(REFX(T=6ANDNOT(A2),2))OR(REFX(T=7ANDNOT(A2),3))OR(REFX(T=8ANDNOT(A2),4));
M5:
=T=5ANDREFX(T=6ANDNOT(A2),1)OR(REFX(T=7ANDNOT(A2),2))OR(REFX(T=8ANDNOT(A2),3));
M6:
=T=6ANDREFX(T=7ANDNOT(A2),1)OR(REFX(T=8ANDNOT(A2),2));
M7:
=T=7ANDREFX(T=8ANDNOT(A2),1);
N0:
=T=1ANDREF(T=0ANDA3,1)ANDA2;
N1:
=T=2ANDREF(N0,1)ANDA2;
N2:
=T=3ANDREF(N1,1)ANDA2;
N3:
=T=4ANDREF(N2,1)ANDA2;
N4:
=T=5ANDREF(N3,1)ANDA2;
N5:
=T=6ANDREF(N4,1)ANDA2;
N6:
=T=7ANDREF(N5,1)ANDA2;
N7:
=T=8ANDREF(N6,1)ANDA2;
WZD:
=DEA;
WZG:
DRAWTEXT(N6ANDNOT(M7),WZD,'
8'
DRAWTEXT(N7,WZG,'
9'
),COLORMAGENTA;
B1:
B2:
B3:
REF(C,4)ANDREF(B1,1);
T1:
=BARSLAST(B3),NODRAW;
M8:
=(T1=0ANDREFX(T1=1ANDNOT(B2),1))OR(REFX(T1=2ANDNOT(B2),2))OR(REFX(T1=3ANDNOT(B2),3))OR(REFX(T1=4ANDNOT(B2),4))OR(REFX(T1=5ANDNOT(B2),5))OR(REFX(T1=6ANDNOT(B2),6))OR(REFX(T1=7ANDNOT(B2),7))OR(REFX(T1=8ANDNOT(B2),8));
M9:
=T1=1ANDREFX(T1=2ANDNOT(B2),1)OR(REFX(T1=3ANDNOT(B2),2))OR(REFX(T1=4ANDNOT(B2),3))OR(REFX(T1=5ANDNOT(B2),4))OR(REFX(T1=6ANDNOT(B2),5))OR(REFX(T1=7ANDNOT(B2),6))OR(REFX(T1=8ANDNOT(B2),7));
M10:
=T1=2ANDREFX(T1=3ANDNOT(B2),1)OR(REFX(T1=4ANDNOT(B2),2))OR(REFX(T1=5ANDNOT(B2),3))OR(REFX(T1=6ANDNOT(B2),4))OR(REFX(T1=7ANDNOT(B2),5))OR(REFX(T1=8ANDNOT(B2),6));
M11:
=T1=3ANDREFX(T1=4ANDNOT(B2),1)OR(REFX(T1=5ANDNOT(B2),2))OR(REFX(T1=6ANDNOT(B2),3))OR(REFX(T1=7ANDNOT(B2),4))OR(REFX(T1=8ANDNOT(B2),5));
M12:
=T1=4ANDREFX(T1=5ANDNOT(B2),1)OR(REFX(T1=6ANDNOT(B2),2))OR(REFX(T1=7ANDNOT(B2),3))OR(REFX(T1=8ANDNOT(B2),4));
M13:
=T1=5ANDREFX(T1=6ANDNOT(B2),1)OR(REFX(T1=7ANDNOT(B2),2))OR(REFX(T1=8ANDNOT(B2),3));
M14:
=T1=6ANDREFX(T1=7ANDNOT(B2),1)OR(REFX(T1=8ANDNOT(B2),2));
M15:
=T1=7ANDREFX(T1=8ANDNOT(B2),1);
N8:
=T1=1ANDREF(T1=0ANDB3,1)ANDB2;
N9:
=T1=2ANDREF(N8,1)ANDB2;
N10:
=T1=3ANDREF(N9,1)ANDB2;
N11:
=T1=4ANDREF(N10,1)ANDB2;
N12:
=T1=5ANDREF(N11,1)ANDB2;
N13:
=T1=6ANDREF(N12,1)ANDB2;
N14:
=T1=7ANDREF(N13,1)ANDB2;
N15:
=T1=8ANDREF(N14,1)ANDB2;
DRAWTEXT(N14ANDNOT(M15),WZG,'
),COLOR9900CC;
DRAWTEXT(N15,WZD,'