N:=叠加线数;{叠加线数(4,14)}
时长:=if(HOUR>=10 AND HOUR<15 ,1,0);{10点至 15点}
DRAWTEXTABS(0,0,'板块:'+BKNAME),Colorcyan,linethick1;
均线:=IF(BETWEEN(C/(SUM(AMOUNT,0)/SUM(VOL*100,0)),1.05,0.95)=0,MA(C,0),(SUM(AMOUNT,0)/SUM(VOL*100,0)));
均线H:(均线*1.007 ),COLORFF6600,LINETHICK0,LAYER0;
均线L:(均线/1.005 ),COLOR00FF00,LINETHICK0;
均线横盘:=C<均线H and C>均线L;
量比:=sum(vol,0)*240/dynainfo(38)/barscount(c);
量比5分钟:=sum(量比,5);
量比10:=sum(量比,10);
上个5分钟量比:=量比10-量比5分钟;
放量:=sum(VOL,6)>REF(ma(VOL,30),1)*10;
CC:CLOSE,COLORWHITE,LINETHICK2;
partline(CC,CC>=ref(CC,1),rgb(255,151,255),CC<ref(CC,1),rgb(0,255,255)),linethick2,LAYER0;
横盘:=((HHV(CLOSE,BARSCOUNT(CLOSE))-LLV(CLOSE,BARSCOUNT(CLOSE)))/CLOSE)<1;
横涨:量比5分钟>上个5分钟量比 and 横盘 and 时长 and 放量 and (CC>均线H) and DYNAINFO(22)<DYNAINFO(23),LINETHICK0;
横跌:=横盘 and 时长 and 放量 and CROSS(均线L,CC) ;
DRAWTEXT(CROSS(横涨,0),均线,'▲'),COLORRED,LAYER0;
突破:FILTER(横涨,100),LINETHICK0;
下破:=FILTER(横跌,50);
DRAWTEXT(突破,均线H,'★突破'),COLORFF00FF,LAYER0;
DRAWTEXT(下破,均线L,'★下破'),COLOR00FF00,LAYER0;
VERTLINE(突破,3),COLORFF00FF,LINETHICK3;
VERTLINE(下破,3),COLOR00FF00,LINETHICK3;
RC:=DYNAINFO( 3);
S2:=SMA(C,2,1);
S6:=SMA(C,3,1);
DK:=3*(S2-S6);
STICKLINE(DK>0,RC,(RC+DK),0,1),COLORRED;
STICKLINE(DK<0,RC,(RC+DK),0,1),COLORgreen;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLORYELLOW,LINETHICK0;
DRAWTEXTABS(0,10,'阻力:'+NUMTOSTRN(阻力,2)),LINETHICK2,ColorYELLOW;
支撑:L1+P1*0.5/8,COLORff00ff,LINETHICK0;
DRAWTEXTABS(0,25,'支撑:'+NUMTOSTRN(支撑,2)),LINETHICK2,Colorff00ff;
DYNAINFO(5),DOTLINE,colorff00ff;
DYNAINFO(6),DOTLINE,color00ff00;
{叠加大盘线}
TC:=STRCMP(STRLEFT(MARKETLABEL,2),'SZ');
DPSH:="SH000001$CLOSE"/HHV(STKINDI('SH000001','分超引用.昨收#DAY'),0);
DPSZ:="SZ399001$CLOSE"/HHV(STKINDI('SZ399001','分超引用.昨收#DAY'),0);
DPC:=IF(INBLOCK('A股板块'),DYNAINFO(3)*IF(TC=0,DPSZ,DPSH),C);
POLYLINE(C>0,DPC),COLOR3399ff,LINETHICK1,LAYER0;
DRAWTEXT( BARSTATUS=2,DPC ,'大盘' ),Color3399ff;
{叠加板块线}
BK1002:="991002$CLOSE"/HHV(STKINDI('991002','分超引用.昨收#DAY'),0);
BK1003:="991003$CLOSE"/HHV(STKINDI('991003','分超引用.昨收#DAY'),0);
BK1004:="991004$CLOSE"/HHV(STKINDI('991004','分超引用.昨收#DAY'),0);
BK1006:="991006$CLOSE"/HHV(STKINDI('991006','分超引用.昨收#DAY'),0);
BK1007:="991007$CLOSE"/HHV(STKINDI('991007','分超引用.昨收#DAY'),0);
BK1008:="991008$CLOSE"/HHV(STKINDI('991008','分超引用.昨收#DAY'),0);
BK1009:="991009$CLOSE"/HHV(STKINDI('991009','分超引用.昨收#DAY'),0);
BK1010:="991010$CLOSE"/HHV(STKINDI('991010','分超引用.昨收#DAY'),0);
BK1011:="991011$CLOSE"/HHV(STKINDI('991011','分超引用.昨收#DAY'),0);
BK1014:="991014$CLOSE"/HHV(STKINDI('991014','分超引用.昨收#DAY'),0);
BK1016:="991016$CLOSE"/HHV(STKINDI('991016','分超引用.昨收#DAY'),0);
BK1017:="991017$CLOSE"/HHV(STKINDI('991017','分超引用.昨收#DAY'),0);
BK1018:="991018$CLOSE"/HHV(STKINDI('991018','分超引用.昨收#DAY'),0);
BK1019:="991019$CLOSE"/HHV(STKINDI('991019','分超引用.昨收#DAY'),0);
BK1020:="991020$CLOSE"/HHV(STKINDI('991020','分超引用.昨收#DAY'),0);
BK1021:="991021$CLOSE"/HHV(STKINDI('991021','分超引用.昨收#DAY'),0);
BK1023:="991023$CLOSE"/HHV(STKINDI('991023','分超引用.昨收#DAY'),0);
BK1024:="991024$CLOSE"/HHV(STKINDI('991024','分超引用.昨收#DAY'),0);
BK1025:="991025$CLOSE"/HHV(STKINDI('991025','分超引用.昨收#DAY'),0);
BK1026:="991026$CLOSE"/HHV(STKINDI('991026','分超引用.昨收#DAY'),0);
BK1027:="991027$CLOSE"/HHV(STKINDI('991027','分超引用.昨收#DAY'),0);
BK1028:="991028$CLOSE"/HHV(STKINDI('991028','分超引用.昨收#DAY'),0);
BK1031:="991031$CLOSE"/HHV(STKINDI('991031','分超引用.昨收#DAY'),0);
BK1032:="991032$CLOSE"/HHV(STKINDI('991032','分超引用.昨收#DAY'),0);
BK1033:="991033$CLOSE"/HHV(STKINDI('991033','分超引用.昨收#DAY'),0);
BK1034:="991034$CLOSE"/HHV(STKINDI('991034','分超引用.昨收#DAY'),0);
BK1035:="991035$CLOSE"/HHV(STKINDI('991035','分超引用.昨收#DAY'),0);
BK1036:="991036$CLOSE"/HHV(STKINDI('991036','分超引用.昨收#DAY'),0);
BK1037:="991037$CLOSE"/HHV(STKINDI('991037','分超引用.昨收#DAY'),0);
BK1135:="991135$CLOSE"/HHV(STKINDI('991135','分超引用.昨收#DAY'),0);
BK1136:="991136$CLOSE"/HHV(STKINDI('991136','分超引用.昨收#DAY'),0);
BK1255:="991255$CLOSE"/HHV(STKINDI('991255','分超引用.昨收#DAY'),0);
BKCC:=IF(INBLOCK('工程建筑'),DYNAINFO(3)*BK1002,IF(INBLOCK('电力'),DYNAINFO(3)*BK1003,IF(INBLOCK('计算机'),DYNAINFO(3)*BK1004,
IF(INBLOCK('电子信息'),DYNAINFO(3)*BK1006,IF(INBLOCK('房地产'),DYNAINFO(3)*BK1007,IF(INBLOCK('纺织服装'),DYNAINFO(3)*BK1008,
IF(INBLOCK('钢铁'),DYNAINFO(3)*BK1009,IF(INBLOCK('供水供气'),DYNAINFO(3)*BK1010,IF(INBLOCK('化工化纤'),DYNAINFO(3)*BK1011,
IF(INBLOCK('电器'),DYNAINFO(3)*BK1014,IF(INBLOCK('交通设施'),DYNAINFO(3)*BK1016,IF(INBLOCK('银hang类'),DYNAINFO(3)*BK1017,
IF(INBLOCK('旅游酒店'),DYNAINFO(3)*BK1018,IF(INBLOCK('煤炭石油'),DYNAINFO(3)*BK1019,IF(INBLOCK('酿酒食品'),DYNAINFO(3)*BK1020,
IF(INBLOCK('农林牧渔'),DYNAINFO(3)*BK1021,IF(INBLOCK('商业连锁'),DYNAINFO(3)*BK1023,IF(INBLOCK('建材'),DYNAINFO(3)*BK1024,
IF(INBLOCK('其他行业'),DYNAINFO(3)*BK1025,IF(INBLOCK('汽车类'),DYNAINFO(3)*BK1026,IF(INBLOCK('机械'),DYNAINFO(3)*BK1027,
IF(INBLOCK('医药'),DYNAINFO(3)*BK1028,IF(INBLOCK('外贸'),DYNAINFO(3)*BK1031,IF(INBLOCK('教育传媒'),DYNAINFO(3)*BK1032,
IF(INBLOCK('仪电仪表'),DYNAINFO(3)*BK1033,IF(INBLOCK('有色金属'),DYNAINFO(3)*BK1034,IF(INBLOCK('造纸印刷'),DYNAINFO(3)*BK1035,
IF(INBLOCK('券商'),DYNAINFO(3)*BK1036,IF(INBLOCK('电力设备'),DYNAINFO(3)*BK1037,IF(INBLOCK('通信'),DYNAINFO(3)*BK1135,
IF(INBLOCK('运输物流'),DYNAINFO(3)*BK1136,IF(INBLOCK('保险'),DYNAINFO(3)*BK1255,C))))))))))))))))))))))))))))))));
BKC:=IF(N>1,BKCC,C);
POLYLINE(C>0,BKC),COLOR808000,LINETHICK1;
DRAWTEXT( BARSTATUS=2,BKC ,'板块' ),Color808000;
{叠加地域线}
DY3091:="993091$CLOSE"/HHV(STKINDI('993091','分超引用.昨收#DAY'),0);
DY3450:="993450$CLOSE"/HHV(STKINDI('993450','分超引用.昨收#DAY'),0);
DY3596:="993596$CLOSE"/HHV(STKINDI('993596','分超引用.昨收#DAY'),0);
DY3598:="993598$CLOSE"/HHV(STKINDI('993598','分超引用.昨收#DAY'),0);
DY3599:="993599$CLOSE"/HHV(STKINDI('993599','分超引用.昨收#DAY'),0);
DY3602:="993602$CLOSE"/HHV(STKINDI('993602','分超引用.昨收#DAY'),0);
DY3603:="993603$CLOSE"/HHV(STKINDI('993603','分超引用.昨收#DAY'),0);
DY3604:="993604$CLOSE"/HHV(STKINDI('993604','分超引用.昨收#DAY'),0);
DY3606:="993606$CLOSE"/HHV(STKINDI('993606','分超引用.昨收#DAY'),0);
DY3607:="993607$CLOSE"/HHV(STKINDI('993607','分超引用.昨收#DAY'),0);
DY3608:="993608$CLOSE"/HHV(STKINDI('993608','分超引用.昨收#DAY'),0);
DY3609:="993609$CLOSE"/HHV(STKINDI('993609','分超引用.昨收#DAY'),0);
DY3610:="993610$CLOSE"/HHV(STKINDI('993610','分超引用.昨收#DAY'),0) |