DRAWGBK(C=C,COLORRGB(260,0,0),COLORRGB(180,180,180),1);
STICKLINE(CLOSE>=OPEN,0,vol,8,0),colorred;
STICKLINE(CLOSE<OPEN,0,vol,8,0),colorgreen;
HSL:=vol/capital*100;
量能:=SUM(HSL,5);
涨幅1:=100*(CLOSE-REF(CLOSE,5))/REF(CLOSE,5);
流通市值:=capital*c;
AH:=HHV(流通市值,5);
AL:=LLV(流通市值,5);
成交冷清:STICKLINE(HSL<=2 ,vol/2 ,0,7,0 ),color236456;
成交温和:STICKLINE(HSL>2 AND HSL<3,vol/2,0,7,0 ),coloree82ee;
成交活跃:STICKLINE(HSL>3 AND HSL<5 ,vol/2 ,0,7,0 ),color4763ff;
成交带量:STICKLINE(HSL>5 AND HSL<8,vol/2,0,7,0 ),color9314ff;
成交放量:STICKLINE(HSL>8 AND HSL<15 ,vol/2 ,0,7,0 ),COLORcc3299;
成交巨量:STICKLINE(HSL>15 AND HSL<25,vol/2,0,7,0 ),COLOR82004b;
成交危险:STICKLINE(HSL>=25 ,0 ,vol/2,7,0 ),COLOR1C0309;
DRAWTEXTEX(量能>3*5 AND 涨幅1>3*5,0,0,0,'继续大涨!');
DRAWTEXTEX(量能<0.5*5 AND 涨幅1<5,0,0,0,'继续小涨!');
DRAWTEXTEX(量能<0.5*5 AND 涨幅1>-5 AND 涨幅1>0,0,0,0,'继续小跌');
DRAWTEXTEX(量能>3*5 AND 涨幅1<-3*5,0,0,0,'继续大跌');
DRAWTEXTEX(((量能>3*5 AND 涨幅1<5) OR (量能<0.5*5 AND 涨幅1>3*5) OR (量能>3*5 AND 涨幅1>-5 AND 涨幅1<0) OR (量能<0.5*5 AND 涨幅1<-3*5)),0,0,0,'注意反转!');
量减:DRAWtext(vol<=REF(vol,1)*0.8 and vol>REF(vol,1)*0.6,-10,'●'),colorgreen;
量增:DRAWtext(vol>=REF(vol,1)*1.2 and vol<REF(vol,1)*1.4,-10,'●'),colormagenta;
低量:DRAWtext(vol<=REF(vol,1)*0.6,-10,'◆'),color236456;
底部量:DRAWtext(vol<=ma(vol,12)*0.13,-10,'◆'),,color2372AA;
持续放量:DRAWtext(count(VOL>REF(VOL,1),3)=3,-10,'▲'),colorblue;
巨放量:DRAWtext(vol>=REF(vol,1)*1.4,-10,'■'),,colorred;
资金异动:STICKLINE(VOL/ma(vol,55)*100>100,0,vol/2,1,0),COLORyellow;
DRAWtext(cross(ma(v,5),ma(v,13)),vol *1.1,'★'),coloryellow;
VOL5:ma(VOL,5),COLORblue;
VOL35:ma(VOL,35),COLORGREEN;
VOL135:ma(VOL,135),COLOR3689ff,linethick2;
买入:=CROSS(VOL5,VOL135);
DRAWICON(买入,VOL*1.1,4);
买入1:=CROSS(VOL35,VOL135);
DRAWICON(买入1,VOL*1.1,6);
买入2:=CROSS(VOL5,VOL35);
DRAWICON(买入2,VOL*1.1,10);
{盘中预测}
今天成交额:=AMOUNT/10000;
昨天成交额:=REF(今天成交额,1);
交易分钟数:=IF(CURRENTTIME>93000 AND CURRENTTIME<150000 AND DYNAINFO(7)=CLOSE AND DYNAINFO(10)=AMOUNT,
IF(CURRENTTIME<113000,(TIMETOT0(CURRENTTIME)-34200)/60,
IF(CURRENTTIME>130000,(TIMETOT0(CURRENTTIME)-39600)/60,120)),240);
预测今天:=今天成交额/交易分钟数*240;
DRAWTEXTEX(c>0,1,5,100,'昨天金额:'+NUMTOSTR(昨天成交额/1000,3)+'亿'),COLOR00FFFF,LINETHICK1;
DRAWTEXTEX(c>0,1,5,300,'预计今天:'+NUMTOSTR(预测今天/1000,3)+'亿'),COLOR2F73FF,LINETHICK1;