自用主图指标 源码 通达信 贴图
指标功能:[B]国产软件[/B]
指标类型:简体中文
所需积分:0
推荐星级:
授权方式:共享版
公式大小:0 Bytes
更新时间:2019-10-28 08:25:00
公式简介:
DRAWTEXT_FIX(ISLASTBAR,0.03,0,0,CODE),COLORFFFFFF;
流通盘:CAPITAL/1000000,COLOR00FFFF,NODRAW;
MA5:MA(CLOSE,5),COLORFFFFFF;
MA10:MA(CLOSE,10),COLOR00FFFF,LINETHICK1;
ZK1:XMA(XMA(H,21),21)-(XMA(XMA(L,21),21)-XMA(XMA(H,21),21)),DOTLINE,COLORFF9933;
ZD1:XMA(XMA(L,21),21)-(XMA(XMA(H,21),21)-XMA(XMA(L,21),21)),DOTLINE,COLORFF9933;
V15:=REF(C,1);
涨停:=IF((C-V15)*100/V15>=(10-0.01*100/V15),1,0);
STICKLINE(涨停,OPEN,CLOSE,3,0),COLOR0000CC;
跌停:=IF((V15-C)*100/V15>=(10-0.01*100/V15),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLOR007700;
势线上轨:=5;
势线下轨:=5;
AA:=REF(H,势线上轨)=HHV(H,2*势线上轨+1);
AA1:=REF(L,势线下轨)=LLV(L,2*势线下轨+1);
QY:=BACKSET(AA,势线上轨+1);
QY1:=BACKSET(AA1,势线下轨+1);
CC:=FILTER(QY,势线上轨) AND H=HHV(H,势线上轨+1);
CC1:=FILTER(QY1,势线下轨) AND L=LLV(L,势线下轨+1);
DDD:=BARSLAST(CC);
DD1:=BARSLAST(CC1);
GDTS:=IF(CC,CURRBARSCOUNT,0);
DDTS:=IF(CC1,CURRBARSCOUNT,0);
DINGBUTS:=IF(DDD,REF(GDTS,DDD),GDTS);
DDTS1:=IF(DD1,REF(DDTS,DD1),DDTS);
GDCS1:=CONST(DINGBUTS);
DDCS1:=CONST(DDTS1);
DINGBUTS1:=REF(DINGBUTS,DDD+1);
H11:=CONST(REF(HIGH,DINGBUTS1-1)),COLOR888888;
H22:=CONST(REF(HIGH,GDCS1-1)),COLOR888888;
GDCS23:=H11;
GDCS13:=H22;
DDTS2:=REF(DDTS1,DD1+1);
L1:=CONST(REF(L,DDTS2-1));
L2:=CONST(REF(L,DDCS1-1));
压力:BACKSET(ISLASTBAR,GDCS1),COLORFF7766,NODRAW;
支撑:BACKSET(ISLASTBAR,DDCS1),COLOR6699FF,NODRAW;
STICKLINE(压力,GDCS13,GDCS13,3.0,1),COLORFF7766;
STICKLINE(支撑,L2,L2,3.0,1),COLOR6699FF;
MA05:=MA(C,5);
五日乖离率:=(C-MA05)/MA05*100;
五日乖离:=ISLASTBAR=1 AND 五日乖离率>6;
DRAWTEXT_FIX(五日乖离=1 ,0.83,0.20,0,'五日乖离>6 '),COLORFFFFAA;
换手:=VOL/CAPITAL*100,NODRAW,COLORFFFFFF;
DRAWTEXT_FIX((ISLASTBAR AND 换手>20),0.68,0.21,0,'量能已饱和'),COLORFFFFFF;
SAT:=(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20));
量能饱和度:=(IF(SAT>1,1,SAT)*100),COLOR006666;
DRAWTEXT_FIX(ISLASTBAR AND (量能饱和度>95),0.68,0.21,0,'量能已饱和'),COLORFFFFFF;
品种类型:=FINANCE(3);
DRAWTEXT_FIX(品种类型=1,0.01.0,0.07,0,'沪深A股'),COLORFFFFFF;
DRAWTEXT_FIX(品种类型=2,0.01.0,0.07,0,' 中小板'),COLORFFFFFF;
DRAWTEXT_FIX(品种类型=3,0.01.0,0.07,0,' 创业板'),COLORFFFFFF;
DRAWTEXT_FIX(1,0.09,0.07,0,HYBLOCK),COLORFF99FF;
DRAWTEXT_FIX(ISLASTBAR,0.19,0.07,0,GNBLOCK),COLOR66FFFF;
DRAWTEXT_FIX(ISLASTBAR,0.0,0.14,0,FGBLOCK),COLORFF33DD;
滚动市盈率TTM:=DYNAINFO(40);
总收入同比:=FINANCE(44);
主营利润率:=(FINANCE(23)/FINANCE(20)*100);
净利同比率:=FINANCE(43);
净利润比率:=(FINANCE(30)/FINANCE(20)*100);
销售毛利率:=((FINANCE(20)-FINANCE(21))/FINANCE(20)*100);
DRAWTEXT_FIX(1,0,0.57,0,STRCAT(STRCAT('滚动市盈率TTM ',CON2STR(滚动市盈率TTM,1)),' ')),COLOR00DDDD;
DRAWTEXT_FIX(1,0,0.64,0,STRCAT(STRCAT('主营收入同比 ',CON2STR(总收入同比,2)),' ')),COLORDD66DD;
DRAWTEXT_FIX(1,0,0.71,0,STRCAT(STRCAT('主营利润率 ',CON2STR(主营利润率,1)),' ')),COLOR00DDDD;
DRAWTEXT_FIX(1,0,0.78,0,STRCAT(STRCAT('净利同比 ',CON2STR(净利同比率,2)),' ')),COLORFFFFFF;
DRAWTEXT_FIX(1,0,0.85,0,STRCAT(STRCAT('净利润率 ',CON2STR(净利润比率,1)),' ')),COLOR00DDDD;
DRAWTEXT_FIX(1,0,0.92,0,STRCAT(STRCAT('毛利率 ',CON2STR(销售毛利率,1)),' ')),COLORDD66DD;
[url=http://www.goodgupiao.com/gupiaogongshi/56145.html][B]自用主图指标 源码 通达信 贴图[/B][/url]