MA6:=MA(CLOSE,6);
MA18:=MA(CLOSE,18);
空:(3)*(MA18) - (2)*(MA6),LINETHICK3,COLORCYAN;
多:(3)*(MA6) - (2)*(MA18),LINETHICK3,COLOR0000C0;
超买:MA(C,10)*IF(CAPITAL=0,1.04,1.1),DOTLINE,COLORGREEN,LINETHICK1;
超卖:MA(C,10)*IF(CAPITAL=0,0.95,0.9),DOTLINE,COLORYELLOW,LINETHICK1;
【生命线】:sum(vol*(o+c)/2,88)/sum(vol,88),COLOR0000FF,linethick1;
【持股线】:hhv(ma(C,18),2),COLORYELLOW;
【分离线】:if(ma(C,18)<【持股线】,(ma(C,18)-(【持股线】-ma(C,18))),【持股线】),COLORCYAN,linethick1;
MA18:ma(C,18),linethick1,COLORWHITE;
角度:ATAN((MA18/REF(MA18,1)-1)*100)*180/3.14159,linethick0;
一:=COST(10)/COST(1);
二:=COST(20)/COST(10);
三:=COST(30)/COST(20);
四:=COST(40)/COST(30);
五:=COST(50)/COST(40);
密:=一<二 AND 一<三 AND 一<四 AND 一<五 ;
密二:=二<三 AND 二<四 AND 二<五 ;
密三:=三<二 AND 三<四 AND 三<五 ;
密四:=四<二 AND 四<三 AND 四<五 ;
密五:=五<二 AND 五<三 AND 五<四 ;
STICKLINE(c>=o,c,o,9,1),colorred;
STICKLINE(c>=o,l,o,0.1,0),colorred;
STICKLINE(c>=o,c,h,0.1,0),colorred;
STICKLINE(c<o,c,o,9,0),colorffff00;
STICKLINE(c<o,h,l,0.1,0),colorffff00;
x11:POLYLINE(密二>0,COST(11)),COLOR008800;
x21:POLYLINE(密二>0,COST(12)),COLOR008800;
x31:POLYLINE(密二>0,COST(13)),COLOR008800;
x41:POLYLINE(密二>0,COST(14)),COLOR008800;
x51:POLYLINE(密二>0,COST(15)),COLOR008800;
x61:POLYLINE(密二>0,COST(16)),COLOR008800;
x71:POLYLINE(密二>0,COST(17)),COLOR008800;
x81:POLYLINE(密二>0,COST(18)),COLOR008800;
x91:POLYLINE(密二>0,COST(19)),COLOR008800;
x12:POLYLINE(密三>0,COST(21)),COLORff9933;
x22:POLYLINE(密三>0,COST(22)),COLORff9933;
x32:POLYLINE(密三>0,COST(23)),COLORff9933;
x42:POLYLINE(密三>0,COST(24)),COLORff9933;
x52:POLYLINE(密三>0,COST(25)),COLORff9933;
x62:POLYLINE(密三>0,COST(26)),COLORff9933;
x72:POLYLINE(密三>0,COST(27)),COLORff9933;
x82:POLYLINE(密三>0,COST(28)),COLORff9933;
x92:POLYLINE(密三>0,COST(29)),COLORff9933;
x13:POLYLINE(密四>0,COST(31)),COLOR008800;
x23:POLYLINE(密四>0,COST(32)),COLOR008800;
x33:POLYLINE(密四>0,COST(33)),COLOR008800;
x43:POLYLINE(密四>0,COST(34)),COLOR008800;
x53:POLYLINE(密四>0,COST(35)),COLOR008800;
x63:POLYLINE(密四>0,COST(36)),COLOR008800;
x73:POLYLINE(密四>0,COST(37)),COLOR008800;
x83:POLYLINE(密四>0,COST(38)),COLOR008800;
x93:POLYLINE(密四>0,COST(39)),COLOR008800;
x14:POLYLINE(密五>0,COST(41)),COLOR33cc00;
x24:POLYLINE(密五>0,COST(42)),COLOR33cc00;
x34:POLYLINE(密五>0,COST(43)),COLOR33cc00;
x44:POLYLINE(密五>0,COST(44)),COLOR33cc00;
x54:POLYLINE(密五>0,COST(45)),COLOR33cc00;
x64:POLYLINE(密五>0,COST(46)),COLOR33cc00;
x74:POLYLINE(密五>0,COST(47)),COLOR33cc00;
x84:POLYLINE(密五>0,COST(48)),COLOR33cc00;
x94:POLYLINE(密五>0,COST(49)),COLOR33cc00;
stickline(密>0 AND c<COST(50),COST(10),COST(2),2,1),COLORGREEN;
stickline(密二>0 AND c<COST(50),COST(10),COST(20),0.8,1),COLORYELLOW;
stickline(密二>0 AND c<COST(50),COST(20)/1.0017,COST(20),4,1),COLORYELLOW;
stickline(密三>0 AND c<COST(50),COST(20),COST(30),1,1),COLORYELLOW;
stickline(密三>0 AND c<COST(50),COST(30)/1.0017,COST(30),4,1),COLORYELLOW;
stickline(密四>0 AND c<COST(50),COST(30),COST(40),0.8,1),COLORYELLOW;
stickline(密四>0 AND c<COST(50),COST(40)/1.0017,COST(40),4,1),COLORYELLOW;
stickline(密五>0 AND c<COST(50),COST(40),COST(50),1,1),COLORYELLOW;
stickline(密五>0 AND c<COST(50),COST(50)/1.0017,COST(50),4,1),COLORYELLOW;
aa:=if(c>=ref(c,3),1,0);
bb:=if(c>=ref(c,5),1,0);
cc:=if(c>=ref(c,7),1,0);
dd:=if(c>=ref(c,8),1,0);
ee:=if(c>=ref(c,13),1,0);
ff:=if(c>=ref(c,21),1,0);
gz2:=aa+bb+cc+dd+ee+ff;
kk:=0;
for i=1 TO 4 DO
kk:=kk+REF(gz2,i);
kkk:=kk/4;