通达信【维度分析】副图指标 盘中数值会变适合复盘使用 源码

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
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图