DRAWGBK(C 0,RGB(21,34,55),RGB(57,173,173),0,'1',0);
W:=EMA(C,1);DRAWBAND(W,RGB(33,47,58),0,RGB(33,47,58));
{均线系统}
现价:CONST(W),DOTLINE,COLORCYAN;
R:=EMA(C,5);警戒线:CONST(R),DOTLINE,COLORMAGENTA;
X:=EMA(C,1);预警:EMA(X,5),COLORRED;
持股:IF(预警 REF(预警,1),预警,DRAWNULL),COLORWHITE;
&:EMA(W,1),COLORLICYAN;AX:=EMA(
持币:IF(预警 REF(预警,1),预警,DRAWNULL),COLORCYAN;
A1X:=(AX-REF(AX,1))/REF(AX,1)*100;
DRAWTEXT_FIX(1,0.17,0.13,0,STKNAME),COLORYELLOW;
DRAWTEXT_FIX(1,0.17,0.21,0,CODE),COLOR0080FF;
STICKLINE(CROSS(A1X,0),L,L*0.995,1.2,0),COLORRED;
STICKLINE(CROSS(0,A1X),H,H*1.005,1.2,0),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.01,0.01,0,'微信:RITUALART '),COLORRED;
STICKLINE( =R,C,C,0.7,0),COLORWHITE;STICKLINE( R,C,C,0.7,0),COLORGREEN;
{条件设置}
总股本:=STRCAT(STRCAT('【总股本】 ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');
流通盘:=STRCAT(STRCAT('【流通盘】 ',CON2STR(CAPITAL/1000000,2)),'亿');
流通市值:=STRCAT(STRCAT('【流通市值】 ',CON2STR((CAPITAL/1000000)*C,2)),'亿');
DRAWTEXT_FIX(ISLASTBAR,0.01,0.99,0,总股本),COLOR00FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.11,0.99,0,流通盘),COLORFFFF00;
DRAWTEXT_FIX(ISLASTBAR,0.21,0.99,0,流通市值),COLORFF00FF;
卖一价:=STRCAT(STRCAT('【卖一】 ',CON2STR(DYNAINFO(21),2)),'元');
涨跌:=STRCAT(STRCAT('【涨 跌 额】 ',CON2STR(DYNAINFO(12),2)),'元');
买一价:=STRCAT(STRCAT('【买一】 ',CON2STR(DYNAINFO(20),2)),'元');
DRAWTEXT_FIX(ISLASTBAR,0.31,0.99,0,卖一价),COLORGREEN;
DRAWTEXT_FIX(ISLASTBAR,0.39,0.99,0,涨跌),COLORYELLOW;
DRAWTEXT_FIX(ISLASTBAR,0.49,0.99,0,买一价),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0.579,0.99,0,'【工作时间】14:45-15:00 '),COLORYELLOW;
{涨停统计}
涨停:=W/REF(W,1) =1.095;ZTCS:=COUNT(涨停,BARSSINCE(涨停)+1);
SSTS1:=STRCAT('上市',CON2STR(FINANCE(42),0));SSTS2:=STRCAT(SSTS1,'天');
NTZZT1:=STRCAT(' 距今',CON2STR(CONST(BARSLAST(涨停)),0));NTZZT2:=STRCAT(NTZZT1,'天有涨停');
GZT1:=STRCAT(' 共涨停',CON2STR(ZTCS,0));GZT2:=STRCAT(GZT1,'次');ZTTJ1:=STRCAT(SSTS2,GZT2);
ZTTJ2:=STRCAT(ZTTJ1,NTZZT2);ZTTJ:=STRCAT('【涨停统计】',ZTTJ2);
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.719,0.99,0,ZTTJ),COLORCYAN;