通达信底部来了副图指标源码分享
VAR1:=EMA(EMA(CLOSE,13),13);
做多:=(VAR1-REF(VAR1,1))/REF(VAR1,1)*1000;
STICKLINE(做多< 0,做多,0,1,1),COLOR00FF00;
STICKLINE(做多>REF(做多,1) AND 做多< 0,做多,7,1,1),COLORFF00FF;
无庄做多:=做多< 0;
STICKLINE(做多>REF(做多,1) AND 做多>0,做多,7,1,1),COLOR0000FF;
有庄做多:=做多>REF(做多,1) AND 做多>0;
VAR2:=100*WINNER(CLOSE*0.95);
STICKLINE(做多< REF(做多,1) AND 做多>0,做多,7,1,1),COLORFFFF00;
主力出货:=做多< REF(做多,1) AND 做多>0;
STICKLINE(VAR2>50 AND COST(85)< CLOSE AND 做多>0,做多,0,1,1),COLOR00FFFF;
强势做多: VAR2>50 AND COST(85)< CLOSE AND 做多>0,COLOR00FFFF,LINETHICK2;
A10:=CROSS(做多,0);
做多B:=FILTER(IF(A10,1,0),5);
JJ:=DYNAINFO(11);
P:=55;
S:=8;
M1:=3;
财:=(EMA(CLOSE,S)-EMA(CLOSE,P))*10,COLORRED,LINETHICK2;
神:=EMA(财,M1),COLORGREEN,LINETHICK1;
DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50));
BTJ1:=(C-JJ)/JJ< -0.005;
BTJ11:=(C-JJ)/JJ< -0.03;
BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ< 0.005;
STJ1:=(C-JJ)/JJ>0.005;
STJ01:=做多< REF(做多,1) AND 做多>0.5;
STJ02:=做多>0;
BTJ2:=做多>REF(做多,1) AND 做多< -0.2;
BTJ22:=做多>REF(做多,1) AND 做多< 0 ;
BTJ3:=CROSS(财,神) AND 财< -0.3;
BTJ32:=CROSS(财,神) AND 财< -0.1;
STJ31:=CROSS(神,财);
STJ32:=CROSS(神,财) AND 财>1.618;
BTJ81:=FILTER(BTJ1 AND BTJ2 AND BTJ3,13);
BTJ811:=FILTER(BTJ11 AND BTJ2 AND BTJ3,13);
BTJ82:=FILTER(BTJ12 AND BTJ22 AND BTJ32,13);
DRAWICON(BTJ82,神,23);
DRAWICON(BTJ81 AND TIME>10,神,25);
DRAWICON(BTJ811 AND TIME>10,神,26);
DRAWTEXT(BTJ81,神,'底部来了'),COLORWHITE,LINETHICK9;
DRAWTEXT(BTJ811,神*1.2,'买买买'),COLORFFF666;
STJ81:=FILTER(STJ1 AND STJ01 AND STJ31,13);
DRAWICON(STJ81,神,19);
STJ82:=FILTER(STJ02 AND STJ32 ,13);
DRAWICON(STJ82,神,15);
STJ83:=STJ81 AND STJ82;
DRAWTEXT(STJ83,神,'必卖'),COLOR00FF00;
选股公式源码:
VAR1:=EMA(EMA(CLOSE,13),13);
做多:=(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;
BTJ1:=(C-JJ)/JJ< -0.005;
BTJ11:=(C-JJ)/JJ< -0.03;
BTJ12:=LAST(JJ>=REF(JJ,1),5,1) AND (C-JJ)/JJ< 0.005;
STJ1:=(C-JJ)/JJ>0.005;
STJ01:=做多< REF(做多,1) AND 做多>0.5;
STJ02:=做多>0;
BTJ2:=做多>REF(做多,1) AND 做多< -0.2;
BTJ22:=做多>REF(做多,1) AND 做多< 0 ;
BTJ3:=CROSS(财,神) AND 财< -0.3;
BTJ32:=CROSS(财,神) AND 财< -0.1;
STJ31:=CROSS(神,财);
STJ32:=CROSS(神,财) AND 财>1.618;
底:FILTER(BTJ12 AND BTJ22 AND BTJ32,13);
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
VAR1赋值:CLOSE的13日指数移动平均,13)
做多赋值:(VAR1-1日前的VAR1)/1日前的VAR1*1000
当满足条件做多< 0时,在做多和0之间画柱状线
STICKLINE(做多>1日前的做多 AND 做多< 0,做多,7,1,1),COLORFF00FF
无庄做多赋值:做多< 0
STICKLINE(做多>1日前的做多 AND 做多>0,做多,7,1,1),COLOR0000FF
有庄做多赋值:做多>1日前的做多 AND 做多>0
VAR2赋值:100*CLOSE*0.95计算的获利盘比例
STICKLINE(做多< 1日前的做多 AND 做多>0,做多,7,1,1),COLORFFFF00
主力出货赋值:做多< 1日前的做多 AND 做多>0
STICKLINE(VAR2>50 AND 获利盘为85%的成本分布< CLOSE AND 做多>0,做多,0,1,1),COLOR00FFFF
强势输出做多: VAR2>50 AND 获利盘为85%的成本分布< CLOSE AND 做多>0,COLOR00FFFF, 线宽为2
A10赋值:做多上穿0
如果A10返回1否则返回0
JJ赋值:均价
P赋值:55
S赋值:8
M1赋值:3
财赋值:(CLOSE的S日指数移动平均-CLOSE的P日指数移动平均)*10,画红色, 线宽为2
神赋值:财的M1日指数移动平均,画绿色,LINETHICK1
DRAWBAND(财,RGB(255,0,0),神,RGB(0,100,50))
BTJ1赋值:(C-JJ)/JJ< -0.005
BTJ11:=(C-JJ)/JJ< -0.03
BTJ12:=LAST(JJ>=1日前的JJ,5,1) AND (C-JJ)/JJ< 0.005
STJ1:=(C-JJ)/JJ>0.005
STJ01:=做多< 1日前的做多 AND 做多>0.5
STJ02:=做多>0
BTJ2赋值:做多>1日前的做多 AND 做多< -0.2
BTJ22:=做多>1日前的做多 AND 做多< 0
BTJ3赋值:财上穿神 AND 财< -0.3
BTJ32:=财上穿神 AND 财< -0.1
STJ31:=神上穿财
STJ32:=神上穿财 AND 财>1.618
BTJ81赋值:BTJ1 AND BTJ2 AND BTJ3的13过滤
BTJ811:=BTJ11 AND BTJ2 AND BTJ3的13过滤
BTJ82赋值:BTJ12 AND BTJ22 AND BTJ32的13过滤
当满足条件BTJ82时,在神和23之间画图标
当满足条件BTJ81 AND TIME>10时,在神和25之间画图标
当满足条件BTJ811 AND TIME>10时,在神和26之间画图标
当满足条件BTJ81时,在神和'底部来了'位置书写文字
当满足条件BTJ811时,在神*1.2和'买买买'位置书写文字
STJ81:=STJ1 AND STJ01 AND STJ31的13过滤
当满足条件STJ81时,在神和19之间画图标
STJ82:=STJ02 AND STJ32 的13过滤
当满足条件STJ82时,在神和15之间画图标
STJ83:=STJ81 AND STJ82
当满足条件STJ83时,在神和'必卖'位置书写文字
选股公式源码:
VAR1赋值:CLOSE的13日指数移动平均,13)
做多赋值:(VAR1-1日前的VAR1)/1日前的VAR1*1000
JJ赋值:均价
P赋值:55
S赋值:8
M1赋值:3
财赋值:(CLOSE的S日指数移动平均-CLOSE的P日指数移动平均)*10,画红色, 线宽为2
神赋值:财的M1日指数移动平均,画绿色,LINETHICK1
BTJ1赋值:(C-JJ)/JJ< -0.005
BTJ11:=(C-JJ)/JJ< -0.03
BTJ12:=LAST(JJ>=1日前的JJ,5,1) AND (C-JJ)/JJ< 0.005
STJ1:=(C-JJ)/JJ>0.005
STJ01:=做多< 1日前的做多 AND 做多>0.5
STJ02:=做多>0
BTJ2赋值:做多>1日前的做多 AND 做多< -0.2
BTJ22:=做多>1日前的做多 AND 做多< 0
BTJ3赋值:财上穿神 AND 财< -0.3
BTJ32:=财上穿神 AND 财< -0.1
STJ31:=神上穿财
STJ32:=神上穿财 AND 财>1.618
输出底:BTJ12 AND BTJ22 AND BTJ32的13过滤