通达信【主力动机】副图 买入即赚笑眯眯 详解 源码
BNGE1:=(VOL/CLOSE)/2;
BNGE2:=SUM(IF(BNGE1>100 AND CLOSE>REF(CLOSE,1),BNGE1,0),0);
BNGE3:=SUM(IF(BNGE1>100 AND CLOSE<REF(CLOSE,1),BNGE1,0),0);
BNGE4:=SUM(IF(BNGE1<100 AND CLOSE>REF(CLOSE,1),BNGE1,0),0);
BNGE5:=SUM(IF(BNGE1<100 AND CLOSE<REF(CLOSE,1),BNGE1,0),0);
BNGE6:=BNGE2+BNGE3+BNGE4+BNGE5;
BNGE7:=(C*2+H+L)/4*10;
BNGE8:=EMA(BNGE7,13)-EMA(BNGE7,34);
BNGE9:=EMA(BNGE8,5);
BNGE10:=2*(BNGE8-BNGE9)*5.5;
BNGE11:=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);
BNGE12:=EMA(BNGE11,3);
BNGE13:=(BNGE12-REF(BNGE12,1))/REF(BNGE12,1)*100;
BNGE14:=EMA(EMA(CLOSE,9),9);
BNGE15:=(BNGE14-REF(BNGE14,1))/REF(BNGE14,1)*500;
BNGE16:=IF(BNGE15>REF(BNGE15,1) AND BNGE15>0,BNGE15,0);
BNGE17:=IF(BNGE15<REF(BNGE15,1) AND BNGE15>0,BNGE15,0);
BNGE18:=IF(BNGE15<0,BNGE15,0);
BNGE19:=BNGE16+BNGE17;
BNGE20:=-BNGE18;
BNGE21:=(SUM(BNGE19,0)-SUM(BNGE20,0))/20;
BNGE22:=(VOL/C)/2;
BNGE23:=SUM(IF(BNGE22>100 AND CLOSE>REF(CLOSE,1),BNGE22,0),0);
BNGE24:=SUM(IF(BNGE22>100 AND CLOSE<REF(CLOSE,1),BNGE22,0),0);
BNGE25:=SUM(IF(BNGE22<100 AND CLOSE>REF(CLOSE,1),BNGE22,0),0);
BNGE26:=SUM(IF(BNGE22<100 AND CLOSE<REF(CLOSE,1),BNGE22,0),0);
BNGE27:=BNGE23+BNGE24+BNGE25+BNGE26;
BNGE28:=(BNGE23/BNGE27)*100;
BNGE29:=(BNGE24/BNGE27)*100;
BNGE30:=BNGE28-BNGE29;
BNGE31:=BNGE21>0.1 AND BNGE30>0 AND REF(BNGE30,1)<=0 AND BNGE21+0.3;
BNGE32:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,21)-LLV(LOW,34))*100;
BNGE33:=IF(DATE<=1150530,1,0);
BNGE34:=BETWEEN((C*BNGE33)/(SUM(AMOUNT,BARSCOUNT((C*BNGE33)))/SUM(VOL*100,BARSCOUNT((C*BNGE33)))),1.05,0.95);
BNGE35:=IF(BNGE34=0,MA((C*BNGE33),BARSCOUNT((C*BNGE33))),(SUM(AMOUNT,BARSCOUNT((C*BNGE33)))/SUM(VOL*100,BARSCOUNT((C*BNGE33)))));
BNGE36:=CLOSE;
BNGE37:=MAX(DYNAINFO(3),DYNAINFO(5));
BNGE38:=MIN(DYNAINFO(3),DYNAINFO(6));
BNGE39:=BNGE37-BNGE38;
BNGE40:=BNGE38+BNGE39*7/8,COLORGREEN;
BNGE41:=BNGE38+BNGE39*0.5/8,COLORMAGENTA;
BNGE42:=EMA(EMA(CLOSE,13),13);
BNGE43:=(BNGE42-REF(BNGE42,1))/REF(BNGE42,1)*1000;
BNGE44:=BNGE43>REF(BNGE43,1) AND BNGE43<-0.2;
BNGE45:=DYNAINFO(11);
BNGE46:=55;
BNGE47:=8;
BNGE48:=3;
BNGE49:=(EMA(CLOSE,BNGE47)-EMA(C,BNGE46))*10;
BNGE50:=EMA(BNGE49,BNGE48),COLOR00FF00;
BNGE51:=(CLOSE-BNGE45)/BNGE45<-0.03;
BNGE52:=CROSS(BNGE49,BNGE50) AND BNGE49<-0.3;
BNGE53:=8;
BNGE54:=FILTER(BNGE51 AND BNGE44 AND BNGE52,BNGE53);
BNGE55:=IF(HOUR>=9 AND HOUR<14,1,0);
BNGE56:=BNGE54 AND TIME>15 AND BNGE55;
趋势线:(EMA(BNGE32,3)-50)*2,COLORWHITE;
主力进:IF(BNGE10>=0,BNGE10*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(BNGE12>=90 AND BNGE13,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/BNGE35),120)>1.003,30,40,2.0,0),COLORMAGENTA;
DRAWTEXT(CROSS(EXPMA((C/BNGE35),20),1.04),-50,'板'),COLORCYAN;
DRAWTEXT(CROSS(EXPMA((C/BNGE35),20),1.02),-60,'追'),COLORWHITE;
DRAWTEXT(CROSS(EXPMA((C/BNGE35),120),1.0029),-80,'量'),COLORWHITE;
DRAWICON(CROSS(EXPMA((C/BNGE35),120),1.004),0,17);
DRAWICON(LONGCROSS(BNGE36,BNGE40,2),95,2);
DRAWICON(CROSS(趋势线,-85),趋势线,9);
STICKLINE(BNGE56,-90,-30,1,0),COLORRED;
STICKLINE(好股网,-30,30,2,0),COLORRED;
DRAWTEXT(好股网,-30,'主进'),COLORYELLOW;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
BNGE1赋值:(成交量/收盘价)/2
BNGE2赋值:SUM(IF(BNGE1>100 AND 收盘价>1日前的收盘价,BNGE1,0),0)
BNGE3赋值:SUM(IF(BNGE1>100 AND 收盘价<1日前的收盘价,BNGE1,0),0)
BNGE4赋值:SUM(IF(BNGE1<100 AND 收盘价>1日前的收盘价,BNGE1,0),0)
BNGE5赋值:SUM(IF(BNGE1<100 AND 收盘价<1日前的收盘价,BNGE1,0),0)
BNGE6赋值:BNGE2+BNGE3+BNGE4+BNGE5
BNGE7赋值:(C*2+H+L)/4*10
BNGE8赋值:BNGE7的13日指数移动平均-BNGE7的34日指数移动平均
BNGE9赋值:BNGE8的5日指数移动平均
BNGE10:=2*(BNGE8-BNGE9)*5.5
BNGE11:=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)
BNGE12:=BNGE11的3日指数移动平均
BNGE13:=(BNGE12-1日前的BNGE12)/1日前的BNGE12*100
BNGE14:=收盘价的9日指数移动平均,9)
BNGE15:=(BNGE14-1日前的BNGE14)/1日前的BNGE14*500
BNGE16:=IF(BNGE15>1日前的BNGE15 AND BNGE15>0,BNGE15,0)
BNGE17:=IF(BNGE15<1日前的BNGE15 AND BNGE15>0,BNGE15,0)
如果BNGE15<0返回BNGE15否则返回0
BNGE19:=BNGE16+BNGE17
BNGE20:=-BNGE18
BNGE21:=(0的BNGE19日累和-0的BNGE20日累和)/20
BNGE22:=(成交量/C)/2
BNGE23:=SUM(IF(BNGE22>100 AND 收盘价>1日前的收盘价,BNGE22,0),0)
BNGE24:=SUM(IF(BNGE22>100 AND 收盘价<1日前的收盘价,BNGE22,0),0)
BNGE25:=SUM(IF(BNGE22<100 AND 收盘价>1日前的收盘价,BNGE22,0),0)
BNGE26:=SUM(IF(BNGE22<100 AND 收盘价<1日前的收盘价,BNGE22,0),0)
BNGE27:=BNGE23+BNGE24+BNGE25+BNGE26
BNGE28:=(BNGE23/BNGE27)*100
BNGE29:=(BNGE24/BNGE27)*100
BNGE30:=BNGE28-BNGE29
BNGE31:=BNGE21>0.1 AND BNGE30>0 AND 1日前的BNGE30<=0 AND BNGE21+0.3
BNGE32:=(收盘价-34日内最低价最低值)/(21日内最高价最高值-34日内最低价最低值)*100
如果DATE<=1150530返回1否则返回0
BNGE34:=BETWEEN((C*BNGE33)/(SUM(成交额,(C*BNGE33的有效数据周期数))/SUM(成交量*100,(C*BNGE33的有效数据周期数))),1.05,0.95)
BNGE35:=IF(BNGE34=0,MA((C*BNGE33),(C*BNGE33的有效数据周期数)),(SUM(成交额,(C*BNGE33的有效数据周期数))/SUM(成交量*100,(C*BNGE33的有效数据周期数))))
BNGE36:=收盘价
BNGE37:=MAX(DYNAINFO(3),DYNAINFO(5))
BNGE38:=MIN(DYNAINFO(3),DYNAINFO(6))
BNGE39:=BNGE37-BNGE38
BNGE40:=BNGE38+BNGE39*7/8,画绿色
BNGE41:=BNGE38+BNGE39*0.5/8,画洋红色
BNGE42:=收盘价的13日指数移动平均,13)
BNGE43:=(BNGE42-1日前的BNGE42)/1日前的BNGE42*1000
BNGE44:=BNGE43>1日前的BNGE43 AND BNGE43<-0.2
BNGE45:=均价
BNGE46:=55
BNGE47:=8
BNGE48:=3
BNGE49:=(收盘价的BNGE47日指数移动平均-C的BNGE46日指数移动平均)*10
BNGE50:=BNGE49的BNGE48日指数移动平均,COLOR00FF00
BNGE51:=(收盘价-BNGE45)/BNGE45<-0.03
BNGE52:=BNGE49上穿BNGE50 AND BNGE49<-0.3
BNGE53:=8
BNGE54:=BNGE51 AND BNGE44 AND BNGE52的BNGE53过滤
如果HOUR>=9 AND HOUR<14返回1否则返回0
BNGE56:=BNGE54 AND TIME>15 AND BNGE55
输出趋势线:(BNGE32的3日指数移动平均-50)*2,画白色
如果BNGE10>=0返回BNGE10*3否则返回0
指标平台赋值:趋势线
好股网赋值:趋势线上穿0 AND 主力进>0 AND C的10日指数移动平均>C的60日指数移动平均
DRAWBAND(主力进,RGB(200,10,10),0,RGB(10,200,10))
当满足条件BNGE12>=90 AND BNGE13时,在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/BNGE35),120)>1.003,30,40,2.0,0),画洋红色
DRAWTEXT(CROSS(EXPMA((C/BNGE35),20),1.04),-50,'板'),画青色
DRAWTEXT(CROSS(EXPMA((C/BNGE35),20),1.02),-60,'追'),画白色
DRAWTEXT(CROSS(EXPMA((C/BNGE35),120),1.0029),-80,'量'),画白色
DRAWICON(CROSS(EXPMA((C/BNGE35),120),1.004),0,17)
DRAWICON(LONGCROSS(BNGE36,BNGE40,2),95,2)
DRAWICON(趋势线上穿-85,趋势线,9)
当满足条件BNGE56时,在-90和-30之间画柱状线
当满足条件好股网时,在-30和30之间画柱状线
当满足条件好股网时,在-30和'主进'位置书写文字