当前位置: 网站首页 > 股票软件公式 > 通达信公式 > 文章 当前位置: 通达信公式 > 文章

通达信源码:倾家荡产要买,跟庄买卖,财务防雷专用

点击: 次    来源:顶尖财经    作者:股市狙击 - 小 + 大

1、倾家荡产要买

倾家荡产买使用方法如下:
1.短线买入和中线买入出现可以关注;
2.短线和中线与长线买入可以重点关注;
3.卖点可以自己把握;( 顶尖财经 股票学院: http://58188.com )
重点:本指标适合上班族以及没有时间看盘的朋友一旦买入坐等庄家抬轿,拉升或大行情开启,享受主升浪的到来,卖点可以自己把握!
 

{倾家荡产要买}
N:=3;
VAR1:=MA(HHV(HIGH,485),17);
 
VAR2:=MA(HHV(HIGH,222),17);
 
VAR3:=MA(HHV(HIGH,96),17);
 
VAR4:=MA(LLV(LOW,485),17);
 
VAR5:=MA(LLV(LOW,222),17);
 
VAR6:=MA(LLV(LOW,96),17);
 
VAR7:=MA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,17);
 
VAR8:=MA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,17);
 
VAR9:=MA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,17);
 
VARA:=MA((VAR7*3+VAR8*2+VAR9)/6*1.738,17);
 
VARB:=IF(DATE<=1050531999,VARA,VARA*DAY);
 
VARC:=LOW;
 
VARD:=REF(LOW,1);
 
VARE:=SMA(ABS(VARC-VARD),3,1)/SMA(MAX(VARC-VARD,0),N,1)*100;
 
VARF:=MA(IF(CLOSE*1.35<=VARB,VARE*10,VARE/10),N);
 
VAR10:=LLV(LOW,30);
 
VAR11:=HHV(VARF,30);
 
VAR12:=1990831;
 
绝佳买点:=IF(DATE<=VAR12,MA(IF(LOW<=VAR10,(VARF+VAR11*2)/2,0),N),100000000);
 
I:=IF(CLOSE<REF(CLOSE,1),VOL/CAPITAL*10053,0);
 
骤雨初晴:= ABS(EMA(I,13.3)-18)/WINNER(CLOSE)*IF((CLOSE-MA(CLOSE,6))/MA(CLOSE,6)<-0.04,1,0);
 
短线买:IF(绝佳买点>500 AND 绝佳买点>2500,1,0),COLORYELLOW,LINETHICK1;
 
中线买:IF(绝佳买点>10000 AND 绝佳买点>20000,2,0),COLORFF00FF,LINETHICK2;
 
倾家荡产买:IF(绝佳买点>30000 AND 绝佳买点>30000,3,0),COLORRED,LINETHICK3; 




2、跟庄买卖

{跟庄买卖}

