均线优化
均线+BBI+概念+涨停统计
波段线:(MA(CLOSE,3)+MA(CLOSE,6)+MA(CLOSE,12)+MA(CLOSE,24))/4,COLORWHITE,LINETHICK2;
MAA48:MA(C,48),COLORRED,LINETHICK2;
IF(MAA48 REF(MAA48,1),DRAWNULL,MAA48),COLORGREEN,LINETHICK2;
STICKLINE(C REF(C,1)*1.099,O,C,3,0),COLORYELLOW;
STICKLINE(C REF(C,1)*1.099,L,H,0.2,0),COLORYELLOW;
ZF:=C REF(C,1)*1.099;
A:=(O+C+H+L)/4-C;
回归线:=C-A,COLORGREEN;
MA5:MA(C,5),COLORYELLOW;
MA13:MA(C,13),COLORMAGENTA;
上:REF(C,1)+(REF(H,1)-REF(L,1)),NODRAW;
守:(REF(C,1)+REF(O,1))/2,NODRAW;
下:REF(C,1)-(REF(H,1)-REF(L,1))/2,NODRAW;
自由流通股:FINANCE(46)/100000000,NODRAW;
SBL:= STRCAT(STRCAT(STRCAT(DYBLOCK,HYBLOCK),GNBLOCK),ZDBLOCK);
DRAWTEXT_FIX(1,0,0,0,SBL),
涨停:=CLOSE/REF(CLOSE,1) =1.098;
ZTCS:=COUNT(涨停,BARSSINCE(涨停)+1);
DRAWNUMBER(涨停,HIGH*1.04,ZTCS),COLORYELLOW;
GZT1:=STRCAT(' 近期涨停: ',CON2STR(ZTCS,0));
GZT2:=STRCAT(GZT1,'次');
SSTS1:=STRCAT(' 上市: ',CON2STR(FINANCE(42),0));
SSTS2:=STRCAT(SSTS1,'天');
NTZZT1:=STRCAT(' 距今:',CON2STR(CONST(BARSLAST(涨停)),0));
NTZZT2:=STRCAT(NTZZT1,'天有涨停');
ZTTJ1:=STRCAT(SSTS2,GZT2);
ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);
ZTTJ:=STRCAT('涨停统计:',ZTTJ2);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0,0.07,0,ZTTJ),COLORYELLOW;