通达信背离很不错的副图指标
{牛牛指标网提供:www.tdx001.com}
复制内容到剪贴板
- N1=5;
- VAR2:=LLV(LOW,10);
- VAR3:=HHV(HIGH,25);
- M:EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4),COLORRED,LINETHICK2;
- M1:EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,8),COLORRED,LINETHICK2;
- M2:EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,12),COLORRED,LINETHICK2;
- M3:EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,22),COLORRED,LINETHICK2;
- 貔貅:EMA(M,3),COLORWHITE;
-
-
- STICKLINE(M>=REF(M,1),M,貔貅,2,0),COLORRED;
- STICKLINE(M<REF(M,1),M,貔貅,2,0),COLORGREEN;
-
- AA1:=HHV(MA(M,3),20),COLORYELLOW,LINETHICK2;
- BB1:=LLV(MA(M,3),20);
- 3.5;
-
- 2,POINTDOT;
- 0.5,COLORCYAN;
- AA:=REF(M,N1)=HHV(M,2*N1+1);
- BB:=BACKSET(AA,N1+1);
- CC:=FILTER(BB,N1) AND M=HHV(M,N1+1);
- A1:=BARSLAST(REF(CC,1));
- 顶背离:=REF(H,A1+1)<H AND REF(M,A1+1)>M AND CC;
- DRAWLINE(CC,M,FILTER(顶背离>0,5),M,0),COLORMAGENTA;
- DRAWTEXT(顶背离,M,'顶背离'),COLORMAGENTA;
-
- AA2:=REF(M,N1)=LLV(M,2*N1+1);
- BB2:=BACKSET(AA2,N1+1);
- CC2:=FILTER(BB2,N1) AND M=LLV(M,N1+1);
- A2:=BARSLAST(REF(CC2,1));
- 底背离:=REF(L,A2+1)>L AND REF(M,A2+1)<M AND CC2;
- DRAWLINE(CC,M,FILTER(底背离>0,5),M,0),COLORMAGENTA;
- DRAWTEXT(底背离,M,'底背离'),COLORMAGENTA;
w
850522001.png
|