{ 通达信心理重心战术副图指标公式源码 }
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);
标签:20,重心,STICKLINE,通达信,源码,80,100 From: https://www.cnblogs.com/zhibiao/p/18063937