通达信价值千元【大牛直上】副图小牛大牛一起抓 源码
X_1:=INDEXH;
X_2:=INDEXO;
X_3:=INDEXL;
X_4:=INDEXC;
X_5:=INDEXV;
X_6:=(3*CLOSE+HIGH+LOW+OPEN)/6;
X_7:=EMA(X_6,35);
X_8:=(HHV(X_7,5)+HHV(X_7,15)+HHV(X_7,30))/3;
X_9:=(LLV(X_7,5)+LLV(X_7,15)+LLV(X_7,30))/3;
X_10:=(HHV(X_8,5)+HHV(X_8,15)+HHV(X_8,30))/3;
X_11:=12;
X_12:=26;
X_13:=200;
X_14:=9;
X_15:=34;
X_16:=1;
X_17:=1;
X_18:=EMA(CLOSE,X_11)-EMA(CLOSE,X_12);
X_19:=EMA(X_18,X_13);
X_20:=(X_18-X_19)*2*X_17;
X_21:=IF(X_20<0,0,X_20*X_20);
X_22:=EMA(CLOSE,X_14)-EMA(CLOSE,X_15);
X_23:=EMA(X_22,200);
X_24:=(X_22-X_23)*2*X_17;
X_25:=MA(CLOSE,30);
X_26:=X_25+2*STD(CLOSE,30);
X_27:=(MA(CLOSE,60)-LOW)/MA(CLOSE,20);
X_28:=(MA(CLOSE,60)-LOW)/MA(CLOSE,60);
X_29:=(MA(CLOSE,30)-LOW)/MA(CLOSE,30);
X_30:=50*(X_27+X_28+X_29)/3;
X_31:=(-50)*(X_27+X_28+X_29)/3;
X_32:=MA(CLOSE,5);
X_33:=MA(CLOSE,10);
X_34:=MA(CLOSE,20);
X_35:=MA(CLOSE,30);
X_36:=MA(CLOSE,54);
X_37:=MA(CLOSE,60);
X_38:=MA(CLOSE,120);
X_39:=50/((X_32+X_33+X_34+X_35+X_37+X_38)/6/CLOSE)/10;
XG:CROSS(X_31,X_10) AND CLOSE>X_26 AND CLOSE>=OPEN;
STICKLINE(IF(XG,(-120),0),0.5,0,1,0),COLOR000088;
STICKLINE(IF(XG,(-120),0),0.8,0,1,0),COLOR0000AA;
STICKLINE(IF(XG,(-120),0),0.8,0,1,0),COLOR0000CC;
STICKLINE(IF(XG,(-120),0),0.8,0,1,0),COLOR0000EE;
STICKLINE(IF(XG,(-120),0),0.8,0,1,0),COLOR0000EE;
STICKLINE(IF(XG,(-120),0),0.8,0,1,0),COLORLIMAGENTA;
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLOR770077;
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLOR990099;
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLORBB00BB;
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLORDD00DD;
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLORMAGENTA;
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLORDD00DD;
STICKLINE(IF(XG,(-120),0),0.4,0,1,0),COLOR003300;
STICKLINE(IF(XG,(-120),0),0.4,0,1,0),COLOR005500;
STICKLINE(IF(XG,(-120),0),0.4,0,1,0),COLOR007700;
STICKLINE(IF(XG,(-120),0),0.4,0,1,0),COLOR009900;
STICKLINE(IF(XG,(-120),0),0.4,0,1,0),COLOR00CC00;
STICKLINE(IF(XG,(-120),0),0.2,0,1,0),COLOR666666;
STICKLINE(IF(XG,(-120),0),0.2,0,1,0),COLOR777777;
STICKLINE(XG,0,0.1,2,0),COLOR008888;
STICKLINE(XG,0,0.1,2,0),COLOR00AAAA;
STICKLINE(XG,0,0.1,2,0),COLOR00CCCC;
STICKLINE(XG,0,0.1,2,0),COLORYELLOW;
DRAWTEXT(XG,0.7,'大'),COLORWHITE,LINETHICK2;
DRAWTEXT(XG,0.5,'牛'),COLORWHITE,LINETHICK2;
DRAWTEXT(XG,0.3,'直'),COLORWHITE,LINETHICK2;
DRAWTEXT(XG,0.1,'上'),COLORWHITE,LINETHICK2;
来函数检测结果如下:
该公式没有未来函数
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
X_1赋值:INDEXH
X_2赋值:INDEXO
X_3赋值:INDEXL
X_4赋值:INDEXC
X_5赋值:INDEXV
X_6赋值:(3*收盘价+最高价+最低价+开盘价)/6
X_7赋值:X_6的35日指数移动平均
X_8赋值:(5日内X_7最高值+15日内X_7最高值+30日内X_7最高值)/3
X_9赋值:(5日内X_7最低值+15日内X_7最低值+30日内X_7最低值)/3
X_10:=(5日内X_8最高值+15日内X_8最高值+30日内X_8最高值)/3
X_11:=12
X_12:=26
X_13:=200
X_14:=9
X_15:=34
X_16:=1
X_17:=1
X_18:=收盘价的X_11日指数移动平均-收盘价的X_12日指数移动平均
X_19:=X_18的X_13日指数移动平均
X_20:=(X_18-X_19)*2*X_17
如果X_20<0返回0否则返回X_20*X_20
X_22:=收盘价的X_14日指数移动平均-收盘价的X_15日指数移动平均
X_23:=X_22的200日指数移动平均
X_24:=(X_22-X_23)*2*X_17
X_25:=收盘价的30日简单移动平均
X_26:=X_25+2*收盘价的30估算标准差
X_27:=(收盘价的60日简单移动平均-最低价)/收盘价的20日简单移动平均
X_28:=(收盘价的60日简单移动平均-最低价)/收盘价的60日简单移动平均
X_29:=(收盘价的30日简单移动平均-最低价)/收盘价的30日简单移动平均
X_30:=50*(X_27+X_28+X_29)/3
X_31:=(-50)*(X_27+X_28+X_29)/3
X_32:=收盘价的5日简单移动平均
X_33:=收盘价的10日简单移动平均
X_34:=收盘价的20日简单移动平均
X_35:=收盘价的30日简单移动平均
X_36:=收盘价的54日简单移动平均
X_37:=收盘价的60日简单移动平均
X_38:=收盘价的120日简单移动平均
X_39:=50/((X_32+X_33+X_34+X_35+X_37+X_38)/6/收盘价)/10
输出XG:X_31上穿X_10 AND 收盘价>X_26 AND 收盘价>=开盘价
STICKLINE(IF(XG,(-120),0),0.5,0,1,0),COLOR000088
STICKLINE(IF(XG,(-120),0),0.8,0,1,0),COLOR0000AA
STICKLINE(IF(XG,(-120),0),0.8,0,1,0),COLOR0000CC
STICKLINE(IF(XG,(-120),0),0.8,0,1,0),COLOR0000EE
STICKLINE(IF(XG,(-120),0),0.8,0,1,0),COLOR0000EE
STICKLINE(IF(XG,(-120),0),0.8,0,1,0),COLORLIMAGENTA
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLOR770077
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLOR990099
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLORBB00BB
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLORDD00DD
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),画洋红色
STICKLINE(IF(XG,(-120),0),0.6,0,1,0),COLORDD00DD
STICKLINE(IF(XG,(-120),0),0.4,0,1,0),COLOR003300
STICKLINE(IF(XG,(-120),0),0.4,0,1,0),COLOR005500
STICKLINE(IF(XG,(-120),0),0.4,0,1,0),COLOR007700
STICKLINE(IF(XG,(-120),0),0.4,0,1,0),COLOR009900
STICKLINE(IF(XG,(-120),0),0.4,0,1,0),COLOR00CC00
STICKLINE(IF(XG,(-120),0),0.2,0,1,0),COLOR666666
STICKLINE(IF(XG,(-120),0),0.2,0,1,0),COLOR777777
当满足条件XG时,在0和0.1之间画柱状线
当满足条件XG时,在0和0.1之间画柱状线
当满足条件XG时,在0和0.1之间画柱状线
当满足条件XG时,在0和0.1之间画柱状线
当满足条件XG时,在0.7和'大'位置书写文字
当满足条件XG时,在0.5和'牛'位置书写文字
当满足条件XG时,在0.3和'直'位置书写文字
当满足条件XG时,在0.1和'上'位置书写文字