给“通达信追击分时主图”加点料

MA1:=EMA(C,30);
 MA2:=EMA(C,900);
 STICKLINE((MA1>MA2),MA1,MA2,0,0),COLOR1000FF;
 STICKLINE((MA1<MA2),MA1,MA2,0,0),COLOR00FF00;
 GJ:C,COLORWHITE;
 JJ:SUM(C*V,FROMOPEN)/SUM(V,FROMOPEN),COLORYELLOW,LINETHICK1.5;
均量:=MA(V,5);
量连增:=均量>REF(均量,1) AND REF(均量,1)>REF(均量,2);
价连涨:=C>=REF(C,1) AND REF(C,1)>REF(C,2);
价量线上:=C>JJ AND V>均量;
倍量:=V>=REF(V,1)*2 ;
价新高:=C>=HHV(C,FROMOPEN);
量新高:=V>=HHV(V,FROMOPEN);
限幅:=C/DYNAINFO(3)<=1.02;
起爆:=FILTER(量连增 AND 价连涨 AND 价量线上 AND 倍量 AND 价新高 AND 量新高 AND 限幅,20);
 DRAWTEXT(起爆,C,'起爆'),COLOR00FFFF;
 DRAWICON(起爆,C,1);
 STICKLINE(起爆,C,JJ,1,0),COLOR1000FF;
 VV:=BARSSINCE(起爆);
起爆价:=REF(C,VV);
起爆时间:=REF(TIME/10000,VV);
收益:=(DYNAINFO(7)-起爆价)/起爆价*100;
 DRAWICON(VV>=2,起爆价,13);
 DRAWTEXT_FIX(1,0,1,0,'起爆时间:'),COLOR00FFFF;
 DRAWNUMBER_FIX(1,0.06,1,0,CONST(起爆时间)),COLOR00FFFF;
 DRAWTEXT_FIX(1,0.12,1,0,'起爆价:'),COLOR00FFFF;
 DRAWNUMBER_FIX(1,0.17,1,0,CONST(起爆价)),COLOR00FFFF;
 DRAWTEXT_FIX(1,0.24,1,0,'收益:'),COLOR00FFFF;
 DRAWNUMBER_FIX(1,0.28.06,1,0,CONST(收益)),COLOR00FFFF;
 DRAWTEXT_FIX(ISLASTBAR,0.35,1,0,'提示:如加上20日均线上行+日线新高+日线量起爆+日线予测换手率小于10则胜算更大'),COLORFFFF00;
流通盘:CAPITAL*100/100000000,NODRAW;
资金流入:=SUM(IF(C>REF(C,1),V,0),FROMOPEN),NODRAW;
资金流出:=-SUM(IF(C<REF(C,1),V,0),FROMOPEN),NODRAW;
资金出入:=资金流入+资金流出,NODRAW;
 NN:=2400,NODRAW;
 HD:=HHV(资金出入,NN),NODRAW;
 LD:=LLV(资金出入,NN),NODRAW;
最高:=CONST(HD),NODRAW;
最低:=CONST(LD),NODRAW;
 HLMAX:=最高;
HLMIN:=最低;
HLMN1:=(HLMAX+HLMIN)/2;
 HLMN2:=HLMAX-HLMIN;
 HLMN3:=(100-0)/2*1.3;
 HLMN4:=(100-0)/1*1.3;
中间价轴:=(50-HLMN3)*HLMN2/HLMN4+HLMN1;
轴差:=最高-最低;

DRAWBAND(资金出入,RGB(150,0,150),0,RGB(0,100,0)),NODRAW;
资金流量:资金出入,NODRAW;
资金比:资金出入/SUM(V,FROMOPEN)*100,NODRAW;
资金流量比:=IF(资金比>=0,(资金比+100)/2,100-ABS((资金比-100)/2)),NODRAW;

攻击量:=((HSL*0.50+REF(HSL,1)*0.33)+(REF(HSL,2)*0.17))*SUM(C,FROMOPEN)/FROMOPEN,NODRAW;
攻击量A:=SUM(IF(C>REF(C,1),攻击量*V,0),FROMOPEN),NODRAW;
攻击量B:=-SUM(IF(C<REF(C,1),攻击量*V,0),FROMOPEN),NODRAW;
攻击流量:攻击量A+攻击量B,NODRAW;
 NOTEXT攻击线:攻击流量,NODRAW;
攻击比:攻击流量/SUM(V,FROMOPEN)*100,COLORRED,NODRAW;

资金攻击度:=IF(攻击比>=0,(攻击比+50),100-ABS((攻击比-50)));

 {STICKLINE(资金流量A>0,资金流量A,0,1,0),COLOR0000FF;
 STICKLINE(资金流量B<0,资金流量B,0,1,0),COLORFF0000;}

 DRAWRECTREL(110,10,400,90,RGB(0,75,200));
 DRAWRECTREL(110,10,250,90,RGB(0,250,50));
 DRAWRECTREL(110,10,100+CONST(资金流量比*300/100),90,RGB(200,50,0));
 DRAWTEXT_FIX(1,0.000,0.00,0,STRCAT(STRCAT('【资金流量比】',CON2STR(资金流量比,2)),'%买')),COLORYELLOW;

 DRAWRECTREL(610,10,900,90,RGB(0,75,200));
 DRAWRECTREL(610,10,750,90,RGB(0,250,50));
 DRAWRECTREL(610,10,600+CONST(资金攻击度*300/100),90,RGB(175,50,0));
 DRAWTEXT_FIX(1,0.500,0.00,0,STRCAT(STRCAT('【资金攻击度】',CON2STR(资金攻击度,2)),' %买')),COLORYELLOW;




未来函数检测结果如下:
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图