粥箱箱的通达信分时抓涨停改编成大智慧指标
{分时涨停}
BGTYU:=IF(DATE<=1150530,1,0);
GHYJKU:=BETWEEN((c*BGTYU)/(SUM(AMOUNT,BARSCOUNT((c*BGTYU)))/SUM(VOL*100,BARSCOUNT((c*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,MA((c*BGTYU),BARSCOUNT((c*BGTYU))),(SUM(AMOUNT,BARSCOUNT((c*BGTYU)))/SUM(VOL*100,BARSCOUNT((c*BGTYU)))));
底线:1.003,COLORRED,LINETHICK2;
高线:1.03,COLORRED,LINETHICK3;
黄色起动线:EMA((c/VBNH),20),COLORYELLOW,LINETHICK1;
绿色散户线:EMA((c/VBNH),120),COLORGREEN,LINETHICK1;
乖:黄色起动线-绿色散户线+1,Culor0000FF,LINETHICK2;
1.012,Culor00FFFF,DOTLINE;
DRAWICON(CROSS(乖,1.012),1.01,5),align1,valign0,LAYER0;
DRAWICON(CROSS(EMA((c/VBNH),60),EMA((c/VBNH),120)),EMA((c/VBNH),60)*1,1);
DRAWICON(CROSS(EMA((c/VBNH),120),EMA((c/VBNH),60)),EMA((c/VBNH),120)*1,2);
DRAWICON(CROSS(EMA((c/VBNH),20),1.02),1.02+0.005,18);
STICKLINE(CROSS(EMA((c/VBNH),20),1.02),1.02,1.025,4,0),COLORMAGENTA;
STICKLINE(EMA(C,10)>EMA(C,60) ,1.03,1.034,1.0,0),COLORRED;
STICKLINE(EMA(C,10)<EMA(C,60) ,1.03,1.025,1.0,0),COLORGREEN;
DRAWTEXT(CROSS(EMA((c/VBNH),20),1.04),1.04,\’可能涨停\’),COLORWHITE;
STICKLINE(EMA((c/VBNH),120)>1.003 ,1.03,1.039,1.0,0),COLORMAGENTA;
DRAWTEXT(CROSS(EMA((c/VBNH),120),1.0029),1.028,\’买进\’),COLORWHITE;
DRAWTEXT(CROSS(EMA((c/VBNH),120),1.0029),1.036,\’观察分时量 \’),COLORWHITE;
DRAWICON(CROSS(EMA((c/VBNH),120),1.004),1.003*1,13);
{选股预警}
BGTYU:=IF(DATE<=1150530,1,0);
GHYJKU:=BETWEEN((c*BGTYU)/(SUM(AMOUNT,BARSCOUNT((c*BGTYU)))/SUM(VOL*100,BARSCOUNT((c*BGTYU)))),1.05,0.95);
VBNH:=IF(GHYJKU=0,MA((c*BGTYU),BARSCOUNT((c*BGTYU))),(SUM(AMOUNT,BARSCOUNT((c*BGTYU)))/SUM(VOL*100,BARSCOUNT((c*BGTYU)))));
黄色起动线:=EMA((c/VBNH),20);
绿色散户线:=EMA((c/VBNH),120);
乖:=黄色起动线-绿色散户线+1;
CROSS(乖,1.012);