关闭
关闭

大众财富-懂你财经金融门户网站

行情中心
N东方10.79 44.06%
N康拓9.91 44.01%
N永兴31.31 44.02%
N惠伦9.26 44.01%
N金科11.29 44.01%
最近访问
仙坛股份30.02 -2.50%
王子新材48.11 -0.27%
花园生物29.83 9.99%
电光科技33.80 -4.57%
中矿资源42.46 1.85%
当前位置: 主页 > 股票 > 市场专区 > 指标公式 >

通达信CCI顶底背离买卖点副图指标公式源码

时间:2022-03-14 20:00来源:未知 作者:cwz 点击:

  DRAWGBK(O>C,RGB(40,40,40),RGB(0,0,40),0,'01',0); {背景不要可删除}

  N:=14;

  TYP:=(HIGH+LOW+CLOSE)/3;

  CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));

  RSI1:=CCI;

  AA:=REF(RSI1,N)=HHV(RSI1,2*N+1);

  BB:=BACKSET(AA,N+1);

  CC:=FILTER(BB,N) AND RSI1=HHV(RSI1,N+1);

  A1:=BARSLAST(REF(CC,1));

  顶背离:REF(CLOSE,A1+1)<CLOSE AND REF(RSI1,A1+1)>RSI1 AND CC;

  DRAWLINE(CC,RSI1,FILTER(顶背离>0,5),RSI1,0),COLORGREEN,LINETHICK1;

  DRAWICON(顶背离,CCI*0.9,6);

  AA2:=REF(RSI1,N)=LLV(RSI1,2*N+1);

  BB2:=BACKSET(AA2,N+1);

  CC2:=FILTER(BB2,N) AND RSI1=LLV(RSI1,N+1);

  A2:=BARSLAST(REF(CC2,1));

  底背离:REF(CLOSE,A2+1)>CLOSE AND REF(RSI1,A2+1)<RSI1 AND CC2;

  DRAWLINE(CC2,RSI1,FILTER(底背离>0,5),RSI1,0),COLORMAGENTA,LINETHICK1;

  DRAWICON(底背离,CCI*1.1,5);

  上升:IF(CCI>REF(CCI,1),CCI,DRAWNULL),LINETHICK1,COLORRED,DOTLINE;

  X:=CROSS(CCI,-100);

  DRAWICON(X,-150,7);

  M:=CROSS(100,CCI);

  DRAWICON(M,150,8);

  IF(CCI>=100,CCI,DRAWNULL),COLORGREEN;

  IF(CCI<=-100,CCI,DRAWNULL),COLORRED;

  顶部:100,COLORBLUE,LINETHICK1;

  底部:-100,COLORRED,LINETHICK1;

  STICKLINE(CCI>100,100,CCI,0.5,0), COLORGREEN;

  STICKLINE(CCI<-100,-100,CCI,0.5,0), COLORRED;

通达信CCI顶底背离买卖点副图指标公式源码

(责任编辑:cwz)
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------