当前位置:→ 公式网 > 通达信公式 > 正文 ℃ 公式解密、改选股等业务 联系点击查看详情...
以下是背离(很不错的副图指标)(无源码的请下载附件导入)
C/C++ www.gszb.com 股票公式指标网提供 Code复制内容到剪贴板
- 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;
上一篇:突破上一波段高点预警指标 下一篇:优化j线共振源码