基本面主图 通达信主图指标 源码 贴图
{基本面主图}MID : MA(CLOSE,26);
UPPER: MID + 2*STD(CLOSE,26);
LOWER: MID - 2*STD(CLOSE,26);
{-------------------------------------------------立体K线-----------------------------------------------}
STICKLINE(C =O,C,O,3.4,0),COLOR0000AA;
STICKLINE(C =O,C,O,3.0,0),COLOR0000BB ;
STICKLINE(C =O,C,O,2.4,0),COLOR0000CC;
STICKLINE(C =O,C,O,2.0,0),COLOR0000DD ;
STICKLINE(C =O,C,O,1.6,0),COLOR0000EE;
STICKLINE(C =O,C,O,1.2,0),COLOR0000FF;
STICKLINE(C =O,C,O,0.6,0),COLOR0000FF;
STICKLINE(C =O,H,L,0,0),COLORRED;
STICKLINE(C =O,C,O,3.4,0),COLORAAAA00;
STICKLINE(C =O,C,O,3.0,0),COLORBBBB00;
STICKLINE(C =O,C,O,2.4,0),COLORCCCC00;
STICKLINE(C =O,C,O,2.0,0),COLORDDDD00;
STICKLINE(C =O,C,O,1.6,0),COLOREEEE00;
STICKLINE(C =O,C,O,1.2,0),COLORFFFF00;
STICKLINE(C =O,C,O,0.6,0),COLORFFFF00;
STICKLINE(C =O,H,L,0,0),COLORFFFF00;
{-------------------------------------------------基本面----------------------------------------------}
{距形}
DRAWRECTREL(0,0,378,348,RGB(0,32,64));
{基本资料}
品种类型:=FINANCE(3);
所属板块:=HYBLOCK;
上市天数:=FINANCE(42);
股总市值:=ROUND(FINANCE(41)/100000000);
流通市值:=ROUND(FINANCE(40)/100000000);
股东人数:=FINANCE(8);
人均持股:=ROUND(FINANCE(7)/FINANCE(8));
{}
DRAWTEXT_FIX(1,0.008,0.01,0,'基本资料:'),COLORLIBLUE;
DRAWTEXT_FIX(1,0.008,0.05,0,'品种类型:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.008,0.09,0,'行业板块:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.008,0.13,0,'上市天数:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.008,0.17,0,'股东人数:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.008,0.21,0,'人均持股:'),COLORLIGREEN;
{}
DRAWTEXT_FIX(品种类型=1,0.055,0.05,0,'沪 深 A 股'),COLORYELLOW;
DRAWTEXT_FIX(品种类型=2,0.055,0.05,0,' 中 小 板'),COLORYELLOW;
DRAWTEXT_FIX(品种类型=3,0.055,0.05,0,' 创 业 板'),COLORYELLOW;
DRAWTEXT_FIX(1,0.055,0.09,0,HYBLOCK),COLORYELLOW;{行业板块}
{数值}
DRAWNUMBER_FIX(1,0.050,0.13,0,上市天数),COLORCYAN;
DRAWNUMBER_FIX(1,0.050,0.17,0,股东人数),COLORCYAN;
DRAWNUMBER_FIX(1,0.050,0.21,0,人均持股),COLORCYAN;
{单位}
DRAWTEXT_FIX(1,0.08,0.13,0,'天'),COLORWHITE;
DRAWTEXT_FIX(1,0.08,0.17,0,'人'),COLORWHITE;
DRAWTEXT_FIX(1,0.08,0.21,0,'股'),COLORWHITE;
{所属板块}
DRAWTEXT_FIX(1,0.008,0.25,0,'地区板块:')COLORLIGREEN;
DRAWTEXT_FIX(1,0.048,0.25,0,DYBLOCK)COLORCYAN;
DRAWTEXT_FIX(1,0.095,0.25,0,'概念板块:')COLORLIGREEN;
DRAWTEXT_FIX(1,0.135,0.25,0,GNBLOCK)COLORCYAN;
DRAWTEXT_FIX(1,0.008,0.29,0,'风格板块:')COLORLIGREEN;
DRAWTEXT_FIX(1,0.048,0.29,0,FGBLOCK)COLORCYAN;
{财务(1)}
净资收益率:=(FINANCE(33)/FINANCE(34)*100);
主营利润率:=(FINANCE(23)/FINANCE(20)*100);
现金负债比:=(FINANCE(25)/FINANCE(15));
主营收入同比%:=FINANCE(44);{主营收入同比增长率}
净利润同比%:=FINANCE(43);{净利润同比增长率}
{}
DRAWTEXT_FIX(1,0.105,0.01,0,'财务资料(1):'),COLORLIBLUE;
DRAWTEXT_FIX(1,0.105,0.05,0,'净资产收益率:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.105,0.09,0,'主营业务利润率:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.105,0.13,0,'现金流动负债比:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.105,0.17,0,'主营收入同比%:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.105,0.21,0,'净利润同比%:'),COLORLIGREEN;
{}
DRAWNUMBER_FIX(1,0.171,0.05,0,净资收益率),COLORCYAN;
DRAWNUMBER_FIX(1,0.171,0.09,0,主营利润率),COLORCYAN;
DRAWNUMBER_FIX(1,0.171,0.13,0,现金负债比),COLORCYAN;
DRAWNUMBER_FIX(1,0.171,0.17,0,主营收入同比%),COLORCYAN;
DRAWNUMBER_FIX(1,0.171,0.21,0,净利润同比%),COLORCYAN;
{财务(2)}
每股收益:=CONST(FINANCE(38));{近期}{每股税后利润}
每股收益年:=CONST(FINANCE(33));
每股净资产:=CONST(FINANCE(34));
每股现金流:=CONST((FINANCE(25)/FINANCE(1)));
每股未分配:=CONST(FINANCE(32));
每股公积金:=CONST(FINANCE(18));
{}
DRAWTEXT_FIX(1,0.210,0.01,0,'财务资料(2):'),COLORLIBLUE;
DRAWTEXT_FIX(1,0.210,0.05,0,'每股收益(近):'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.210,0.09,0,'每股收益年:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.210,0.13,0,'每股净资产:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.210,0.17,0,'每股未分配:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.210,0.21,0,'每股公积金:'),COLORLIGREEN;
{}
DRAWNUMBER_FIX(1,0.281,0.05,1,每股收益),COLORCYAN;
DRAWNUMBER_FIX(1,0.281,0.09,1,每股收益年),COLORCYAN;
DRAWNUMBER_FIX(1,0.281,0.13,1,每股净资产),COLORCYAN;
DRAWNUMBER_FIX(1,0.281,0.17,1,每股未分配),COLORCYAN;
DRAWNUMBER_FIX(1,0.281,0.21,1,每股公积金),COLORCYAN;
{}
{财务(3)}
市盈率:=DYNAINFO(39);
市销率:=CONST(FINANCE(1)*DYNAINFO(7)/FINANCE(20));
市净率:=CONST(DYNAINFO(7) / FINANCE(34));
毛利率:=((FINANCE(20)-FINANCE(21))/FINANCE(20)*100);
净利润率:=CONST(FINANCE(30)/FINANCE(20));
{}
DRAWTEXT_FIX(1,0.300,0.01,0,'财务资料(3):'),COLORLIBLUE;
DRAWTEXT_FIX(1,0.300,0.05,0,'市盈率:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.300,0.09,0,'市销率:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.300,0.13,0,'市净率:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.300,0.17,0,'毛利率:'),COLORLIGREEN;
DRAWTEXT_FIX(1,0.300,0.21,0,'净利润率:'),COLORLIGREEN;
{}
DRAWNUMBER_FIX(1,0.361,0.05,1,市盈率),COLORCYAN;
DRAWNUMBER_FIX(1,0.361,0.09,1,市销率),COLORCYAN;
DRAWNUMBER_FIX(1,0.361,0.13,1,市净率),COLORCYAN;
DRAWNUMBER_FIX(1,0.361,0.17,1,毛利率),COLORCYAN;
DRAWNUMBER_FIX(1,0.361,0.21,1,净利润率),COLORCYAN;
{-----------------------------------------------------------------------------------------------------}
{www.9m8.cn 九毛八公式指标网}
{-----------------------------------------------------------------------------------------------------};
{资金突破}
买线:=EMA(C,2);
卖线:=EMA(SLOPE(C,21)*20+C,42);
BU:=CROSS(买线,卖线);
SEL:=CROSS(卖线,买线);
Z1:=REF(HIGH,4)=HHV(HIGH,2*4+1);
Y1:=FILTER(Z1,3);
C1:=BACKSET(Y1,3+1);
D1:=FILTER(C1,3);
A2:=REF(LOW,3)=LLV(LOW,2*3+1);
V2:=FILTER(A2,3);
C2:=BACKSET(V2,3+1);
D2:=FILTER(C2,3);
E1:=(REF(LLV(LOW,2*3),1)+REF(HHV(HIGH,2*3),1))/2;
E2:=(HIGH+LOW)/2;
WWW70822COM:DRAWNULL,COLORRED;
H1:=(D1 AND NOT(D2 AND E1 =E2)) OR ISLASTBAR=1 OR BARSCOUNT(CLOSE)=1;
H2:=D1 AND NOT(D2 AND E1 =E2);
L1:=D2 AND NOT(D1 AND E1=E2);
X1:=REF(BARSLAST(H1),1)+1;
DRAWTEXT_FIX(CURRBARSCOUNT=60,0.4,0.01,0,''),COLORGREEN;
F1:=BACKSET(H1 AND COUNT(L1,X1) 0,LLVBARS(IF(L1,LOW,10000),X1));
G1:=F1 REF(F1,1);
I1:=BACKSET(G1,2);
LD:=I1 REF(I1,1);
L2:=LD OR ISLASTBAR=1 OR BARSCOUNT(CLOSE)=1;
X2:=REF(BARSLAST(L2),1)+1;
F2:=BACKSET(L2 AND COUNT(H2,X2) 0,HHVBARS(IF(H2,HIGH,0),X2));
G2:=F2 REF(F2,1);
I2:=BACKSET(G2,2);
HD:=I2 REF(I2,1);
UU2:=BACKSET(ISLASTBAR=1,BARSLAST(HD)+1);
VV2:=UU2 REF(UU2,1);
WW2:=BACKSET(VV2,REF(BARSLAST(HD),1)+2);
XX2:=WW2 REF(WW2,1);
突破线:REF(H,BARSLAST(VV2));
持仓线:REF(H,BARSLAST(XX2));
TP1:=CROSS(C,突破线);
TP2:=CROSS(C,持仓线);
DRAWTEXT(TP1,0,' 突破突破线'),LINETHICK1,COLORYELLOW;
DRAWICON(TP1,C,1);
DRAWTEXT(TP2,O,' 突破持仓线'),LINETHICK1,COLORYELLOW;
DRAWICON(TP2,C,3);