龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-10-15 16:27

[转载]量比曲线活跃度分时指标公式{原码}

[code]
BEGIN DRAWTEXTREL(0,600,'所属板块:'+BKNAME),LINETHICK1,COLORFFFFFF;END;
流通盘大小:=FINANCE2(37)/1000000*100;
DRAWTEXTABS(0,0,'流通盘大小:'+流通盘大小+'亿手 '),LINETHICK1,COLORFFFFFF;
量比曲线:=SUM(VOL,0)*240/DYNAINFO(38)/BARSCOUNT(C);
量比选:=量比曲线>REF(量比曲线,1);
个股涨幅:=(C-REF(C,1))/REF(C,1)*100;
大盘涨幅:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100;
强弱度:=个股涨幅-大盘涨幅;
强弱选:=强弱度>REF(强弱度,1);
VAR1:=C;
VAR2:=PPART(1);
VAR3:=IF(ABS(VAR2*100)>101,VAR2*100/100000,VAR2*100);
活跃度:=((COST(100)-COST(0))*(C-C*VAR3/100)/VAR1*100/100)+COST(0);
活跃选:=活跃度>REF(活跃度,1);
AA1:=(C-REF(C,1))/REF(C,1)*100;
AA2:=(V-REF(MA(V,5),1))/REF(MA(V,5),1)*100;
AA3:=(INDEXC-REF(INDEXC,1))/REF(INDEXC,1)*100;
AA4:=(INDEXV-REF(MA(INDEXV,5),1))/REF(MA(INDEXV,5),1)*100;
TJ1:=AA1>=1.8 AND AA2>=200 AND (AA1/AA3>=2 OR AA3<=0) AND AA2/AA4>3 AND HOUR>=10;
TJ2:=AA1>=3 AND AA2>=8 AND (AA1/AA3>=3 OR AA3<=0) AND AA2/AA4>5 AND HOUR<10;
强势买:=TJ1 OR TJ2;
昨收价:=DYNAINFO(3);
涨幅:=C/昨收价<=1.055;
出击:=量比选 AND 活跃选 AND 强弱选 AND 强势买 AND 涨幅;
DRAWTEXT(出击,L,'猎庄吸血 '),COLOR0000FF;
DRAWICON(出击,L,7),ALIGN1,VALIGN2;
[/code]

[attach]4546[/attach]

页: [1]