股资源-股票学习站-学炒股-股票课程-炒股教程-分析选股指标-入门基础知识

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

[通达信] 通达信主力资金动能指标公式源码副图


    [-----复制链接-----]
楼主
 通达信源码安装路径:1,工具栏点击公式选项。2,弹出公式窗口点击新建。3,把源码复制到指标编辑器保存。4,回到K线图界面安装建立好的公式 || 2024-12-31 18:35:53

天量:=CONST(IF(V=HHV(V,30),V,REF(V,BARSLAST(V=HHV(V,30))))),COLOR00FF00,POINTDOT; A01:=(vol/CLOSE)/3; A02:=SUM((IF(((A01>60) AND C<15 AND (CLOSE>(REF(CLOSE,1)))),A01,0)),1); A03:=SUM((IF(((A01>20) AND C>15 AND (CLOSE>(REF(CLOSE,1)))),A01,0)),1); 主力买:(A02+A03),NODRAW; A04:=SUM((IF(((A01>60) AND C<15 AND (CLOSE<(REF(CLOSE,1)))),A01,0)),1); A05:=SUM((IF(((A01>20) AND C>15 AND (CLOSE<(REF(CLOSE,1)))),A01,0)),1); 主力卖:(A04+A05),NODRAW; 主净买:IF(FINANCE(7)<5000000000,(主力买-主力卖)/10,0),COLORYELLOW,NODRAW; STICKLINE(主力买 ,天量+主力买*4,天量,2,0),COLORRED; STICKLINE(主力卖 ,天量-主力卖*4,天量,2,0),COLORGREEN; STICKLINE(主净买 ,天量+主净买*4,天量,2,0),COLORYELLOW; {主导动能} 中量:=天量*0.5; TT:=(2*CLOSE+OPEN+HIGH+LOW)*10000; 主导动能:TT/EMA(TT,4)-1,COLORSTICK,NODRAW; FF:=主导动能*800000; 获利回吐:STICKLINE(FF<REF(FF,1)AND FF>0,中量,中量+FF,2,0),COLOR33DFDD; 做空卖出:STICKLINE(FF<REF(FF,1)AND FF<0,中量,中量+FF,2,0),COLOR00DD00; 空头回补:STICKLINE(FF>REF(FF,1)AND FF<0,中量,中量+FF,2,0),COLORFFAA00; 做多买进:STICKLINE(FF>REF(FF,1)AND FF>0,中量,中量+FF,2,0),COLOR0000DD; HH10:=IF(BARSCOUNT(C)>60 AND DYNAINFO(4)>0,FF=HHV(Abs(FF),10),0); HH20:=IF(BARSCOUNT(C)>60 AND DYNAINFO(4)>0,FF=HHV(ABS(FF),20),0); HH30:=IF(BARSCOUNT(C)>60 AND DYNAINFO(4)>0,FF=HHV(ABS(FF),30),0); HH50:=IF(BARSCOUNT(C)>60 AND DYNAINFO(4)>0,FF=HHV(ABS(FF),50),0); HH100:=IF(BARSCOUNT(C)>60 AND DYNAINFO(4)>0,FF=HHV(ABS(FF),80),0); 动能级别:(HH10+HH20+HH30+HH50+HH100)/50,LINETHICK,NODRAW; 超强:STICKLINE(HH100,中量,中量+FF,2,0),COLORMAGENTA; {主力进出资金} 地量:=天量*0.1; VUR0:=(2*O+H+L+3*C)/7; VUR1:=CAPITAL*VUR0/10; VUR2:=SMA(AMOUNT,10,1)/1000; VUR3:=MA(C*3,5); VUR4:=VUR2*C*3/VUR3*1/10; VUR5:=VUR2*O*3/VUR3*1/10; VUR6:=VUR2*H*3/VUR3*1/10; VUR7:=VUR2*L*3/VUR3*1/10; VUR8:=(2*VUR5+VUR6+VUR7+3*VUR4)/7; VUR9:=DMA(EMA(VUR4,2),SUM(V,1)*VUR8); VUR10:=EMA(VUR9,2); VURA:=VUR9>VUR10; VURB:=EMA(VUR1-VUR9,1); VURC:=REF(VURB,1); VURD:=VURB>VURC; VURS:=VURD AND C>O; VURE:=(VURB-VURC)*0.15; VURF:=(VUR9-VUR10)*150; VURG:=(VURC-VURB)*(-1); VURH:=IF(VURB>VURC,VURE/1,0); VURN:=IF(VURB<VURC,VURE/1,0); VURT:=IF(VURA AND VURS,VURF/10,0); VURL:=IF(VURA AND VURB<VURC,VURE/1,0); 吸进:VURH/100,NODRAW,COLORRED; 吐出:VURN/100,NODRAW,COLORGREEN; 减筹:VURL/100,NODRAW,COLORFFF516; 买进强烈:VURT/100,NODRAW,COLORYELLOW; STICKLINE(VURB>VURC,地量,地量+VURH,3,1),COLORRED; STICKLINE(VURB<VURC,地量,地量+VURN,3,0),COLORGREEN; STICKLINE(VURA AND VURB<VURC,地量,地量+VURL,3,0),COLORFFF516; STICKLINE(VURA AND VURS,地量,地量+VURT,3,0),COLORYELLOW; DRAWTEXT_FIX(1,0.02,0.1,0,'主力买卖'),COLORWHITE; DRAWTEXT_FIX(1,0.02,0.5,0,'主导动能'),COLORWHITE; DRAWTEXT_FIX(1,0.02,0.9,0,'资金进出'),COLORWHITE;








回复

举报

GMT+8, 2025-1-19 23:13

快速回复 返回顶部 返回列表