通达信公式源码 通达信改进压力线主图指标公式
2015-4-16 10:04:01 股票入门 http://rumen.southmoney.com
{买好股公式网改进的压力线主图}
MA1:MA(CLOSE,30),COLORMAGENTA,LINETHICK2;
MA2:MA(CLOSE,60),LINETHICK2;
{MA120:MA(CLOSE,120),LINETHICK1,COLORGREEN;}
MA4:MA(CLOSE,180),COLORWHITE;
MA3:MA(CLOSE,90),COLORCYAN;
HIGHN:=5;
AA:=REF(H,HIGHN)=HHV(H,2*HIGHN+1);
QY:=BACKSET(AA,HIGHN+1);
CC:=FILTER(QY,HIGHN) AND H=HHV(H,HIGHN+1);
DDD:=BARSLAST(CC);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
GDCS1:=CONST(DINGBUTS);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
GDCS2:=CONST(DINGBUTS1);
高点压力:DRAWLINE(CURRBARSCOUNT=GDCS2,H,CURRBARSCOUNT=GDCS1,H,1),COLORRED,LINETHICK2;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。