设为首页加入收藏

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

通达信公式源码 通达信五日净流入公式源码

2015-1-16 9:41:55 股票入门 http://rumen.southmoney.com

  南方财富网带来通达信公式源码 通达信五日净流入公式源码:

  AA:=VOL/((HIGH-LOW)*1-ABS(CLOSE-OPEN));

  主买1:=IF(CLOSE》OPEN,AA*(HIGH-LOW),IF(CLOSE《OPEN,AA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK0;

  主卖1:=IF(CLOSE》OPEN,0-AA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE《OPEN,0-AA*(HIGH-LOW),0-VOL/2)),LINETHICK0;

  差额:=主买1+主卖1,LINETHICK0;

  五日净流入:SUM(差额,5)/100,LINETHICK1,COLORGREEN;

  流入:IF(五日净流入》REF(五日净流入,1),五日净流入,DRAWNULL),COLORRED,LINETHICK2;

  AA1:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);

  预测:AA1/10,LINETHICK0;

  BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

  买:=BUYVOL;

  卖:=SELLVOL;

  主动买:=IF(CLOSE》OPEN,BB*(HIGH-LOW),IF(CLOSE《OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));

  主买:主动买*1,COLORRED,LINETHICK0;

  主动卖:=IF(CLOSE》OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE《OPEN,0-BB*(HIGH-LOW),0-VOL/2));

  主卖:-主动卖*1,COLORGREEN,LINETHICK0;

  STICKLINE(CLOSE=REF(CLOSE,1),0,VOL,3.5,0),COLORWHITE;

  STICKLINE(CLOSE》REF(CLOSE,1),0,VOL,3.5,0),COLORRED;

  STICKLINE(CLOSE《REF(CLOSE,1),0,VOL,3.5,0),COLORGREEN;

  STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA1,1 , 3.5 , 0 ) , COLORYELLOW ;

  STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA1,1 , 3.2 , 0 ) , COLOR0088FF ;

  STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA1,1 , 2.7 , 0 ) , COLOR00AAFF ;

  STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA1,1 , 2.1 , 0 ) , COLOR00CCFF ;

  STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA1,1 , 1.5 , 0 ) , COLOR22FFFF ;

  STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA1,1 , 0.9 , 0 ) , COLOR66FFFF ;

  STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA1,1 , 0.3 , 0 ) , COLOR99FFFF ;

  STICKLINE(主动买》0,0,主动买,3,0),COLOR000033;

  STICKLINE(主动买》0,0,主动买,2.7,0),COLOR000066;

  STICKLINE(主动买》0,0,主动买,2.1,0),COLOR000099;

  STICKLINE(主动买》0,0,主动买,1.5,0),COLOR0000CC;

  STICKLINE(主动买》0,0,主动买,0.9,0),COLOR0000FF;

  STICKLINE(主动买》0,0,主动买,0.3,0),COLORCC66FF;

  STICKLINE(主动卖《0,VOL,主动买,2,0),COLOR990000;

  STICKLINE(主动卖《0,VOL,主动买,2,0),COLOR990011;

  STICKLINE(主动卖《0,VOL,主动买,2,0),COLOR990022;

  AAA:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));

  买量:=IF(CLOSE》OPEN,AAA*(HIGH-LOW),IF(CLOSE《OPEN,AAA*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),LINETHICK1,COLORRED;

  卖量:=IF(CLOSE》OPEN,0-AAA*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE《OPEN,0-AAA*(HIGH-LOW),0-VOL/2)),LINETHICK1,COLORCYAN;

  三买:MA(买量,3)*2,LINETHICK2,COLORLIMAGENTA;

  五买:MA(买量,5)*2,LINETHICK2,COLORCYAN;

  VAR3AA:=IF((CLOSE》REF(CLOSE,1)),88,0);

  VAR4AA:=IF(((CLOSE)/(REF(CLOSE,1))》1.05) AND ((HIGH)/(CLOSE)《1.01) AND (VAR3AA》0),91,0);

  DRAWTEXT(FILTER((VAR4AA》90),45),(LOW)*(188.98),‘★大胆搏 ’),COLORWHITE;

  DRAWTEXT(FILTER((VAR4AA》90),35),(LOW)*(166.98),‘★加仓’),

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