input:P1(1,0,999,1),p2(2,0,999,1),p3(33,0,999,1);
VarAA:=IF(DATE<=1081212,1,0);
牛熊界线:ema(c,30),linethick1,colorred;
AAA:=ref(牛熊界线,1);
stickline(cross(牛熊界线,AAA),high,low,0,0),coloryellow,layer2;
stickline(cross(牛熊界线,AAA),open,close,3,0),coloryellow,layer2;
收价:=1000*close/indexc;
开价:=1000*open/indexo;
partline(牛熊界线,收价>=开价 OR "macd.diff">=ref("macd.diff",1),rgb(255,0,0),开价>=收价 OR "macd.diff"
D:=EMA((C*3+H+L+O)/6,5);
PTX:=LLV(D,9)*VarAA;
drawicon(PTX=ref(PTX,1) and ref(PTX,1)1 and VarAA,(O+C)/2,4),ALIGN1,layer2,PRECIS2;
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100)*VarAA;
DRAWTEXTREL(0,511,'量能饱和度:'+NUMTOSTRN(SAT,0)),LINETHICK2,Colorred;
DRAWTEXTREL(1,218,STKLABEL),LINETHICK4,Color00ffff;
DRAWTEXTREL(0,338,STKNAME),LINETHICK4,Color999999;
gj:=if(c=INDEXC,(INDEXC+INDEXh+INDEXl+INDEXO)/4,AMOUNT/(v+0.01)/100);
明日阻力:=l+(gj-l)+(c-l)*VarAA;
明日支撑:=l+(c-gj)*VarAA;
明日阻力:=l+(gj-l)+(c-l)*VarAA;
明日支撑:=l+(c-gj)*VarAA;
今日阻力:=REF(明日阻力 , 1)*VarAA;
今日支撑:=REF(明日支撑 , 1)*VarAA;
STICKLINE(DISPSTATUS=2 and c>=今日阻力,今日阻力,今日阻力,30,0),Color0000FF,LINETHICK1;
STICKLINE(DISPSTATUS=2 and c<今日阻力,今日阻力,今日阻力,30,0),Color00FF00,LINETHICK1;
STICKLINE(DISPSTATUS=2 and c>=今日支撑,今日支撑,今日支撑,30,0),ColorFF00FF,LINETHICK1;
STICKLINE(DISPSTATUS=2 and c<今日支撑,今日支撑,今日支撑,30,0),ColorFF0000,LINETHICK1;
LC:=REF(CLOSE,1);
RSI:=((SMA(MAX((CLOSE - LC),0),3,1) / SMA(ABS((CLOSE - LC)),3,1)) * 100);
DRAWICON(CROSS(84,RSI),H+0.06,8),ALIGN1,layer2,PRECIS2;
B1:=REF(CLOSE,1);B2:=REF(CLOSE,2);B3:=REF(CLOSE,3);B4:=REF(CLOSE,4);
CMAX:=MAX(MAX(MAX(CLOSE,B1),B2),B3);CMIN:=MIN(MIN(MIN(CLOSE,B1),B2),B3);
龙线:=HHV(MA((L+H+C)/3,3),1);
AA1:=AMOUNT/V;
BB1:=L
CC1:=(C-REF(C,1))/REF(C,1)*100>1.2;
DD1:=L
买进价:=((c-ref(ma(c,6),1))/6+ma(c,6))*1.004;
买进条件:=cross(c,买进价) and 买进价>ref(买进价,1);
DRAWICON(B1=CMIN AND CLOSE>=B2 and o牛熊界线 and c/o>1 or B1=CMIN AND CLOSE>=B2 and o1 and c<买进价 and 买进价1 and c<买进价 and 买进价
B3=CMIN AND B1<=B2) AND B2
STICKLINE(买进条件 and c/o>1,o,c,4,0),colorwhite,linethick2;
DRAWICON(ff1 ,H,10),PRECIS2;
DA:(((((((((CLOSE - (DMA(CLOSE,(VOL / (SUM(VOL,18)))))) / (DMA(CLOSE,(VOL / (SUM(VOL,18)))))) * 100) <= -30)
AND ((((CLOSE - (DMA(CLOSE,(VOL / (SUM(VOL,34)))))) / (DMA(CLOSE,(VOL / (SUM(VOL,34)))))) * 100) <= -19))
AND ((CLOSE / (REF(CLOSE,22))) <= 1.1)) AND (IF((((HIGH > (LOW * 1.051)) AND ((COUNT((HIGH > (LOW * 1.051)),5)) > 1))
AND ((((CLOSE / (MA(CLOSE,44))) * 100) < 78) OR (((CLOSE / (MA(CLOSE,60))) * 100) < 74))),2,0)))
AND ((((SMA((MAX((CLOSE - (REF(CLOSE,2))),0)),7,1)) / (SMA(ABS((CLOSE - (REF(CLOSE,2)))),7,1))) * 100) < 15))
AND (IF(((((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)) > (REF((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)),1)))
AND ((REF((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)),1)) < (REF((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)),2))))
AND ((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)) < 25)),1.5,0))) AND (FILTER(((((((CLOSE / (MA(CLOSE,50))) < 0.75)
AND ((CLOSE / (MA(CLOSE,70))) < 0.7)) AND ((((CLOSE - LOW) / CLOSE) > 0.02) OR (CLOSE > ((REF(CLOSE,1)) * 1.01)))) AND (VOL < ((REF(VOL,1)) * 2.8)))
AND (((COUNT((CLOSE < (OPEN * 0.936)),2)) = 2) OR ((COUNT(((HIGH / LOW) > 1.1),5)) > 3))),3)) and c/o>0.918 AND VarAA,colorCYAN,LINETHICK0;
STICKLINE(DA,o,c,7,0),colorCYAN,linethick2,ALIGN1,layer2;
DRAWTEXT(DA,(l-0.13),'DA 20T5%'),COLORCYAN;
DB:(((((((((CLOSE - (DMA(CLOSE,(VOL / (SUM(VOL,16)))))) / (DMA(CLOSE,(VOL / (SUM(VOL,16)))))) * 100) <= -16)
AND ((((CLOSE - (DMA(CLOSE,(VOL / (SUM(VOL,34)))))) / (DMA(CLOSE,(VOL / (SUM(VOL,34)))))) * 100) <= -19))
AND ((CLOSE / (REF(CLOSE,22))) <= 1.1)) AND (IF((((HIGH > (LOW * 1.051)) AND ((COUNT((HIGH > (LOW * 1.051)),5)) > 1))
AND ((((CLOSE / (MA(CLOSE,44))) * 100) < 78) OR (((CLOSE / (MA(CLOSE,60))) * 100) < 74))),2,0)))
AND ((((SMA((MAX((CLOSE - (REF(CLOSE,2))),0)),7,1)) / (SMA(ABS((CLOSE - (REF(CLOSE,2)))),7,1))) * 100) < 15))
AND (IF(((((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)) > (REF((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)),1)))
AND ((REF((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)),1)) < (REF((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)),2))))
AND ((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)) < 25)),1.5,0))) AND (FILTER(((((((CLOSE / (MA(CLOSE,50))) < 0.75)
AND ((CLOSE / (MA(CLOSE,70))) < 0.7)) AND ((((CLOSE - LOW) / CLOSE) > 0.02) OR (CLOSE > ((REF(CLOSE,1)) * 1.01)))) AND (VOL < ((REF(VOL,1)) * 2.8)))
AND (((COUNT((CLOSE < (OPEN * 0.936)),2)) = 2) OR ((COUNT(((HIGH / LOW) > 1.1),5)) > 3))),3)) and c/o>0.925 and c/o<1.033 AND VARAA,COLORRED,linethick0;
STICKLINE(DB,o,c,5,0),colorRED,linethick2,ALIGN1,layer2;
DRAWTEXT(DB,(l-1.16),'DB 20T6%'),colorRED;
DC:(((((((((CLOSE - (DMA(CLOSE,(VOL / (SUM(VOL,16)))))) / (DMA(CLOSE,(VOL / (SUM(VOL,16)))))) * 100) <= -30)
AND ((((CLOSE - (DMA(CLOSE,(VOL / (SUM(VOL,34)))))) / (DMA(CLOSE,(VOL / (SUM(VOL,34)))))) * 100) <= -19))
AND ((CLOSE / (REF(CLOSE,22))) <= 1.1)) AND (IF((((HIGH > (LOW * 1.051)) AND ((COUNT((HIGH > (LOW * 1.051)),5)) > 1))
AND ((((CLOSE / (MA(CLOSE,44))) * 100) < 78) OR (((CLOSE / (MA(CLOSE,60))) * 100) < 74))),2,0)))
AND ((((SMA((MAX((CLOSE - (REF(CLOSE,2))),0)),7,1)) / (SMA(ABS((CLOSE - (REF(CLOSE,2)))),7,1))) * 100) < 15))
AND (IF(((((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)) > (REF((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)),1)))
AND ((REF((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)),1)) < (REF((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)),2))))
AND ((SMA((((CLOSE - (LLV(LOW,8))) / ((HHV(HIGH,8)) - (LLV(LOW,8)))) * 100),2,1)) < 25)),1.5,0))) AND (FILTER(((((((CLOSE / (MA(CLOSE,50))) < 0.75)
AND ((CLOSE / (MA(CLOSE,70))) < 0.7)) AND ((((CLOSE - LOW) / CLOSE) > 0.02) OR (CLOSE > ((REF(CLOSE,1)) * 1.01)))) AND (VOL < ((REF(VOL,1)) * 2.8)))
AND (((COUNT((CLOSE < (OPEN * 0.93)),2)) = 2) OR ((COUNT(((HIGH / LOW) > 1.1),5)) > 3))),3)) AND VarAA, colorFABF0F,LINETHICK0;
STICKLINE(DC,o,c,3,0),colorFABF0F,linethick2,ALIGN1,layer2;
DRAWTEXT(DC,(LOW-2.19),'DC 20T8%'),colorFABF0F;
DD:dc and h/c<1.07 AND VarAA,coloraa11dc,LINETHICK0;
STICKLINE(DD,o,c,0.8,0),coloraa11dc,linethick2,ALIGN1,layer2;
DRAWTEXT(DD,(LOW-3.22),'DD 20T10%'),coloraa11dc;
阻1:HHV(LOW,20),COLOR00cc99 ;
阻2:MA(REF(HHV(C,30),1),2),COLORFF0099;
中底:MA(REF(LLV(C,30),1),2),Color00FF00;
短底:LLV(HIGH,30),colorCDffaa;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,0,0 ),COLOR00FF00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,8,0 ),COLOR008800;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,7,0 ),COLOR009900;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,6,0 ),COLOR00AA00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,5,0 ),COLOR00BB00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,4,0 ),COLOR00CC00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,3,0 ),COLOR00DD00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,2,0 ),COLOR00EE00;
STICKLINE(OPEN>=CLOSE ,CLOSE ,OPEN,1,0 ),COLOR00FF00;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,0,0) ,COLORFFBBFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,8,0) ,COLORFF00FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,7,0) ,COLORFF22FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,6,0) ,COLORFF44FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,5,0) ,COLORFF66FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,4,0) ,COLORFF88FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,3,0) ,COLORFF99FF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,2,0) ,COLORFFAAFF;
STICKLINE(CLOSE>OPEN,CLOSE,OPEN,1,0) ,COLORFFBBFF;
DRAWGBKLAST(CLOSE>0,STRIP(RGB(90,90,90),RGB(0,0,0),0));
DRAWTEXTREL(0,8,'评级建议:'+extrastring('评级')+'股价在牛熊界线上方,进入相对牛市行情 ' ),color999999;
DRAWTEXTABS(1,22,'所属板块:'+BKNAME+ ' 流通A股:'+NUMTOSTRN(FINANCE2(37),0)+'万'+' 净利润同比:'+NUMTOSTRN((FINANCE2(10)),2)+' 市净率:'+NUMTOSTRN((DYNAINFO(7) / FINANCE2(4)),2)),color999999;
{DRAWTEXTREL(0,963,' "VIP操盘王"由操盘密码制作,