通达信心理重心战术副图指标公式源码


N:=12;{参数可以自己调整}
STICKLINE(1,0,0,10,0),COLOR0099FF;
STICKLINE(1,20,20,1.5,0),COLORYELLOW;
MID:=(3*C+L+H)/5;
N内重心价上涨:COUNT(本周期重心价>REF(本周期重心价,1),N)/N*100,COLORYELLOW;
抄底预警:IFF(N内重心价上涨<=20,N内重心价上涨,DRAWNULL),CIRCLEDOT,COLORRED;
DRAWICON(CROSS(N内重心价上涨,20),20,1);