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,COLORWHITE;
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,COLORWHITE;END;
{强势追踪}
起点量≤5:STICKLINE(饱和度<=5 AND BARSTATUS=2,1,饱和度+10,5,0),COLORWHITE;
低量20:STICKLINE((饱和度>5 AND 饱和度< 20) AND BARSTATUS=2,1,饱和度+8,5,0),COLOR5290FF;
温量80:STICKLINE((饱和度>5 AND 饱和度< 80) AND BARSTATUS=2,1,饱和度,5,0),COLOR5290FF;
警量97:STICKLINE((饱和度>80 AND 饱和度< 97) AND BARSTATUS=2,1,饱和度,5,0),COLORFFCC00;
放量≥97:STICKLINE(饱和度>=97 AND BARSTATUS=2,1,饱和度,8,0),COLORCYAN;
K:=(DATE < 1341230);
XD1:=INDEXO;
XD2:=INDEXH;
XD3:=INDEXL;
XD4:=INDEXC;
对应指数开盘:=INDEXO;
盘中最高点位:=INDEXH;
盘中最低点位:=INDEXL;
收盘点位:=INDEXC;
大盘资金增减:=(100 * ((INDEXV / REF(INDEXV,1)) - 1));
大盘上涨家数:=INDEXADV;
平盘家数:=DYnaINFO(68);
大盘下跌家数:=INDEXDEC;
昨收盘:=DYNAINFO(3);
今开盘:=DYNAINFO(4);
涨幅:=DYNAINFO(14)*100;
JJ:=(((XD4 + XD2) + XD3) / 3);
A:=Ema(JJ,10);
B:=REF(A,1);
买卖决策:=B;
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日均量:DYNAINFO(38),COLORFFFFFF,PRECIS0,LINETHICK0;
大单20万买入:DYNAINFO(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),COLORWHITE,LINETHICK4;
DRAWTEXTABS(650,80,'■股价上穿60均线:'+NUMTOSTRN(强股排序,0)+'天'),COLORCYAN,LINETHICK2;
DRAWTEXTABS(650,100,'■心理成本压力位:'+NUMTOSTRN(压力位,2)+'元'),COLOR00FFFF,LINETHICK2;