input:N(20,1,100);
饱和度:IF((AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,N)/HHV(C,N))*100),DOTLINE,COLORred;
STICKLINE(((CLOSE > 0) AND BARSTATUS=2),0,100,19,1),colorFFFFFF;
STICKLINE(((饱和度 <= 5) AND BARSTATUS=2),1,(10+ 饱和度),18,0),colorFFFFFF;
STICKLINE((((饱和度 > 5) AND (饱和度 <= 20)) AND BARSTATUS=2),1,(8 + 饱和度),18,0),colorCCFF88;
STICKLINE((((饱和度 > 20) AND (饱和度 <= 40)) AND BARSTATUS=2),1,( 饱和度),18,0),colorFF00FF;
STICKLINE(((饱和度 > 40) AND BARSTATUS=2),1,( 饱和度),18,0),color0000FF;
IF BARSTATUS=2 and (饱和度) THEN BEGIN DRAWTEXTREL(760,800,'量能饱和度:'+NUMTOSTRN(饱和度,0)),LINETHICK5,COLORred;end;
DRAWTEXTABS(10,10,'【大盘盘口动态观察】'),Color00FFFF;
DRAWTEXTABS(10,25,'对应个股开盘:'+对应指数开盘+'点'),Color00FFFF;
DRAWTEXTABS(10,40,'盘中最高点位:'+盘中最高点位+'点'),Color00FFFF;
DRAWTEXTABS(10,55,'盘中最低点位:'+盘中最低点位+'点'),Color00FFFF;
DRAWTEXTABS(10,70,'■大盘资金增减:'+NUMTOSTRN(大盘资金增减,0)+'%'),Color00FF00;
DRAWTEXTABS(10,85,'大盘今日上涨:'+大盘上涨家数+'家'),Color00FFFF;
DRAWTEXTABS(10,100,'大盘今日平盘:'+平盘家数+'家'),Color00FFFF;
DRAWTEXTABS(10,115,'大盘今日下跌:'+NUMTOSTRN(大盘下跌家数,0)+'家'),Color00FFFF;
买入委托成交:=ORDER(1);
卖出委托成交:=ORDER(2);
当日成交总量:=DYNAINFO(8);
成交总金额:=DYNAINFO(10)/10000;
主动卖盘:=DYNAINFO(22);
主动买盘:=DYNAINFO(23);
成交笔数:=TICKCOUNT;
每笔手数:=DYNAINFO(53);
DRAWTEXTABS(150,10,'【个股盘口成交量观察】'),ColorD3A9FF;
DRAWTEXTABS(150,25,'日成交总量:'+NUMTOSTRN(当日成交总量,0)+'手'),ColorD3A9FF;
DRAWTEXTABS(150,40,'日主动买入量:'+NUMTOSTRN(主动买盘,0)+'手'),ColorD3A9FF;
DRAWTEXTABS(150,55,'日主动卖出量:'+NUMTOSTRN(主动卖盘,0)+'手'),ColorD3A9FF;
DRAWTEXTABS(150,70,'■当前成交概况:'+NUMTOSTRN(成交笔数,0)+'笔'),Color00FF00;
DRAWTEXTABS(150,85,'每笔成交:'+NUMTOSTRN(每笔手数,1)+'手'),ColorD3A9FF;
DRAWTEXTABS(150,100,'买入下单委托:'+NUMTOSTRN(买入委托成交,0)+'单'),ColorD3A9FF;
DRAWTEXTABS(150,115,'卖出下单委托:'+NUMTOSTRN(卖出委托成交,0)+'单'),ColorD3A9FF;
{换手率--成交量--委卖委买量:综合分析}
n1:=barslast(cross(c,MA(c,60)));
n2:=barslast(cross(MA(c,60),c));
强股排序:if(n1<N2,N1+1,0),PRECIS0,COLOR00FFFF,LINETHICK0;
日换手率:=DYNAINFO(37)*100;
5日换手率:sum(100*v/capital,5),ColorFFFFFF,PRECIS0,LINETHICK0;
5日均量YNAINFO(38),ColorFFFFFF,PRECIS0,LINETHICK0;
大单20万买入YNAINFO(94)*100,ColorFFFFFF,PRECIS0,LINETHICK0;
大单20万卖出:=DYNAINFO(97)*100;
50万大单买入:BIGORDER(1,3)*100,ColorFFFFFF,PRECIS0,LINETHICK0;
卖出50万委托单:=BIGORDER(2,3)*100;
建仓成本:=MAXCYC;
压力位:=DMA(AMOUNT/(100*VOL),VOL/(100*FINANCE2(37)))*1.12;
avgbpx:=DYNAINFO(87);
avgopx:=DYNAINFO(88);
tbqty:=DYNAINFO(89);
toqty:=DYNAINFO(90);
bq:=DYNAINFO(89)/capital;
oq:=DYNAINFO(90)/capital;
bm:=tbqty/((DYNAINFO(7)-avgbpx)*2/DYNAINFO(7)*100);
om:=toqty/((avgopx-DYNAINFO(7))*2/DYNAINFO(7)*100);
bd:=(DYNAINFO(7)-avgbpx)/(avgopx-avgbpx)*120;
od:=(avgopx-DYNAINFO(7))/(avgopx-avgbpx)*120;
gy:=max(bm,om);
DRAWTEXTABS(290,10,'【换手率--成交量--委卖委买量:综合分析】'),ColorFFFF00;
DRAWTEXTABS(290,25,'委卖→总量:'+str(toqty)+' 占流通盘比例:'+str(oq*100)+'%'+' 密度:'+str(INTPART(om))+'手 价宽:'+str(max(0,avgopx*2-DYNAINFO(7)*2))+'元 '+str(max(0,avgopx/DYNAINFO(7)*200-200))+'%'),ColorFFFF00,layer0;
DRAWTEXTABS(290,40,'委买→总量:'+str(tbqty)+' 占流通盘比例:'+str(bq*100)+'%'+' 密度:'+str(INTPART(bm))+'手价宽:'+str(if(avgbpx=0,0,DYNAINFO(7)*2-avgbpx*2))+'元 '+str(max(0,DYNAINFO(7)/avgbpx*200-200))+'%'),ColorFFFF00,layer0;
DRAWTEXTABS(290,55,'委卖委买比:'+str((tbqty-toqty)/(tbqty+toqty)*100)+'%→'),layer0,Color0000FF;
DRAWTEXTABS(290,70,'■个股对应大盘买卖决策点位:'+NUMTOSTRN(买卖决策,2)+'点'),Color00FF00;
DRAWTEXTABS(290,115,'日换手率:'+NUMTOSTRN(日换手率,1)+'%'),ColorFFFF00;
DRAWTEXTABS(290,85,'日成交总金额:'+NUMTOSTRN(成交总金额,0)+'万元'),ColorFFFF00;
DRAWTEXTABS(445,85,'20万大单买入:'+NUMTOSTRN(大单20万买入,0)+'%'),ColorFFFF00;
DRAWTEXTABS(550,85,'20万大单卖出:'+NUMTOSTRN(大单20万卖出,0)+'%'),ColorFFFF00;
DRAWTEXTABS(445,100,'50万大单买入:'+NUMTOSTRN(50万大单买入,0)+'%'),ColorFFFF00;
DRAWTEXTABS(550,100,'50万大单卖出:'+NUMTOSTRN(卖出50万委托单,0)+'%'),ColorFFFF00;
DRAWTEXTABS(370,115,'5日换手率:'+NUMTOSTRN(5日换手率,1)+'%'),ColorFFFF00;
DRAWTEXTABS(445,115,'5日均量:'+NUMTOSTRN(5日均量,0)+'手'),ColorFFFF00;
DRAWTEXTABS(550,115,'平均成本:'+NUMTOSTRN(建仓成本,2)+'元'),ColorFFFF00;
DRAWTEXTABS(650,55,STKLABEL+' '+STKNAME),Colorred,LINETHICK4;
DRAWTEXTABS(650,80,'■股价上穿60均线:'+NUMTOSTRN(强股排序,0)+'天'),Colorgreen,LINETHICK2;
DRAWTEXTABS(650,100,'■心理成本压力位:'+NUMTOSTRN(压力位,2)+'元'),Color00FFFF,LINETHICK2;
|