M1:=5;
M2:=10;
M3:=30;
M4:=60;
MA1:MA(CLOSE,M1);
MA2:MA(CLOSE,M2);
MA3:MA(CLOSE,M3);
MA4:MA(CLOSE,M4);
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3;
VAR5:=(CLOSE-LLV(LOW,528))/(HHV(HIGH,528)-LLV(LOW,528))*100;
VAR6:=(CLOSE-LLV(CLOSE,530))/(HHV(CLOSE,530)-LLV(CLOSE,530))*100;
VAR7:=0;
VAR8:=SMA(MAX(CLOSE-REF(CLOSE,1),0),34,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),7,1)*100;
VAR9:=SMA(MAX(CLOSE-REF(CLOSE,1),0),13,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),13,1)*100;
VAR10:=IF(TROUGHBARS(3,16,1)=0 AND HIGH>LOW+0.04,4,0);
VAR11:=ZIG(3,6)>REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)<=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)<=REF(ZIG(3,6),3);
VAR12:=ZIG(3,6)<REF(ZIG(3,6),1) AND REF(ZIG(3,6),1)>=REF(ZIG(3,6),2) AND REF(ZIG(3,6),2)>=REF(ZIG(3,6),3);
VAR13:=ZIG(3,22)>REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)<=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)<=REF(ZIG(3,22),3);
VAR14:=ZIG(3,22)<REF(ZIG(3,22),1) AND REF(ZIG(3,22),1)>=REF(ZIG(3,22),2) AND REF(ZIG(3,22),2)>=REF(ZIG(3,22),3);
VAR15:=ZIG(3,51)>REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)<=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)<=REF(ZIG(3,51),3);
VAR16:=ZIG(3,51)<REF(ZIG(3,51),1) AND REF(ZIG(3,51),1)>=REF(ZIG(3,51),2) AND REF(ZIG(3,51),2)>=REF(ZIG(3,51),3);
VAR17:=ZIG(3,72)>REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)<=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)<=REF(ZIG(3,72),3);
VAR18:=ZIG(3,72)<REF(ZIG(3,72),1) AND REF(ZIG(3,72),1)>=REF(ZIG(3,72),2) AND REF(ZIG(3,72),2)>=REF(ZIG(3,72),3);
VAR19:=EMA(CLOSE,2)-EMA(CLOSE,150);
买1:=VAR10;
买2:=(VAR11+VAR13+VAR15+VAR17);
卖1:=(VAR12+VAR14+VAR16+VAR18);
B:IF(买1>0 OR 买2>0,LOW*0.99,DRAWNULL),CROSSDOT,LINETHICK3,COLORYELLOW;
DRAWTEXT(买1>0 OR 买2>0,LOW*0.99,'买入'),COLORRED;
S:IF(卖1>0,HIGH*1.01,DRAWNULL),CROSSDOT,LINETHICK3,COLORGREEN;
DRAWTEXT(卖1>0,HIGH*1.02,'卖出'),COLORGREEN;
VAR100:=(100-((90*(HHV(HIGH,20)-CLOSE))/(HHV(HIGH,20)-LLV(LOW,20))));
VAR200:=(100-((90*(HHV(HIGH,20)-CLOSE))/(HHV(HIGH,20)-LLV(LOW,20))));
VAR300:=(100-MA(((100*(HHV(HIGH,5)-CLOSE))/(HHV(HIGH,5)-LLV(LOW,5))),34));
F:IF(CROSS(VAR200,MA(VAR300,5)),LOW * 0.98,DRAWNULL),CROSSDOT,LINETHICK3,COLOREE00EE;
年:MA(CLOSE,22),LINETHICK2,COLORWHITE;
MAA5:MA(C,5),COLORFF00FF,LINETHICK2;
MAA10:=MA(C,10);
MAA30:MA(C,30),COLORRED;
KS:IF(MAA10>MAA30,MAA10,MAA30),COLORBLUE;
A3:=(C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100;
A4:=SMA(A3,3,1);
A5:=SMA(A4,3,1);
A6:=3*A4-2*A5;
A7:=C-REF(C,1);
A8:=100*EMA(EMA(A7,6),6)/EMA(EMA(ABS(A7),6),6);
买:=LLV(A8,2)=LLV(A8,7) AND COUNT(A8<0,2) AND CROSS(A8,MA(A8,2));
DRAWTEXT(FILTER(买=1,5),LOW-0.05,'↖跟庄买入')COLORYELLOW;
STICKLINE(买,OPEN,CLOSE,2,0),COLORYELLOW;



3、财务防雷专用

一定要有专业财务数据,才可以使用这个公式,通达信收费版,或者超赢版,可以使用( 顶尖财经 股票学院: http://58188.com )
 

JGJS:FINONE(246,0,0);
JGCGS:=FINONE(247,0,0);
DRAWTEXT_FIX(JGJS>0,0.0,0.0,0,'机构家数:'),COLORMAGENTA;
DRAWTEXT_FIX(JGJS>0,0.1,0.0,0,VAR2STR(JGJS,0)),COLORYELLOW;
DRAWTEXT_FIX(JGJS>0,0.0,0.1,0,'机构持股数万:'),COLORCYAN;
DRAWTEXT_FIX(JGJS>0,0.1,0.1,0,VAR2STR(JGCGS/10000,0)),COLORYELLOW;
JGCGBL:=FINONE(247,0,0)/FINANCE(7)*100;
DRAWTEXT_FIX(C>0,0.0,0.2,0,'机构占流通比:'),COLORRED;
DRAWTEXT_FIX(C>0,0.1,0.2,0,VAR2STR(JGCGBL,2)),COLORRED;
 
CGBL:=FINONE(243,0,0)/FINONE(238,0,0)*100; 
SDGD:=FINONE(245,0,0)/FINONE(238,0,0)*100;
SDLT:=FINONE(244,0,0)/FINONE(238,0,0)*100;
DRAWTEXT_FIX(C>0,0.0,0.3,0,'第一股东持股:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.1,0.3,0,VAR2STR(FINONE(243,0,0)/10000,0)),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.0,0.4,0,'持股占总股本:'),COLORRED;
DRAWTEXT_FIX(C>0,0.1,0.4,0,VAR2STR(CGBL,2)),COLORRED;
DRAWTEXT_FIX(C>0,0.0,0.5,0,'十大股东持股:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.1,0.5,0,VAR2STR(FINONE(245,0,0)/10000,0)),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.0,0.6,0,'持股占总股本:'),COLORRED;
DRAWTEXT_FIX(C>0,0.1,0.6,0,VAR2STR(SDGD,2)),COLORRED;
SDBL:=FINONE(264,0,0)/FINANCE(7)*100;
DYBL:=FINONE(265,0,0)/FINANCE(7)*100;
DRAWTEXT_FIX(C>0,0.0,0.7,0,'第一流通股东:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.1,0.7,0,VAR2STR(FINONE(265,0,0)/10000,0)),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.0,0.8,0,'持股占流通比:'),COLORRED;
DRAWTEXT_FIX(C>0,0.1,0.8,0,VAR2STR(DYBL,2)),COLORRED;

 
DRAWTEXT_FIX(C>0,0.16,0.0,0,'短期贷款:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.24,0.0,0,VAR2STR(FINONE(41,0,0)/10000,0)),COLORRED;
DRAWTEXT_FIX(C>0,0.16,0.1,0,'长期贷款:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.24,0.1,0,VAR2STR(FINONE(55,0,0)/10000,0)),COLORGREEN;
DRAWTEXT_FIX(C>0,0.16,0.2,0,'商誉:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.24,0.2,0,VAR2STR(FINONE(35,0,0)/10000,0)),COLORRED;
DRAWTEXT_FIX(C>0,0.16,0.3,0,'减值准备:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.24,0.3,0,VAR2STR(FINONE(135,0,0)/10000,0)),COLORGREEN;
DRAWTEXT_FIX(C>0,0.16,0.4,0,'减值损失:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.24,0.4,0,VAR2STR(FINONE(81,0,0)/10000,0)),COLORRED;
DRAWTEXT_FIX(C>0,0.16,0.5,0,'投资损失:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.24,0.5,0,VAR2STR(FINONE(143,0,0)/10000,0)),COLORGREEN;
DRAWTEXT_FIX(C>0,0.16,0.6,0,'公允损失:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.24,0.6,0,VAR2STR(FINONE(141,0,0),0)),COLORRED;
DRAWTEXT_FIX(C>0,0.16,0.7,0,'预计负债:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.24,0.7,0,VAR2STR(FINONE(59,0,0)/10000,0)),COLORGREEN;
DRAWTEXT_FIX(C>0,0.16,0.8,0,'流动负债:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.24,0.8,0,VAR2STR(FINONE(54,0,0)/10000,0)),COLORRED;
DRAWTEXT_FIX(C>0,0.16,0.9,0,'负债合计:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.24,0.9,0,VAR2STR(FINONE(63,0,0)/10000,0)),COLORGREEN;
 
 
DRAWTEXT_FIX(C>0,0.33,0.0,0,'存货:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.44,0.0,0,VAR2STR(FINONE(17,0,0)/10000,0)),COLORMAGENTA;
DRAWTEXT_FIX(C>0,0.33,0.1,0,'存货周转天数:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.44,0.1,0,VAR2STR(FINONE(178,0,0),0)),COLORMAGENTA;
 
DRAWTEXT_FIX(C>0,0.33,0.2,0,'营业收入万:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.44,0.2,0,VAR2STR(FINONE(74,0,0)/10000,0)),COLORRED;
DRAWTEXT_FIX(C>0,0.33,0.3,0,'营业利润万:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.44,0.3,0,VAR2STR(FINONE(86,0,0)/10000,0)),COLORRED;
 
 
 
DRAWTEXT_FIX(C>0,0.33,0.4,0,'扣除非净利润:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.44,0.4,0,VAR2STR(FINONE(206,0,0)/10000,0)),COLORMAGENTA;
 
DRAWTEXT_FIX(C>0,0.33,0.5,0,'归属母净利润:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.44,0.5,0,VAR2STR(FINONE(96,0,0)/10000,0)),COLORMAGENTA;
 
DRAWTEXT_FIX(C>0,0.33,0.6,0,'经营现金流净:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.44,0.6,0,VAR2STR(FINONE(107,0,0)/10000,0)),COLORRED;
 
DRAWTEXT_FIX(C>0,0.33,0.7,0,'投资现金流净:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.44,0.7,0,VAR2STR(FINONE(119,0,0)/10000,0)),COLORRED;
 
DRAWTEXT_FIX(C>0,0.33,0.8,0,'所有股东权益:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.44,0.8,0,VAR2STR(FINONE(72,0,0)/10000,0)),COLORMAGENTA;
DRAWTEXT_FIX(C>0,0.33,0.9,0,'负债权益合计:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.44,0.9,0,VAR2STR(FINONE(73,0,0)/10000,0)),COLORMAGENTA;
 
 
 
DRAWTEXT_FIX(C>0,0.51,0.0,0,'资产负债率:'),COLORGREEN;
DRAWTEXT_FIX(C>0,0.63,0.0,0,VAR2STR(FINONE(210,0,0),2)),COLORCYAN;
Y9JLR:=FINONE(184,0,00);
DRAWTEXT_FIX(C>0,0.51,0.1,0,'净利润同比增长:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.63,0.1,0,VAR2STR(Y9JLR,2)),COLORRED;
 
DRAWTEXT_FIX(C>0,0.51,0.2,0,'净资产收益率:'),COLORGREEN;
DRAWTEXT_FIX(C>0,0.63,0.2,0,VAR2STR(FINONE(197,0,0),2)),COLORCYAN;
 
DRAWTEXT_FIX(C>0,0.51,0.3,0,'销售毛利率:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.63,0.3,0,VAR2STR(FINONE(202,0,0),2)),COLORRED;
 
DRAWTEXT_FIX(C>0,0.51,0.4,0,'销售净利率:'),COLORGREEN;
DRAWTEXT_FIX(C>0,0.63,0.4,0,VAR2STR(FINONE(199,0,0),2)),COLORCYAN;
 
DRAWTEXT_FIX(C>0,0.51,0.5,0,'资产负债率:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.63,0.5,0,VAR2STR(FINONE(210,0,0),2)),COLORRED;
 
DRAWTEXT_FIX(C>0,0.51,0.6,0,'净资产增长率:'),COLORGREEN;
DRAWTEXT_FIX(C>0,0.63,0.6,0,VAR2STR(FINONE(185,0,0),2)),COLORCYAN;
 
DRAWTEXT_FIX(C>0,0.51,0.7,0,'营业收入增长率:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.63,0.7,0,VAR2STR(FINONE(183,0,0),2)),COLORRED;
 
DRAWTEXT_FIX(C>0,0.51,0.8,0,'营业利润增长率:'),COLORGREEN;
DRAWTEXT_FIX(C>0,0.63,0.8,0,VAR2STR(FINONE(189,0,0),2)),COLORCYAN;
 
DRAWTEXT_FIX(C>0,0.51,0.9,0,'总资产增长率:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.63,0.9,0,VAR2STR(FINONE(187,0,0),2)),COLORRED;
DRAWTEXT_FIX(C>0,0.82,0.0,0,'龙虎榜买入:'),COLORRED;
DRAWTEXT_FIX(C>0,0.93,0.0,0,VAR2STR(GPJYVALUE(2,1,1),0)),COLORRED;

DRAWTEXT_FIX(C>0,0.82,0.1,0,'龙虎榜卖出:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.93,0.1,0,VAR2STR(GPJYVALUE(2,2,1),0)),COLORGREEN;
LHBJ:=(GPJYVALUE(2,1,1)-GPJYVALUE(2,2,1));
DRAWTEXT_FIX(C>0,0.82,0.2,0,'龙虎榜净入:'),COLORGREEN;
DRAWTEXT_FIX(C>0,0.93,0.2,0,VAR2STR(LHBJ,0)),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.82,0.3,0,'股东总数:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.93,0.3,0,VAR2STR(FINONE(242,0,0),0)),COLORRED;
DRAWTEXT_FIX(C>0,0.82,0.4,0,'股东数异动:'),COLORGREEN;
DRAWTEXT_FIX(C>0,0.93,0.4,0,VAR2STR(GPJYVALUE(1,1,1),0)),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.82,0.5,0,'股东数异动:'),COLORRED;
DRAWTEXT_FIX(C>0,0.93,0.5,0,VAR2STR(GPJYVALUE(2,2,1),0)),COLORCYAN;
 
DRAWTEXT_FIX(C>0,0.82,0.6,0,'大宗交易价:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.93,0.6,0,VAR2STR(GPJYVALUE(4,1,1),0)),COLORYELLOW;
 
DRAWTEXT_FIX(C>0,0.82,0.7,0,'大宗交易额:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.93,0.7,0,VAR2STR(GPJYVALUE(4,2,1),0)),COLORCYAN;
 
DRAWTEXT_FIX(C>0,0.82,0.8,0,'增减持-均价:'),COLORCYAN;
DRAWTEXT_FIX(C>0,0.93,0.8,0,VAR2STR(GPJYVALUE(5,1,1),0)),COLORYELLOW;
 
DRAWTEXT_FIX(C>0,0.82,0.9,0,'增减持-股数:'),COLORYELLOW;
DRAWTEXT_FIX(C>0,0.93,0.9,0,VAR2STR(GPJYVALUE(5,2,1),0)),COLORCYAN;

上一篇:通达信源码:神渔短线2主图,神渔短线副2J

下一篇:通达信源码:牛股突破主图,黑马和小三角,私用(熊市)