通达信【维度分析】副图指标 盘中数值会变适合复盘使用 源码
ZDF:=(C-REF(C,1))/REF(C,1)*100;
ZT:=ZDF>9.8;
SB1:=BARSLASTCOUNT(ZT)=1;
SB2:=BARSLASTCOUNT(ZT)=2;
今开%:(O-REF(C,1))/REF(C,1)*100,NODRAW ;
S0:=DYNAINFO(15)/O/100;
{------------强龙---------------}
BL:=EMA(CLOSE,125);
HL:=BL+2*STD(CLOSE,170);
ZL:=HHV(HIGH,20)*0.91;
QC:=EVERY(C<HL,4);
Q1:=C>HL AND ZDF>9.8 AND L<HL,NODRAW ;
Q2:=C>COST(90),NODRAW;
Q3:=IF(AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20))*100>100,100,AMOUNT/CLOSE/(HHV(AMOUNT,20)/HHV(CLOSE,20))*100),NODRAW,COLORYELLOW;
Q4:=WINNER(CLOSE)*100,NODRAW,COLORMAGENTA,NODRAW;
Q5:=S0/REF(V,1)*100;
Q6:=100-ABS((EMA(O,5)-EMA(O,13)))*10,NODRAW;
Q7:=ATAN((EMA(O,5)/REF(EMA(O,5),1)-1)*100)*180/3.14115926,NODRAW;
强龙:Q1,NODRAW ;
强筹:Q2,NODRAW ;
强牛:Q7,NODRAW ;
量能:Q3,NODRAW ;
获利盘:Q4,NODRAW ;
满量:Q5,NODRAW ;
浮筹:Q6,NODRAW ;
潜能:100-ABS((EMA(CLOSE,6)-EMA(CLOSE,13)))*10,NODRAW;
DRAWRECTREL(860,750,920,800,IF(CONST(强筹)<1,RGB(255,255,0),0));
DRAWRECTREL(790,300,850,800,IF(CONST(量能)<99,RGB(255,86,255),0));
DRAWRECTREL(720,500,780,800,IF(CONST(获利盘)<95,RGB(86,255,86),0));
DRAWRECTREL(650,400,710,800,IF(CONST(满量)>5,RGB(255,255,255),0));
DRAWRECTREL(580,600,640,800,IF(CONST(潜能)<=90,RGB(0,255,255),0));
DRAWRECTREL(930,200,990,800,IF(CONST(强龙)>=1,RGB(250,0,0),0));
DRAWRECTREL(860,200,920,800,IF(CONST(强筹)=1,RGB(255,0,0),0));
DRAWRECTREL(790,200,850,800,IF(CONST(量能)>=99,RGB(255,0,0),0));
DRAWRECTREL(720,200,780,800,IF(CONST(获利盘)>=95,RGB(255,0,0),0));
DRAWRECTREL(650,200,710,800,IF(CONST(满量)<=4,RGB(255,0,0),0));
DRAWRECTREL(580,200,640,800,IF(CONST(潜能)>90,RGB(255,0,0),0));
DRAWRECTREL(510,200,570,800,IF(CONST(强牛)>70,RGB(255,0,0),0));
W1:=STRCAT(('强龙:'),CON2STR(Q1,0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.94,0.9,0,W1),COLORRED;
W2:=STRCAT(('强筹:'),CON2STR(Q2,0));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.87,0.9,0,W2),COLORYELLOW;
W3:=STRCAT(('量能:'),CON2STR(Q3,1));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.79,0.9,0,W3),COLORLIMAGENTA;
W4:=STRCAT(('获利盘:'),CON2STR(Q4,1));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.72,0.9,0,W4),COLORGREEN;
W5:=STRCAT(('满量:'),CON2STR(Q5,2));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.65,0.9,0,W5),COLORWHITE;
W6:=STRCAT(('潜能:'),CON2STR(Q6,2));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.58,0.9,0,W6),COLORWHITE;
W7:=STRCAT(('强牛:'),CON2STR(Q7,2));
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.51,0.9,0,W7),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.94,0.05,0,Q1),COLORRED;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.87,0.05,0,Q2),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.79,0.05,0,Q3),COLORLIMAGENTA;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.72,0.05,0,Q4),COLORGREEN;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.65,0.05,0,Q5),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.58,0.05,0,Q6),COLORWHITE;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.51,0.05,0,Q7),COLORWHITE;
未来函数检测结果如下:
该公式包含未来函数:WINNER
该公式包含未来函数:COST
该公式包含未来函数:DYNAINFO
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
ZDF赋值:(C-1日前的C)/1日前的C*100
ZT赋值:ZDF>9.8
SB1赋值:BARSLASTCOUNT(ZT)=1
SB2赋值:BARSLASTCOUNT(ZT)=2
输出今开%:(O-1日前的C)/1日前的C*100,NODRAW
S0赋值:开盘金额/O/100
{------------强龙---------------}BL赋值:收盘价的125日指数移动平均
HL赋值:BL+2*收盘价的170估算标准差
ZL赋值:20日内最高价最高值*0.91
QC赋值:CQ1赋值:C>HL AND ZDF>9.8 AND LQ2赋值:C>获利盘为90%的成本分布,NODRAW
Q3赋值:IF(成交额/收盘价/(20日内成交额最高值/20日内收盘价最高值)*100>100,100,成交额/收盘价/(20日内成交额最高值/20日内收盘价最高值)*100),NODRAW,画黄色
Q4赋值:收盘价计算的获利盘比例*100,NODRAW,画洋红色,NODRAW
Q5赋值:S0/1日前的V*100
Q6赋值:100-(O的5日指数移动平均-O的13日指数移动平均的绝对值)*10,NODRAW
Q7赋值:ATAN((O的5日指数移动平均/1日前的O的5日指数移动平均-1)*100)*180/3.14115926,NODRAW
输出强龙:Q1,NODRAW
输出强筹:Q2,NODRAW
输出强牛:Q7,NODRAW
输出量能:Q3,NODRAW
输出获利盘:Q4,NODRAW
输出满量:Q5,NODRAW
输出浮筹:Q6,NODRAW
输出潜能:100-(收盘价的6日指数移动平均-收盘价的13日指数移动平均的绝对值)*10,NODRAW
DRAWRECTREL(860,750,920,800,IF(CONST(强筹)<1,RGB(255,255,0),0))
DRAWRECTREL(790,300,850,800,IF(CONST(量能)<99,RGB(255,86,255),0))
DRAWRECTREL(720,500,780,800,IF(CONST(获利盘)<95,RGB(86,255,86),0))
DRAWRECTREL(650,400,710,800,IF(CONST(满量)>5,RGB(255,255,255),0))
DRAWRECTREL(580,600,640,800,IF(CONST(潜能)<=90,RGB(0,255,255),0))
DRAWRECTREL(930,200,990,800,IF(CONST(强龙)>=1,RGB(250,0,0),0))
DRAWRECTREL(860,200,920,800,IF(CONST(强筹)=1,RGB(255,0,0),0))
DRAWRECTREL(790,200,850,800,IF(CONST(量能)>=99,RGB(255,0,0),0))
DRAWRECTREL(720,200,780,800,IF(CONST(获利盘)>=95,RGB(255,0,0),0))
DRAWRECTREL(650,200,710,800,IF(CONST(满量)<=4,RGB(255,0,0),0))
DRAWRECTREL(580,200,640,800,IF(CONST(潜能)>90,RGB(255,0,0),0))
DRAWRECTREL(510,200,570,800,IF(CONST(强牛)>70,RGB(255,0,0),0))
W1:=STRCAT(('输出强龙:'),CON2STR(Q1,0))
当满足条件 到最后交易的周期=1时,在横轴0.94纵轴0.9位置书写文字
W2:=STRCAT(('输出强筹:'),CON2STR(Q2,0))
当满足条件 到最后交易的周期=1时,在横轴0.87纵轴0.9位置书写文字
W3:=STRCAT(('输出量能:'),CON2STR(Q3,1))
当满足条件 到最后交易的周期=1时,在横轴0.79纵轴0.9位置书写文字
W4:=STRCAT(('输出获利盘:'),CON2STR(Q4,1))
当满足条件 到最后交易的周期=1时,在横轴0.72纵轴0.9位置书写文字
W5:=STRCAT(('输出满量:'),CON2STR(Q5,2))
当满足条件 到最后交易的周期=1时,在横轴0.65纵轴0.9位置书写文字
W6:=STRCAT(('输出潜能:'),CON2STR(Q6,2))
当满足条件 到最后交易的周期=1时,在横轴0.58纵轴0.9位置书写文字
W7:=STRCAT(('输出强牛:'),CON2STR(Q7,2))
当满足条件 到最后交易的周期=1时,在横轴0.51纵轴0.9位置书写文字
当满足条件 到最后交易的周期=1时,在横轴0.94纵轴0.05位置书写数字
当满足条件 到最后交易的周期=1时,在横轴0.87纵轴0.05位置书写数字
当满足条件 到最后交易的周期=1时,在横轴0.79纵轴0.05位置书写数字
当满足条件 到最后交易的周期=1时,在横轴0.72纵轴0.05位置书写数字
当满足条件 到最后交易的周期=1时,在横轴0.65纵轴0.05位置书写数字
当满足条件 到最后交易的周期=1时,在横轴0.58纵轴0.05位置书写数字
当满足条件 到最后交易的周期=1时,在横轴0.51纵轴0.05位置书写数字