HGW:=IF(DATE< 2442.46*500,1,1);
牛熊线:DMA(MA(CLOSE+REF(CLOSE,5)*HGW/CLOSE*0.098,90),VOL),LINETHICK1,CIRCLEDOT,COLORYELLOW;
小牛:=CROSS(C,牛熊线);
DRAWTEXT(小牛,L,'↖走强区')*HGW,COLORRED,LINETHICK4;
DRAWTEXT(ISLASTBAR,牛熊线,'牛熊线'),COLORYELLOW;
指标平台:=(3*CLOSE+LOW+OPEN+HIGH)/6;
好股网:=IF((DATETODAY(DATE))< 11699,1,1);
操盘线:(20*指标平台+19*REF(指标平台,1)+18*REF(指标平台,2)+17*REF(指标平台,3)+16*REF(指标平台,4)+15*REF(指标平台,5)+14*REF(指标平台,6)+13*REF(指标平台,7)+12*REF(指标平台,8)+11*REF(指标平台,9)+10*REF(指标平台,10)+9*REF(指标平台,11)+8*REF(指标平台,12)+7*REF(指标平台,13)+6*REF(指标平台,14)+5*REF(指标平台,15)+4*REF(指标平台,16)+3*REF(指标平台,17)+2*REF(指标平台,18)+REF(指标平台,20))*好股网/210,NODRAW;
安全线:MA(操盘线,11)*HGW*好股网,COLORGRAY,LINESTICK,LINETHICK1;
MA20:MA(C,20)*好股网,NODRAW;
趋势线:MA(C,6)*HGW COLORGREEN, LINETHICK2;
STICKLINE(趋势线>=MA20,CLOSE,OPEN,3,0)*好股网,COLOR0000FF;
STICKLINE(趋势线>=MA20,CLOSE,OPEN,0.5,0)*好股网,COLORCC66FF;
STICKLINE(MA20>趋势线,CLOSE,OPEN,3,0)*好股网,COLORFF9900;
STICKLINE(MA20>趋势线,CLOSE,OPEN,0.5,0)*好股网,COLORFFCC00;
大牛:=CROSS(趋势线,MA20)*HGW;
死牛:=CROSS(MA20,趋势线)*HGW;
DRAWTEXT(大牛,L,'↖行情开始')*HGW,COLORYELLOW,LINETHICK4;
DRAWTEXT(死牛,H,'↖行情结束')*HGW,COLORWHITE ,LINETHICK4;
STICKLINE(CROSS(趋势线,MA20)*好股网,OPEN,CLOSE,2,0),COLOR00FFFF ;
STICKLINE(CROSS(MA20,趋势线)*好股网,OPEN,CLOSE,2,0),COLOR00DD00;
VAR2:=O>MA(C,安全线)*好股网 AND C< MA(C,安全线)*HGW;
STICKLINE(CROSS(安全线,C),OPEN,CLOSE,2,0)*好股网,COLORFF0000;
AMA3:IF(趋势线/REF(趋势线,安全线)>0.997,趋势线,DRAWNULL)*HGW,COLORBLUE,LINETHICK3;
AMA4:IF(趋势线/REF(趋势线,安全线)>1.001,趋势线,DRAWNULL)*HGW,COLORRED,LINETHICK3;
ABC1:=IF(L=LLV(L,9),L,0)*好股网;
ABC2:=CONST(BARSLAST(ABC1!=0))*好股网;
ABC3:=CONST(IF(ABC2=0,H,REF(H,ABC2)))*好股网;
ABC4:=CONST(REF(BARSLAST(H>ABC3),ABC2+1)+ABC2+1)*好股网;
ABC5:=CONST(IF(ABC4=0,H,REF(H,ABC4)))*好股网;
ABC6:=CONST(REF(BARSLAST(H>ABC5),ABC4+1)+ABC4+1)*好股网;
ABC7:IF(CURRBARSCOUNT<=ABC2+10,CONST(IF(ABC6=0,H,REF(H,ABC6))),DRAWNULL)*好股网,COLORYELLOW,DOTLINE;
DRAWTEXT(ISLASTBAR,ABC7,'进场线')*HGW,COLORYELLOW;
DP:=IF(C=INDEXC,0,1)*好股网;
GJ:=AMOUNT/V/100;
明日阻力:=L+(GJ-L)+(C-L)*好股网;
明日支撑:=L+(C-GJ)*好股网;
今日阻力:REF(明日阻力 , 1)NODRAW;
今日支撑:REF(明日支撑 , 1)NODRAW;
止盈价:H*0.95,LINETHICK1,COLORRED;
DRAWICON(大牛,L,11);