通达信2018 破军一号
A1:=AMOUNT/VOL/100;
A2:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
A3:=SUM(AMOUNT,40)/A1/100;
A4:=SUM(AMOUNT,80)/A1/100;
B1:=DMA(A2,VOL/A3);
B2:=DMA(A2,VOL/A4);
B3:=(CLOSE-B1)/B1*100;
B4:=(CLOSE-B2)/B2*100;
控盘:1,COLORYELLOW,LINETHICK1;
极限:5,,COLORFF6600;
风险:-1,COLORGREEN,LINETHICK2;
低点:-4,COLORCCFF33;
现价:C,NODRAW;
DRAWTEXT(ISLASTBAR AND C,4.3,' ▲买 出现立刻关注'),COLORFF00FF;
DRAWTEXT(ISLASTBAR AND C,3.2,' 黑马 出现必持待涨'),COLORDB7093;
DRAWTEXT(ISLASTBAR AND C,2.1,' 牛牛 出现后市必高'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND C,1.0,' ▼卖 出现准备卖出'),COLORGREEN;
DRAWTEXT(ISLASTBAR AND C,-0.1,' 短红柱蓄势待发'),COLORRED;
DRAWTEXT(ISLASTBAR AND C,-1.2,' 洋红柱主力做多'),COLORMAGENTA;
DRAWTEXT(ISLASTBAR AND C,-2.3,' 遵守原则是上策'),COLORYELLOW;
DRAWTEXT(ISLASTBAR AND C,-3.4,' 冷静操盘获利多'),COLORYELLOW;
STICKLINE(FILTER(C,60)>0,极限,低点,0.5,0),COLORRED;
STICKLINE(B4>0,0,B4,1,0),COLORYELLOW;
STICKLINE(B3>0,0,B3,1,0),COLORRED;
STICKLINE(B3<=0,0,B3,1,0),COLORGREEN;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:=L1+P1*7/8;
支撑:=L1+P1*0.5/8;
现价1:=CLOSE;
DRAWTEXT(LONGCROSS(支撑,现价1,2),-1,'▲买'),COLORFF00FF;{吸}
DRAWTEXT(LONGCROSS(现价1,阻力,2),1,'▼卖'),COLORGREEN;{抛};
VAR1:=EMA(EMA(CLOSE,13),13);
控盘1:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
{分时价咯原码}
JJ:=DYNAINFO(11);
{波段买卖原码}
P:=55;S:=8;M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;
神:=EMA(财,M1),COLORGREEN,LINETHICK1;
{股价与均线偏离买卖条件}
BTJ11:=(C-JJ)/JJ<-0.03;
BTJ1:=(C-JJ)/JJ<-0.005;
BTJ2:=控盘1>REF(控盘1,1) AND 控盘1<-0.2;
{波段买卖条件}
BTJ3:=CROSS(财,神) AND 财<-0.3;
{以下为信号};
BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);
BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
马:= BTJ11 AND BTJ2 AND BTJ3;
黑马:FILTER(马,2),COLORDB7093,LINETHICK3;
DRAWTEXT(BTJ811,黑马*1.5,'黑马'),COLORDB7093;
牛:=(C-JJ)/JJ<-0.03;
DRAWTEXT(牛,4,'牛')COLORYELLOW;
VAR2:=LLV(LOW,33);
VAR3:=HHV(HIGH,21);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;
安全线:(100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1))/20,LINETHICK2,COLORBLUE;
风险值:(100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1))/20,CIRCLEDOT,LINETHICK2,COLORRED;
{WWW.}
BGTYU:=IF(DATE<=1150530,1,0);
GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,MA((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))));
STICKLINE(EMA(C,10)>EMA(C,60) ,-3,-2.5,2.0,0),COLORRED;
STICKLINE(EMA(C,10)<EMA(C,60) ,-3,-3.5,2.0,0),COLORGREEN;
STICKLINE(EMA((CLOSE/VBNH),120)>1.003 ,-3,-2,2.0,0),COLORMAGENTA;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.004),-3,'强劲主力'),COLORYELLOW;
DRAWICON(CROSS(EMA((CLOSE/VBNH),20),1.003),-3.5,27);
DRAWICON(CROSS(EMA((CLOSE/VBNH),20),1.003),-3.5,27);
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),20),EMA((CLOSE/VBNH),60)),-3.5,'看涨'),COLORBLUE;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),20),EMA((CLOSE/VBNH),60)),安全线,'大资金活动'),COLOR38B0DE;
未来函数检测结果如下:
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
A1赋值:成交额/成交量/100
A2赋值:(3*最高价+最低价+开盘价+2*CLOSE)/7
A3赋值:40的成交额日累和/A1/100
A4赋值:80的成交额日累和/A1/100
B1赋值:DA2的成交量/A3日简单移动平均
B2赋值:DA2的成交量/A4日简单移动平均
B3赋值:(CLOSE-B1)/B1*100
B4赋值:(CLOSE-B2)/B2*100
输出控盘:1,画黄色,LINETHICK1
输出极限:5,,COLORFF6600
输出风险:-1,画绿色, 线宽为2
输出低点:-4,COLORCCFF33
输出现价:C,NODRAW
当满足条件ISLASTBAR AND C时,在4.3和' ▲买 出现立刻关注'位置书写文字
当满足条件ISLASTBAR AND C时,在3.2和' 黑马 出现必持待涨'位置书写文字
当满足条件ISLASTBAR AND C时,在2.1和' 牛牛 出现后市必高'位置书写文字
当满足条件ISLASTBAR AND C时,在1.0和' ▼卖 出现准备卖出'位置书写文字
当满足条件ISLASTBAR AND C时,在-0.1和' 短红柱蓄势待发'位置书写文字
当满足条件ISLASTBAR AND C时,在-1.2和' 洋红柱主力做多'位置书写文字
当满足条件ISLASTBAR AND C时,在-2.3和' 遵守原则是上策'位置书写文字
当满足条件ISLASTBAR AND C时,在-3.4和' 冷静操盘获利多'位置书写文字
STICKLINE(C的60过滤>0,极限,低点,0.5,0),画红色
当满足条件B4>0时,在0和B4之间画柱状线
当满足条件B3>0时,在0和B3之间画柱状线
当满足条件B3<=0时,在0和B3之间画柱状线
H1赋值:MAX(DYNAINFO(3),DYNAINFO(5))
L1赋值:MIN(DYNAINFO(3),DYNAINFO(6))
P1赋值:H1-L1
阻力赋值:L1+P1*7/8
支撑赋值:L1+P1*0.5/8
现价1:=CLOSE
DRAWTEXT(LONGCROSS(支撑,现价1,2),-1,'▲买'),COLORFF00FF
{吸}
DRAWTEXT(LONGCROSS(现价1,阻力,2),1,'▼卖'),画绿色
{抛}
VAR1赋值:CLOSE的13日指数移动平均,13)
控盘1:=(VAR1-1日前的VAR1)/1日前的VAR1*1000
{分时价咯原码}
JJ赋值:均价
{波段买卖原码}
P赋值:55
S赋值:8
M1赋值:3
财赋值:(CLOSE的S日指数移动平均-CLOSE的P日指数移动平均)*10,画红色, 线宽为2
神赋值:财的M1日指数移动平均,画绿色,LINETHICK1
{股价与均线偏离买卖条件}
BTJ11赋值:(C-JJ)/JJ<-0.03
BTJ1赋值:(C-JJ)/JJ<-0.005
BTJ2赋值:控盘1>1日前的控盘1 AND 控盘1<-0.2
{波段买卖条件}
BTJ3赋值:财上穿神 AND 财<-0.3
{以下为信号}
BTJ81赋值:BTJ1 AND BTJ2 AND BTJ3的13过滤
BTJ811:=BTJ11 AND BTJ2 AND BTJ3的13过滤
马赋值: BTJ11 AND BTJ2 AND BTJ3
黑输出马:马的2过滤,COLORDB7093, 线宽为3
当满足条件BTJ811时,在黑马*1.5和'黑马'位置书写文字
牛赋值:(C-JJ)/JJ<-0.03
当满足条件牛时,在4和'牛'位置书写文字
VAR2赋值:33日内最低价最低值
VAR3赋值:21日内最高价最高值
VAR4赋值:EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100
输出安全线:(100-E0.191*1日前的VAR4+0.809*VAR4的1日简单移动平均)/20, 线宽为2, 画蓝色
风险值:(100-E0.191*1日前的VAR4+0.809*VAR4的1日简单移动平均)/20,CIRCLEDOT, 线宽为2,画红色
如果DATE<=1150530返回1否则返回0
GHYJKU赋值:BETWEEN((CLOSE*BGTYU)/(SUM(成交额,(CLOSE*BGTYU的有效数据周期数))/SUM(成交量*100,(CLOSE*BGTYU的有效数据周期数))),1.05,0.95)
VBNH赋值:IF(GHYJKU=0,MA((CLOSE*BGTYU),(CLOSE*BGTYU的有效数据周期数)),(SUM(成交额,(CLOSE*BGTYU的有效数据周期数))/SUM(成交量*100,(CLOSE*BGTYU的有效数据周期数))))
STICKLINE(C的10日指数移动平均>C的60日指数移动平均 ,-3,-2.5,2.0,0),画红色
STICKLINE(C的10日指数移动平均
STICKLINE(EMA((CLOSE/VBNH),120)>1.003 ,-3,-2,2.0,0),画洋红色
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.004),-3,'强劲主力'),画黄色
DRAWICON(CROSS(EMA((CLOSE/VBNH),20),1.003),-3.5,27)
DRAWICON(CROSS(EMA((CLOSE/VBNH),20),1.003),-3.5,27)
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),20),EMA((CLOSE/VBNH),60)),-3.5,'看涨'), 画蓝色
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),20),EMA((CLOSE/VBNH),60)),安全线,'大资金活动'),COLOR38B0DE