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

 找回密码
 注册昵称

QQ登录

只需一步,快速开始

搜索
上一主题 下一主题

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


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

VAR1:=(vol/CLOSE)/2; VAR2:=SUM(IF(VAR1>100 AND CLOSE>REF(CLOSE,1),VAR1,0),0); VAR3:=SUM(IF(VAR1>100 AND CLOSE<REF(CLOSE,1),VAR1,0),0); VAR4:=SUM(IF(VAR1<100 AND CLOSE>REF(CLOSE,1),VAR1,0),0); VAR5:=SUM(IF(VAR1<100 AND CLOSE<REF(CLOSE,1),VAR1,0),0); VAR6:=VAR2+VAR3+VAR4+VAR5; VAR7:=(C*2+H+L)/4*10; VAR8:=EMA(VAR7,13)-EMA(VAR7,34); VAR9:=EMA(VAR8,5); VAR10:=2*(VAR8-VAR9)*5.5; VAR11:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1); VAR12:=EMA(VAR11,3); VAR13:=(VAR12-REF(VAR12,1))/REF(VAR12,1)*100; VAR14:=EMA(EMA(CLOSE,9),9); VAR15:=(VAR14-REF(VAR14,1))/REF(VAR14,1)*500; VAR16:=IF(VAR15>REF(VAR15,1) AND VAR15>0,VAR15,0); VAR17:=IF(VAR15<REF(VAR15,1) AND VAR15>0,VAR15,0); VAR18:=IF(VAR15<0,VAR15,0); VAR19:=VAR16+VAR17; VAR20:=-VAR18; VAR21:=(SUM(VAR19,0)-SUM(VAR20,0))/20; VAR22:=(VOL/C)/2; VAR23:=SUM(IF(VAR22>100 AND CLOSE>REF(CLOSE,1),VAR22,0),0); VAR24:=SUM(IF(VAR22>100 AND CLOSE<REF(CLOSE,1),VAR22,0),0); VAR25:=SUM(IF(VAR22<100 AND CLOSE>REF(CLOSE,1),VAR22,0),0); VAR26:=SUM(IF(VAR22<100 AND CLOSE<REF(CLOSE,1),VAR22,0),0); VAR27:=VAR23+VAR24+VAR25+VAR26; VAR28:=(VAR23/VAR27)*100; VAR29:=(VAR24/VAR27)*100; VAR30:=VAR28-VAR29; VAR31:=VAR21>0.1 AND VAR30>0 AND REF(VAR30,1)<=0 AND VAR21+0.3; VAR32:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,21)-LLV(LOW,34))*100; VAR33:=IF(DATE<=1150530,1,0); VAR34:=BETWEEN((C*VAR33)/(SUM(AMOUNT,BARSCOUNT((C*VAR33)))/SUM(VOL*100,BARSCOUNT((C*VAR33)))),1.05,0.95); VAR35:=IF(VAR34=0,MA((C*VAR33),BARSCOUNT((C*VAR33))),(SUM(AMOUNT,BARSCOUNT((C*VAR33)))/SUM(VOL*100,BARSCOUNT((C*VAR33))))); VAR36:=CLOSE; VAR37:=MAX(DYNAINFO(3),DYNAINFO(5)); VAR38:=MIN(DYNAINFO(3),DYNAINFO(6)); VAR39:=VAR37-VAR38; VAR40:=VAR38+VAR39*7/8,COLORGREEN; VAR41:=VAR38+VAR39*0.5/8,COLORMAGENTA; VAR42:=EMA(EMA(CLOSE,13),13); VAR43:=(VAR42-REF(VAR42,1))/REF(VAR42,1)*1000; VAR44:=VAR43>REF(VAR43,1) AND VAR43<-0.2; VAR45:=DYNAINFO(11); VAR46:=55; VAR47:=8; VAR48:=3; VAR49:=(EMA(CLOSE,VAR47)-EMA(C,VAR46))*10; VAR50:=EMA(VAR49,VAR48),COLOR00FF00; VAR51:=(CLOSE-VAR45)/VAR45<-0.03; VAR52:=crOSS(VAR49,VAR50) AND VAR49<-0.3; VAR53:=8; VAR54:=FILTER(VAR51 AND VAR44 AND VAR52,VAR53); VAR55:=IF(HOUR>=9 AND HOUR<14,1,0); VAR56:=VAR54 AND TIME>15 AND VAR55; 趋势线:(EMA(VAR32,3)-50)*2,COLORWHITE; 主力进:IF(VAR10>=0,VAR10*3,0),COLORCYAN; 主力:=CROSS(趋势线,0) AND 主力进>0 ANDexpma(C,10)>EXPMA(C,60); DRAWBAND(主力进,RGB(200,10,10),0,RGB(10,200,10)); STICKLINE(VAR12>=90 AND VAR13,50,60,2,0),COLORCYAN; 抄底线:-85,COLORCYAN,POINTDOT; 见顶线:95,COLORGREEN,POINTDOT; STICKLINE(EXPMA(C,10)<EXPMA(C,60),0,10,2.0,0),COLORGREEN; STICKLINE(EXPMA(C,10)>EXPMA(C,60),15,25,2.0,0),COLORRED; DRAWTEXT_FIX(C>O,0,0.2,0,'趋势线:主力'),COLORMAGENTA; STICKLINE(EXPMA((C/VAR35),120)>1.003,30,40,2.0,0),COLORMAGENTA; DRAWTEXT(CROSS(EXPMA((C/VAR35),20),1.04),-50,'板'),COLORCYAN; DRAWTEXT(CROSS(EXPMA((C/VAR35),20),1.02),-60,'追'),COLORWHITE; DRAWTEXT(CROSS(EXPMA((C/VAR35),120),1.0029),-80,'量'),COLORWHITE; DRAWICON(CROSS(EXPMA((C/VAR35),120),1.004),0,17); DRAWICON(LONGCROSS(VAR36,VAR40,2),95,2); DRAWICON(CROSS(趋势线,-85),趋势线,9); STICKLINE(VAR56,-90,-30,1,0),COLORRED; STICKLINE(主力,-30,30,2,0),COLORRED; DRAWTEXT(主力,-30,'主进'),COLORYELLOW;








回复

举报

GMT+8, 2025-2-1 04:16

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