同花顺指标公式 同花顺大盘顶底专用指标公式
2015-1-29 11:33:41 股票入门 http://rumen.southmoney.com
{大盘顶底}
N:=34;M:=3;
STICKLINE(C》0,21.5,28,5,0),COLOR9B004E;
STICKLINE(C》0,10,21.5,5,0),COLOR003A75;
STICKLINE(C》0,5,10,5,0),COLOR606000;
STICKLINE(C》0,2,5,5,0),COLOR753A00;
STICKLINE(C》0,0,2,5,0),COLOR004000;
VAR1:=EMA(100*(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N)),M)/4,COLORFFFF00,LINETHICK2;
VAR2:=IF(VAR1》23.16,VAR1,0);
BB:=IF(VAR1《2,5,0);
DD:=IF(VAR1》21.5,25.5,28);
AA:=IF(VAR1》23.16,24.5,28);
DRAWBAND(BB,RGB(10,0,190),0,RGB(0,0,0));
DRAWBAND(28,RGB(200,0,190),DD,RGB(0,0,0));
DRAWBAND(28,RGB(220,220,70),AA,RGB(0,0,0));
顶底线:VAR1,COLORWHITE,LINETHICK2;
DRAWICON(CROSS(顶底线,2),2,1);
DRAWICON(CROSS(顶底线,5),5,2);
DRAWICON(CROSS(21.5,顶底线),21.5,38);
DRAWICON(CROSS(23.16,顶底线),23.16,39);
DRAWTEXT(CURRBARSCOUNT=38,1,‘底部区’),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,3.5,‘参与区’),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,7.5,‘加仓区’),COLOR00FFFF;
DRAWTEXT(CURRBARSCOUNT=38,16,‘安详区’),COLORWHITE;
DRAWTEXT(CURRBARSCOUNT=38,22,‘风险区’),COLOR0000FF;
DRAWTEXT(CURRBARSCOUNT=38,25.5,‘逃顶区’),COLORYELLOW;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。