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

通达信源码精选:潜龙在渊,精准买卖点,MACD均线主图

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

1、潜龙在渊,周线公式

本公式潜龙在渊,为本人开发“龙系公式”。
公式源码:

潜龙在渊
{此指标为“周线"选股}
BB:=MIN((MA(C,5),MA(C,10)),MA(C,20));
CC:=MAX((MA(C,5),MA(C,10)),MA(C,20));
DD:=MIN((MA(C,5),MA(C,10)),MA(C,60));
EE:=MAX((MA(C,5),MA(C,10)),MA(C,60));
FF:=MIN(BB,MA(C,60));
GG:=MAX(CC,MA(C,60));
AA:=(L<BB AND H>CC) OR (L<DD AND H>EE);
AA1:=(LLV(L,2)<FF AND C>GG) OR (LLV(L,2)<FF AND C>CC) OR (LLV(L,2)<FF AND C>EE);
AA2:=(LLV(L,2)<BB AND C>CC) OR (LLV(L,2)<DD AND C>EE) OR (LLV(L,2)<FF AND C>GG);
CYDS:=WINNER(CLOSE)/(VOL/CAPITAL);
{股 民 学 院 : http://www.58188.net 整理}
CYDN:=WINNER(CLOSE)/MA(VOL/CAPITAL,21);
OT1G:=REF(CYDS>0,1) AND CYDS/REF(CYDS,1)>200 AND C/REF(C,1)>1.08 
AND COUNT(L=LLV(L,8),2)>0 AND COUNT(C/REF(C,1)>1,3)>=2;
{?}OT3:=CYDN/REF(CYDN,2)>120 AND BETWEEN(REF(CYDN,2),0.01,2) AND CYDN>10 
AND CYDN>REF(CYDN,1);
OT4Y:=(CYDN/REF(CYDN,2))>(CYDS/REF(CYDS,2)) AND CYDN>10 AND REF(CYDN,2)<2.5;
OT4G:=(CYDN/REF(CYDN,2))>(CYDS/REF(CYDS,2)) AND CYDN>10 AND REF(CYDN,2)<2.5
 AND EVERY(C>MA(C,60),5) AND C/REF(C,1)>1.06;
  OT4G4:=(CYDN/REF(CYDN,2))>(CYDS/REF(CYDS,2)) AND CYDN>10 AND REF(CYDN,2)<2.5
 AND COUNT(AA1 OR AA,2)>0 AND CYDN/REF(CYDN,2)>120;  
XG:OT3 OR OT4G4;
选股周期是:周线,这个是“周线”选股,千万不要设置日线选股。应该周线
 
有了这个公式,再辅之以其他基本面研究
或许,真的能实现,“游山玩水把钱赚”的理想状态



2、精准买卖点,有多空买卖提示信号

精准买卖点,是波段指标,有多空买卖点提示信号,有红绿多空柱体提示
 

{精准买卖点}
SJ:=1;
X1:=EMA(CLOSE,8)*SJ,COLORWHITE;
X3:=EMA(X1,16)*SJ,COLORRED;
B:=BARSLAST(DAY<>REF(DAY,1))+1;
VAR2:=(CLOSE+HIGH+LOW)/3;
VAR3:=EMA(VAR2,10);
VAR4:=REF(VAR3,1);
STICKLINE(VAR3*SJ>VAR4,VAR3,VAR4,2 ,0),COLORRED;
STICKLINE(VAR3< VAR4*SJ,VAR3,VAR4,2,0), COLORGREEN;
W:=BARSLAST(DATE<>REF(DATE,1));
OO:=REF(OPEN,W);
 
HX:=HHV(HIGH,3);
LX:=LLV(LOW,3);
H1:=IF(HX<REF(HX,1)&&HX<REF(HX,2)&&HX<REF(HX,4)&&LX<REF(LX,1)&&LX<REF(LX,3)&&LX<REF(LX,5)&&OPEN>CLOSE&&(HHV(OPEN,0)-CLOSE)>0,REF(HX,4),0);
L1:=IF(LX>REF(LX,1)&&LX>REF(LX,3)&&LX>REF(LX,5)&&HX>REF(HX,1)&&HX>REF(HX,2)&&HX>REF(HX,4)&&OPEN<CLOSE&&(CLOSE-LLV(OPEN,0))>0,REF(LX,4),0);
H2:=VALUEWHEN(H1>0,H1);
L2:=VALUEWHEN(L1>0,L1);
K111:=IF(CLOSE>H2,-3,IF(CLOSE<L2,1,0));
K222:=VALUEWHEN(K111<>0,K111);
TMP:=K222;
MA55:=MA(CLOSE,55);
DRAWTEXT(CROSS(TMP*SJ,0) ,HX,'卖空'),COLORGREEN,DRAWABOVE;
DRAWTEXT(CROSS(0,TMP*SJ),LX,'买多'),COLORRED;
DRAWICON(CROSS(TMP*SJ,0) ,HX,39),COLORGREEN,DRAWABOVE;
DRAWICON(CROSS(0,TMP*SJ),LX,38),COLORRED;
{股 民 学 院 : http://www.58188.net 整理}
 
结合使用很好用。
指标滞后性小,提示及时。




3、MACD均线主图, 把macd融合在主图中

{MACD均线主图}
C1:=REF(C,1);
涨停:=IF(REF(C,1)*1.1-C<0.01,1,0);
STICKLINE(涨停,H,L,0,0),COLORCC00CC;
STICKLINE(涨停,OPEN,CLOSE,0,0),COLORCC00CC;
STICKLINE(涨停,OPEN,CLOSE,3,0),COLORCC00CC;
 
C2:=REF(C,1);
跌停:=IF((C2-C)*100/C2>=(10-0.01*100/C2),1,0);
STICKLINE(跌停,H,L,0,0),COLORFF3300;
STICKLINE(跌停,OPEN,CLOSE,0,0),COLORFF3300;
STICKLINE(跌停,OPEN,CLOSE,3,0),COLORFF3300;
 
EMA8:EMA(CLOSE,8),COLORYELLOW;
EMA21:EMA(CLOSE,21),COLORFF00FF;
MA89:MA(CLOSE,89),COLOR007700,LINETHICK2;
MA200:MA(CLOSE,200),COLOR0099FF,LINETHICK2;
EMA365:EMA(CLOSE,365),COLOR999999;
 
Z1:=STRCAT(HYBLOCK,' ');
Z2:=STRCAT(Z1,DYBLOCK);
Z3:=STRCAT(Z2,' ');
DRAWTEXT_FIX(ISLASTBAR,0,10,0,STRCAT(Z3,GNBLOCK)),COLORYELLOW;
 
流通市值:(FINANCE(40)/100000000),NODRAW,COLORYELLOW;


上一篇:通达信源码精选:敢死队,领带筹选,MACD背离画线

下一篇:通达信源码精选:主升强度副图,均线战法,非妖不买升级版