BGTYU:=IF(DATE<=1590301,1,0);
GHYJKU:=BETWEEN((CLOSE*BGTYU)/(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(vol*100,BARSCOUNT((CLOSE*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,ma((CLOSE*BGTYU),BARSCOUNT((CLOSE*BGTYU))),(SUM(AMOUNT,BARSCOUNT((CLOSE*BGTYU)))/SUM(VOL*100,BARSCOUNT((CLOSE*BGTYU)))));
底线:1.003,LINETHICK2;
高线:1.03,COLORWHITE,LINETHICK2;
起动线:ema((CLOSE/VBNH),20),COLORBLUE,POINTDOT;
主力线:EMA((CLOSE/VBNH),60),COLORLIMAGENTA,LINETHICK2;
散户线:EMA((CLOSE/VBNH),120),COLORCYAN,LINETHICK2;
买进:crOSS(EMA((CLOSE/VBNH),120),1.0029),COLORWHITE,NODRAW;
超强:CROSS(EMA((CLOSE/VBNH),120),1.004),COLORRED,NODRAW;
拉升:CROSS(EMA((CLOSE/VBNH),20),1.02),COLORLIGREEN,NODRAW;
DRAWICON(CROSS(EMA((CLOSE/VBNH),60),EMA((CLOSE/VBNH),120)),EMA((CLOSE/VBNH),60)*1,1);
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),EMA((CLOSE/VBNH),60)),EMA((CLOSE/VBNH),120)*1,2);
DRAWICON(CROSS(EMA((CLOSE/VBNH),20),1.02),1.02+0.005,18);
STICKLINE(CROSS(EMA((CLOSE/VBNH),20),1.02),1.02,1.025,5,0), COLORLIMAGENTA;
STICKLINE(EMA(C,10)>EMA(C,60),1.03,1.034,2.0,0),COLORWHITE;
STICKLINE(EMA(C,10)<EMA(C,60),1.03,1.025,2.0,0),COLORCYAN;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),20),1.02),1.02,'拉升'),COLORBLUE;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),20),1.04),1.04,'可能涨停'),COLORBLUE;
STICKLINE(EMA((CLOSE/VBNH),120)>1.003 ,1.03,1.039,2.0,0),COLORLIMAGENTA;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.0029),1.028,'买进'),COLORWHITE;
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),1.0029),1.0326*1,9);
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.0029),1.036,'观察分时量'),COLORBLUE;
DRAWTEXT(CROSS(EMA((CLOSE/VBNH),120),1.004),1.005,'超强'),COLORBLUE;
DRAWICON(CROSS(EMA((CLOSE/VBNH),120),1.004),1.003*1,9);