通达信【看中做短】系列之3 户数连续降低10次选股公式 源码附图

ZBVAR3:=IF(1,(C/REF(C,1)-1)*100>9.5,0),NODRAW;
最后涨停距今数:BARSLAST(ZBVAR3),NODRAW,COLOR00CCCC;
ZBVAR4:=(REF(C,BARSLAST(ZBVAR3))+REF(OPEN,BARSLAST(ZBVAR3)))/2;
STICKLINE(C,ZBVAR4,REF(LOW,BARSLAST(ZBVAR3)),4,0),COLOR002828;
DRAWKLINE(HIGH,OPEN,LOW,C);
STICKLINE(ZBVAR3,OPEN,C,2.6,0),COLOR0000E5;
STICKLINE(ZBVAR3,OPEN,C,2.4,0),COLOR335555;
STICKLINE(ZBVAR3,OPEN,C,1.8,0),COLOR338888;
STICKLINE(ZBVAR3,OPEN,C,1.2,0),COLOR33AAAA;
STICKLINE(ZBVAR3,OPEN,C,0.6,0),COLOR33CCCC;
STICKLINE(ZBVAR3,OPEN,C,0.1,0),COLOR33EEEE;
ZBVAR5:=REF(C,1);
ZBVAR6:=IF((ZBVAR5-C)*100/ZBVAR5>=10-0.01*100/ZBVAR5,1,0);
STICKLINE(ZBVAR6,OPEN,C,2.6,0),COLORE50000;
MA13:MA(C,13),COLORCYAN;
IF(MA13>REF(MA13,1),MA13,DRAWNULL),COLORRED;
MA21:MA(C,21),COLOR00CCCC,LINETHICK2;
ZBVAR7:=C>MA21 AND MA13>REF(MA13,1) AND ZBVAR6!=1;
ZBVAR8:=(MA(C,3)+MA(C,6)+MA(C,12)+MA(C,24))/4;
ZBVAR9:=REF(C,1);
ZBVAR10:=SMA(MAX(C-ZBVAR9,0),2,1)/SMA(ABS(C-ZBVAR9),2,1)*100;
ZBVAR11:=SMA(MAX(C-ZBVAR9,0),14,1)/SMA(ABS(C-ZBVAR9),14,1)*100;
ZBVAR12:=45;
ZBVAR13:=80;
ZBVAR14:=20;
ZBVAR15:=5;
ZBVAR16:=ZBVAR10< ZBVAR12 AND REF(ZBVAR10,1)>ZBVAR12;
ZBVAR17:=ZBVAR10< ZBVAR14 AND REF(ZBVAR10,1)>ZBVAR14;
ZBVAR18:=COUNT(ZBVAR3,13)>=1;
ZBVAR19:=SMA(LOW,4,3);
ZBVAR20:=ZBVAR16 OR ZBVAR17 AND ZBVAR18;
ZBVAR21:=REF(ZBVAR16,1) OR REF(ZBVAR17,1) AND LOW< MA(C,5) AND ZBVAR18 AND ZBVAR7 AND C>REF(LOW,BARSLAST(ZBVAR3));
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,2.4,0),COLOR550055;
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,1.8,0),COLOR880088;
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,1.2,0),COLORAA00AA;
STICKLINE(ZBVAR20 AND NOT(ZBVAR3),OPEN,C,0.6,0),COLORCC00CC;
STICKLINE(ZBVAR20,OPEN,C,0.1,0),COLOREE00EE;
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),OPEN,C,1.2,0),COLOR000088;
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),OPEN,C,0.6,0),COLOR0000AA;
STICKLINE(ZBVAR21 AND NOT(ZBVAR3),OPEN,C,0.3,0),COLOR0000CC;
STICKLINE(ZBVAR21,OPEN,C,0.1,0),COLOR0000EE;
STICKLINE(ZBVAR21,ZBVAR19*0.995,ZBVAR19,5,0),COLORGREEN;
DRAWICON(ZBVAR21,LOW*0.98,1);
ZBVAR22:=AMOUNT/VOL/100;
ZBVAR23:=REF(C,1);
STICKLINE(CURRBARSCOUNT< 21 AND ZBVAR3=1,ZBVAR22,ZBVAR22,2.5,0),COLORYELLOW;
STICKLINE(C,ZBVAR4,ZBVAR4,2,0),COLORRED;
STICKLINE(C,REF(LOW,BARSLAST(ZBVAR3)),REF(LOW,BARSLAST(ZBVAR3)),2,0),COLORCCCC00;


来函数检测结果如下:
该公式没有未来函数

解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

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

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