同花顺突破长压主图公式源码 同花顺指标公式源码(2)
2015-12-16 16:04:47 股票入门 http://rumen.southmoney.com
非ST跌停:=IF((C9-C)*100/C9>=(10-0.01*100/C9),1,0);
跌停:=非ST跌停;
STICKLINE(跌停,HIGH,LOW,0,0),COLOR66FF00;
STICKLINE(跌停,CLOSE,OPEN,3.2,0),COLOR33CC00;
STICKLINE(跌停,CLOSE,OPEN,3,0),COLOR009900;
STICKLINE(跌停,CLOSE,OPEN,1.8,0),COLOR00CC33;
STICKLINE(跌停,CLOSE,OPEN,0.5,0),COLOR00FF00;
半涨1:=IF((C-C9)*100/C9>=(5-0.01*100/C9),1,0);
半涨2:=IF((C-C9)*100/C9<(10-0.01*100/C9),1,0);
JRS:=半涨1 AND 半涨2 AND FINANCE(33)>0;
STICKLINE(JRS,OPEN,CLOSE,3,0),COLORCC0099;
STICKLINE(JRS,OPEN,CLOSE,1.86,0),COLORCC00CC;
STICKLINE(JRS,OPEN,CLOSE,0.5,0),COLORFF00FF;
STICKLINE(JRS,H,L,0,0),COLORFF66FF;
{跌幅达>5%蓝柱}
{半跌1:=IF((C9-C)*100/C9>=(5-0.01*100/C9),1,0);
半跌2:=IF((C9-C)*100/C9<(10-0.01*100/C9),1,0);
JES:=半跌1 AND 半跌2 AND FINANCE(33)>0;
STICKLINE(JES,HIGH,LOW,0,0),COLORFF9933;
STICKLINE(JES,CLOSE,OPEN,3.2,0),COLORFF9933;
STICKLINE(JES,CLOSE,OPEN,3,0),COLORFF6633;
STICKLINE(JES,CLOSE,OPEN,1.8,0),COLORFF9933;
STICKLINE(JES,CLOSE,OPEN,0.5,0),COLORFFCC33;}
{显示涨跌幅}
NUMBER:=COUNT(非ST涨停,BARSSINCE(非ST涨停)+1);
DRAWNUMBER(非ST涨停,HIGH*1.02,NUMBER),COLORYELLOW;
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.95,0.98,0,NUMBER),COLORYELLOW;
DRAWTEXT_FIX(CURRBARSCOUNT=1,0.85,0.98,0,'上市以来共涨停:'),COLORRED;
{}
MMA1:MA(CLOSE,N1),COLORWHITE;
MMA2:MA(CLOSE,N2),COLORYELLOW;
MMA3:MA(CLOSE,N3),COLORMAGENTA,LINETHICK2;
MMA4:MA(CLOSE,N4),COLORGREEN,LINETHICK2;
MMA5:MA(CLOSE,N5),COLORLIBLUE;
MMA6:MA(CLOSE,N6),COLORBLUE,LINETHICK2;
股票入门声明:资讯来源于互联网,属作者个人观点,仅供投资者参考,并不构成投资建议。投资者据此操作,风险自担。