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

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 AND expma(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;




未来函数检测结果如下:
该公式包含未来函数:DYNAINFO

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

VAR1赋值:(成交量/收盘价)/2
VAR2赋值:SUM(IF(VAR1>100 AND 收盘价>1日前的收盘价,VAR1,0),0)
VAR3赋值:SUM(IF(VAR1>100 AND 收盘价<1日前的收盘价,VAR1,0),0)
VAR4赋值:SUM(IF(VAR1<100 AND 收盘价>1日前的收盘价,VAR1,0),0)
VAR5赋值:SUM(IF(VAR1<100 AND 收盘价<1日前的收盘价,VAR1,0),0)
VAR6赋值:VAR2+VAR3+VAR4+VAR5
VAR7赋值:(C*2+H+L)/4*10
VAR8赋值:VAR7的13日指数移动平均-VAR7的34日指数移动平均
VAR9赋值:VAR8的5日指数移动平均
VAR10:=2*(VAR8-VAR9)*5.5
VAR11:=3*SMA((C-55日内L最低值)/(55日内H最高值-55日内L最低值)*100,5,1)-2*SMA(SMA((C-55日内L最低值)/(55日内H最高值-55日内L最低值)*100,5,1),3,1)
VAR12:=VAR11的3日指数移动平均
VAR13:=(VAR12-1日前的VAR12)/1日前的VAR12*100
VAR14:=收盘价的9日指数移动平均,9)
VAR15:=(VAR14-1日前的VAR14)/1日前的VAR14*500
VAR16:=IF(VAR15>1日前的VAR15 AND VAR15>0,VAR15,0)
VAR17:=IF(VAR15<1日前的VAR15 AND VAR15>0,VAR15,0)
如果VAR15<0返回VAR15否则返回0
VAR19:=VAR16+VAR17
VAR20:=-VAR18
VAR21:=(0的VAR19日累和-0的VAR20日累和)/20
VAR22:=(成交量/C)/2
VAR23:=SUM(IF(VAR22>100 AND 收盘价>1日前的收盘价,VAR22,0),0)
VAR24:=SUM(IF(VAR22>100 AND 收盘价<1日前的收盘价,VAR22,0),0)
VAR25:=SUM(IF(VAR22<100 AND 收盘价>1日前的收盘价,VAR22,0),0)
VAR26:=SUM(IF(VAR22<100 AND 收盘价<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 1日前的VAR30<=0 AND VAR21+0.3
VAR32:=(收盘价-34日内最低价最低值)/(21日内最高价最高值-34日内最低价最低值)*100
如果日期<=1150530返回1否则返回0
VAR34:=BETWEEN((C*VAR33)/(SUM(成交额,(C*VAR33的有效数据周期数))/SUM(成交量*100,(C*VAR33的有效数据周期数))),1.05,0.95)
VAR35:=IF(VAR34=0,MA((C*VAR33),(C*VAR33的有效数据周期数)),(SUM(成交额,(C*VAR33的有效数据周期数))/SUM(成交量*100,(C*VAR33的有效数据周期数))))
VAR36:=收盘价
VAR37:=MAX(DYNAINFO(3),DYNAINFO(5))
VAR38:=MIN(DYNAINFO(3),DYNAINFO(6))
VAR39:=VAR37-VAR38
VAR40:=VAR38+VAR39*7/8,画绿色
VAR41:=VAR38+VAR39*0.5/8,画洋红色
VAR42:=收盘价的13日指数移动平均,13)
VAR43:=(VAR42-1日前的VAR42)/1日前的VAR42*1000
VAR44:=VAR43>1日前的VAR43 AND VAR43<-0.2
VAR45:=均价
VAR46:=55
VAR47:=8
VAR48:=3
VAR49:=(收盘价的VAR47日指数移动平均-C的VAR46日指数移动平均)*10
VAR50:=VAR49的VAR48日指数移动平均,COLOR00FF00
VAR51:=(收盘价-VAR45)/VAR45<-0.03
VAR52:=VAR49上穿VAR50 AND VAR49<-0.3
VAR53:=8
VAR54:=VAR51 AND VAR44 AND VAR52的VAR53过滤
如果HOUR>=9 AND HOUR<14返回1否则返回0
VAR56:=VAR54 AND TIME>15 AND VAR55
输出趋势线:(VAR32的3日指数移动平均-50)*2,画白色
如果VAR10>=0返回VAR10*3否则返回0
主力赋值:趋势线上穿0 AND 主力进>0 AND C的10日指数移动平均>C的60日指数移动平均
DRAWBAND(主力进,RGB(200,10,10),0,RGB(10,200,10))
当满足条件VAR12>=90 AND VAR13时,在50和60之间画柱状线
输出抄底线:-85,画青色,POINTDOT
输出见顶线:95,画绿色,POINTDOT
STICKLINE(C的10日指数移动平均 STICKLINE(C的10日指数移动平均>C的60日指数移动平均,15,25,2.0,0),画红色
当满足条件C>O时,在横轴0纵轴0.2位置书写文字
STICKLINE(EXPMA((C/VAR35),120)>1.003,30,40,2.0,0),画洋红色
DRAWTEXT(CROSS(EXPMA((C/VAR35),20),1.04),-50,'板'),画青色
DRAWTEXT(CROSS(EXPMA((C/VAR35),20),1.02),-60,'追'),画白色
DRAWTEXT(CROSS(EXPMA((C/VAR35),120),1.0029),-80,'量'),画白色
DRAWICON(CROSS(EXPMA((C/VAR35),120),1.004),0,17)
DRAWICON(LONGCROSS(VAR36,VAR40,2),95,2)
DRAWICON(趋势线上穿-85,趋势线,9)
当满足条件VAR56时,在-90和-30之间画柱状线
当满足条件主力时,在-30和30之间画柱状线
当满足条件主力时,在-30和'主进'位置书写文字


指标安装下载帮助  |   联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

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