自用主图源码 主图 通达信 贴图量能饱和度

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);
销shou毛利率:=((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(销shou毛利率,1)),' ')),COLORDD66DD;



未来函数检测结果如下:
该公式包含未来函数:BACKSET
该公式包含未来函数:CAPITAL
该公式包含未来函数:DYNAINFO
该公式包含未来函数:FINANCE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  指标公式网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 浙ICP备2024071487号-2 指标公式网别名指标网仅为互联网文章,所有指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。指标公式网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图