设为首页加入收藏

微信关注
官方微信号:71712643
加关注获取每日精选资讯
股票入门欢迎您加入
广告服务联系我们网站地图

通达信副图公式源码 通达信高抛低吸副图公式源码

2015-2-2 10:33:34 股票入门 http://rumen.southmoney.com

  南方财富网带来通达信副图公式源码 通达信高抛低吸副图公式源码:

  {高抛低吸}

  AAA:=MAX(DYNAINFO(3),DYNAINFO(5));

  BBB:=MIN(DYNAINFO(3),DYNAINFO(6));

  CCC:=AAA-BBB;

  中轨:=(AAA+BBB)/2,COLOR999900;

  DIFF:=(EMA(CLOSE,12)-EMA(CLOSE,26))*500/EMA(CLOSE,26);

  DEAA:=EMA(DIFF,9);MACD:=(DIFF-DEAA)/4;

  STICKLINE(MACD》=REF(MACD,1)AND MACD《=0,中轨,中轨+MACD,2,1),COLOR008200;

  STICKLINE(MACD》REF(MACD,1)AND MACD》=0,中轨,中轨+MACD,2,1),COLOR0000FF;

  STICKLINE(MACD《REF(MACD,1)AND MACD《0,中轨,中轨+MACD,2,0),COLOR008200;

  STICKLINE(MACD《REF(MACD,1)AND MACD》0,中轨,中轨+MACD,2,0),COLOR008200;

  时间:=TIME=100000;

  N:=BARSLAST(时间),COLOR808080;

  常数:CONST(IF(N=0,C,REF(C,N))),COLOR004848,DOTLINE;

  CS1:=CONST(IF(N,HHV(H,0),REF(HHV(H,0),N))),COLOR808080;

  CS2:=CONST(IF(N,LLV(L,0),REF(LLV(L,0),N))),COLOR808080;

  STICKLINE(时间=1,CS1,CS2,-1,0),COLOR808080;

  H1:=MAX(DYNAINFO(3),DYNAINFO(5));

  L1:=MIN(DYNAINFO(3),DYNAINFO(6));

  P1:=H1-L1;

  阻力:L1+P1*7/8,COLOR00FFFF,DOTLINE;

  DRAWTEXT(CURRBARSCOUNT=1,阻力,‘ 阻力’),COLORFFFFFF;

  支撑:L1+P1*0.5/8,COLORRED,DOTLINE;

  DRAWTEXT(CURRBARSCOUNT=1,支撑,‘ 支撑’),COLORFFFFFF;

  中:(支撑+阻力)/2,COLORC0C0C0,DOTLINE;

  现价:CLOSE,COLORWHITE,LINETHICK1;

  MR:=C《支撑 AND CROSS(C,REF(C,2));

  STICKLINE(CROSS(现价,支撑),C,中,2,0),COLOR00F0F0;

  STICKLINE(MR=1,支撑,中,2,0),COLOR00F0F0;

  DRAWICON(MR=1 OR CROSS(现价,支撑),中,34);

  STICKLINE(CROSS(支撑,现价),支撑,(支撑-中)/5+支撑,2,0),COLOR00F0F0;

  MC:=C》阻力 AND CROSS(REF(C,2),C);

  STICKLINE(CROSS(阻力,现价),C,中,2,0),COLORFFFF00;

  STICKLINE(MC=1,阻力,中,2,0),COLORFFFF00;

  DRAWICON(MC=1 OR CROSS(阻力,现价),中,35);

  STICKLINE(CROSS(现价,阻力),阻力,阻力-(支撑-中)/5,2,0),COLORFFFF00;

  DRAWTEXT(ISLASTBAR,(支撑+阻力)/2,‘ 中’),COLORFFFFFF;

  均价:SUM(V*C,0)/SUM(V,0),COLOR004080;

  DRAWTEXT(CURRBARSCOUNT=4,均价,‘ 均价’),COLORFFFFFF;

  最新:C,LINETHICK9,COLORFFFF00;

  IF(C》=REF(C,1),C,DRAWNULL),LINETHICK9,COLORRED;

  AA:=SUM(AMOUNT,BARSCOUNT(C))/SUM(VOL*100,BARSCOUNT(C));

  BB:=BETWEEN(C/AA,C+H,C-H);

  DRAWICON(ISLASTBAR AND C》REF(C,1),C,1);

  DRAWICON(ISLASTBAR AND C《REF(C,1),C,2);

  W:=BARSLAST(DAY-REF(DAY,1))+1;

  FSJX:SUM(CLOSE*VOL,W)/SUM(VOL,W),LINETHICK2,COLORYELLOW;

  IF(FSJX《REF(FSJX,1),FSJX,DRAWNULL),LINETHICK2,COLORGREEN;

股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。