您现在的位置:好股网 >> 股票公式 >> 通达信公式 >> 一键转帖:短线多空 (自编主图指标)

短线多空 (自编主图指标)


指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2012-11-16 08:53:00
公式简介:

MA1:MA(CLOSE,M1),COLORMAGENTA;
MA2:MA(CLOSE,M2),COLORGREEN;
MA3:MA(CLOSE,M3),COLORLIGRAY;
MA4:MA(CLOSE,M4),COLORBLUE;
MA5:MA(CLOSE,M5),COLORWHITE;
MA6:MA(CLOSE,M6),COLORRED;

多空线:(MA(CLOSE,M1)+MA(CLOSE,M2)+MA(CLOSE,M3)+MA(CLOSE,M4))/4,COLORLIMAGENTA,LINETHICK3;

DRAWTEXT(CROSS(C,MA2) AND C<MA3,L,'轻仓'),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(C,MA2) AND C>MA3,L,'加仓'),COLORWHITE,LINETHICK2;
DRAWTEXT(CROSS(MA2,C),1.02*HIGH,'减仓'),COLORGREEN,LINETHICK2;
DRAWTEXT(CROSS(C,MA3),L,'重仓'),COLORYELLOW,LINETHICK2;
DRAWTEXT(CROSS(MA3,C),1.02*HIGH,'清仓'),COLORGREEN,LINETHICK2;

DRAWTEXT_FIX(1,0.00,0,0,'所属行业:')COLOR0080FF;
DRAWTEXT_FIX(1,0.07,0,0,HYBLOCK)COLOR0080FF;
DRAWTEXT_FIX(1,0.14,0,0,'所属地区:')COLOR00FFFF;
DRAWTEXT_FIX(1,0.21,0,0,DYBLOCK)COLOR00FFFF;

DRAWTEXT_FIX(1,0.00,0.08,0,'主题投资:')COLOR0000FF;
DRAWTEXT_FIX(1,0.07,0.08,0,EXTERNSTR(0,1))COLOR0000FF;
DRAWTEXT_FIX(1,0.00,0.16,0,'主营业务:')COLORFF00FF;
DRAWTEXT_FIX(1,0.07,0.16,0,EXTERNSTR(0,2))COLORFF00FF;

涨停:=IF(REF(C,1)*1.090-C<0.01 ,1,0);
STICKLINE(涨停,OPEN,CLOSE,4,0),COLORRED;
STICKLINE(涨停,OPEN,CLOSE,1,0),COLORYELLOW;
DRAWTEXT(涨停,L-0.3,'涨停'),COLORRED;

STICKLINE(CLOSE>多空线,OPEN,CLOSE,0.1,0),COLORRED;
STICKLINE(CLOSE<多空线,OPEN,CLOSE,0.1,0),COLORBLUE;
IF(CLOSE<多空线,多空线,DRAWNULL),COLORBLUE,LINETHICK3;

C3:=REF(C,1);
跌停:=IF((C3-C)*100/C3>=(10-0.01*100/C3),1,0);
STICKLINE(跌停,OPEN,CLOSE,4,0),COLORLIBLUE;
STICKLINE(跌停,OPEN,CLOSE,1,0),COLORBLUE;
DRAWTEXT(跌停,H+0.3,'跌停'),COLORLIBLUE;

流通市值:(FINANCE(40)/100000000),NODRAW,COLORRED;
 


 



[url=http://www.goodgupiao.com/gupiaogongshi/23820.html][B]短线多空 (自编主图指标)[/B][/url]