程序化指标公式
问答中心

珍藏版万能操盘主图公式

通达信指标 2020-05-17阅读量:4324

总股本:=STRCAT(STRCAT('总股本: ',CON2STR(TOTALCAPITAL/1000000,2)),'亿');

流通盘:=STRCAT(STRCAT(' 流通盘: ',CON2STR(CAPITAL/1000000,2)),'亿');
市值:=STRCAT(STRCAT(' 流通市值: ',CON2STR((CAPITAL/1000000)*C,2)),'亿');
每股公积金:=STRCAT(' 每股公积金:',CON2STR(FINANCE(18),2));
每股未分利润:=STRCAT(' 每股未分利润:',CON2STR(FINANCE(32),2));
每股净资产:=STRCAT(' 每股净资产:',CON2STR(FINANCE(34),2));
净利润同比%:FINANCE(43),NODRAW;
净利润:FINANCE(30)/10000,NODRAW;
扣非净利润:FINANCE(54)/10000,NODRAW;
显示内容:=STRCAT(STRCAT(STRCAT(STRCAT(STRCAT(总股本,流通盘),市值),每股公积金),每股未分利润),每股净资产);
DRAWTEXT_FIX(ISLASTBAR,0,0.028.0,0,显示内容),COLOR00C0C0;
DRAWTEXT_FIX(1,0.00,0.10,0,'莸利比例:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.05,0.10,0,CONST(WINNER(C )*100)),COLOR0080FF;
DRAWTEXT_FIX(1,0.09,0.10,0,'动态PE:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.13,0.10,0,CONST(DYNAINFO(39))),COLOR0080FF;
DRAWTEXT_FIX(1,0.17,0.10,0,'市值:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.20,0.10,0,FINANCE(40)/100000000),COLOR0080FF;
DRAWTEXT_FIX (1,0.24,0.10,0,'公积金(股):'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.30,0.10,0,FINANCE(18)),COLOR0080FF;
DRAWTEXT_FIX (1,0.33,0.10,0,'收益:'),COLORYELLOW;
DRAWNUMBER_FIX(1,0.36,0.10,0,FINANCE(33)),COLOR0080FF;
AAA1:=STRCAT('沪深总上涨家数:',CON2STR(DYNAINFO(60),0));
AAA2:=STRCAT('沪深总下跌家数:',CON2STR(DYNAINFO(61),0));
DRAWTEXT_FIX(ISLASTBAR,0,0.28,0,'☆微信公众号:(程序化指标) ☆'),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0,0.17,0,AAA1),COLORRED;
DRAWTEXT_FIX(ISLASTBAR,0,0.22,0,AAA2),COLORGREEN;
所属板块:=STRCAT('【板块】',STRCAT(STRCAT(STRCAT(STRCAT('行业>',HYBLOCK),STRCAT('地域>',DYBLOCK)),STRCAT('概念>',GNBLOCK)),STRCAT('风格>',FGBLOCK)));
A:=AMOUNT/V/100;
VARA:=EMA((((A-EMA(A,13))/EMA(A,13))*(0-100)),5);
操盘线:=EMA(((VARA/10)+EMA(A,10)),3);
行情线:=EMA(A,3);
重心:=(C+0.618*REF(C,1)+0.382*REF(C,2)+0.236*REF(C,3)+0.146*REF(C,4))/2.382;
趋势线:EMA(((SLOPE(C,22)*20)+C),55),COLORYELLOW,LINETHICK2;
红升:IF(重心>=趋势线,趋势线,DRAWNULL),COLORRED,LINETHICK2;
蓝降:IF(重心<趋势线,趋势线,DRAWNULL),COLORBLUE,LINETHICK2;
STICKLINE(行情线<操盘线,H,L,0,1),COLORGREEN;
STICKLINE(行情线<操盘线,C,O,2,1),COLORGREEN;
STICKLINE(行情线>=操盘线,H,L,0,1),COLORRED;
STICKLINE(行情线>=操盘线,C,O,2,1),COLORRED;
压力:MA(REF(HHV(C,30),1),2),COLORWHITE;
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
RSV2:=(CLOSE-LLV(LOW,55))/(HHV(HIGH,55)-LLV(LOW,55))*100;
K2:=SMA(RSV2,3,1);
D2:=SMA(K2,3,1);
J2:=3*K2-2*D2;
支撑位:IF(CROSS(J,J2),L,REF(L,BARSLAST(CROSS(J,J2)))),COLORCC33CC,LINETHICK1;
X1:=(C+L+H)/3;
BB13:=ATAN(EMA(X1,13)-REF(EMA(X1,13),1))*3.1416*10;
EMA8:=EMA(C,8);
DRAWTEXT(FILTER(BB13>1 AND EMA(X1,13)>REF(EMA(X1,8),1),10),EMA8,'∠45升'),COLORWHITE;
熊市区:=MA((2*L+C)/3,20),COLORCYAN,NODRAW;
牛市区:=MA((H+2*C)/3,20),COLORRED,NODRAW;
买入:=CROSS(C,牛市区);
卖出:=CROSS(熊市区,C);
STICKLINE(C<熊市区,牛市区,熊市区,2,0),COLORBLUE;
STICKLINE(C>牛市区,熊市区,牛市区,2,0),COLOR0090FF;
C2:=REF(C,1);
涨停:=IF((C-C2)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(涨停,OPEN,CLOSE,2,0),COLORYELLOW;
STICKLINE(涨停,H,L,0,0),COLORRED;
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,OPEN,CLOSE,2,0),COLORBLUE;
STICKLINE(跌停,H,L,0,1),COLORBLUE;

版权声明

所有指标均为免费分享。

文章内容来自互联网,本网站无任何收费项目也不推荐股票
广告投放请自行识别风险。

分享:

扫一扫在手机阅读、分享本文

程序化指标公众号

左边广告一

关闭

右边广告二

关闭