N:=12;
STICKLINE(1,100,100,10,0),COLOR0099FF;
STICKLINE(1,0,0,10,0),COLOR0099FF;
STICKLINE(1,80,80,1.5,0),COLORYELLOW;
STICKLINE(1,20,20,1.5,0),COLORYELLOW;
STICKLINE(1,50,50,0.7,0),COLORWHITE;
MID:=(3*C+L+H)/5;
本周期重心价:MID,NODRAW,COLORRED;
N内重心价上涨:COUNT(本周期重心价>REF(本周期重心价,1),N)/N*100,COLORYELLOW;
逃顶预警:IFF(N内重心价上涨>=80,N内重心价上涨,DRAWNULL),CIRCLEDOT,COLORGREEN;
抄底预警:IFF(N内重心价上涨<=20,N内重心价上涨,DRAWNULL),CIRCLEDOT,COLORRED;
DRAWICON(CROSS(80,N内重心价上涨),100,2);
DRAWICON(CROSS(N内重心价上涨,20),20,1);