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;
ZYG1:=IF(L=LLV(L,9),L,0)*操盘;
ZYG2:=CONST(BARSLAST(ZYG1!=0))*操盘;
ZYG3:=CONST(IF(ZYG2=0,H,REF(H,ZYG2)))*操盘;
ZYG4:=CONST(REF(BARSLAST(H>ZYG3),ZYG2+1)+ZYG2+1)*操盘;
ZYG5:=CONST(IF(ZYG4=0,H,REF(H,ZYG4)))*操盘;
ZYG6:=CONST(REF(BARSLAST(H>ZYG5),ZYG4+1)+ZYG4+1)*操盘;
ZYG7:IF(CURRBARSCOUNT<=ZYG2+10,CONST(IF(ZYG6=0,H,REF(H,ZYG6))),DRAWNULL)*操盘,COLORYELLOW,DOTLINE;
DRAWTEXT(ISLASTBAR,ZYG7,'进场线')*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);