当前位置:分析家公式网 → 股票公式 → 通达信公式 → 一键转帖:牛熊分道,源码分享(通达信公式 主图 源码 测试图)
软件名称:[B]牛熊分道,源码分享(通达信公式 主图 源码 测试图)[/B]
软件类型:国产软件
运行环境:Win10/Win9X/Win8/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:0 Bytes
官方主页:Home Page
更新时间:2021-02-04 08:26:40
软件简介:
牛熊分道 通达信主图公式的源码是:
XA2:=5;
XA3:=3;
XA4:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;
XA6:=EMA(EMA(LOW,21)+6.8*STD(LOW,2),55);
XA7:=EMA(CLOSE/XA6*(1.88*CLOSE+LOW+OPEN)/2.75,3);
XA8:=(XA7-XA6)/XA6/2;
XA9:=EMA(XA7-XA8*XA7,5);
XA10:=EMA(CLOSE,34)-3*STD(CLOSE,34);
上轨A:=IF(XA4>XA9,XA4,XA9),COLORGREEN,LINETHICK0;
ZZ:=IF(上轨A>REF(上轨A,1),上轨A,上轨A),COLORGREEN,LINETHICK1;
超牛分界线:IF(C>上轨A,上轨A,DRAWNULL),COLORFF00FF,LINETHICK3;
开A:=IF(XA9<XA4 AND XA9<CLOSE*0.15,EMA(CLOSE,34)-3*STD(CLOSE,34),XA9),COLORGREEN,LINETHICK5;
IF(上轨A>开A,开A,DRAWNULL),COLORGREEN,LINETHICK1;
IF(上轨A>开A AND 开A>=REF(开A,1),开A,DRAWNULL),COLORGREEN,LINETHICK1;
IF(上轨A>开A AND 上轨A<REF(上轨A,1),上轨A,DRAWNULL),COLORGREEN,LINETHICK1;
开口重仓介入:IF(上轨A>开A AND 开A<=REF(开A,1),开A,DRAWNULL),COLORRED,LINETHICK3;
B1:=MA(C,1);
持币阶段:=SMA(SMA(SMA(B1,2,1),2,1),2,1),COLORFF6100,LINETHICK4;
主升持股:=HHV(MA(持币阶段,1),13),COLOR00FFFF,LINETHICK4;
价量:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
主力活跃力度:=(((价量-LLV(价量,27))/(HHV(价量,27)-LLV(价量,27)))*(4))*(25);
快线:=(((价量-LLV(价量,9))/(HHV(价量,9)-LLV(价量,9)))*(4))*(25);
RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100;
K1:=SMA(RSV,3,1);
D1:=SMA(K1,3,1);
KK:=INTPART(K1);
DD:=INTPART(D1);
TFXXS:=KK+DD;
TGLXS:=(TFXXS-REF(TFXXS,1));
主力筹码:=EMA(WINNER(CLOSE)*70,3);
散户筹码:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
金叉疯牛:=EMA((EMA(CLOSE,4)+EMA(CLOSE,6)+EMA(CLOSE,12)+EMA(CLOSE,24))/4,2);
界:=MA(CLOSE,27);
持股时段:=IF((金叉疯牛>界)AND(散户筹码<主力筹码)AND((主力活跃力度>50)OR(主力活跃力度>REF(主力活跃力度,1))),-40,0),COLORRED,NODRAW;
阳线缺口:=(L>REF(H,1)) AND CLOSE>OPEN;
主线:=EMA(EMA(C,1),5);
本:=EMA(HHV(主线,5),1);
急:=EMA(HHV(本,21),1);
稳:=EMA(HHV(急,21),2);
投:=EMA(HHV(稳,21),3);
散:=EMA(HHV(投,21),4);
集:=EMA(HHV(散,21),5);
HZ:=HHV((H+L)/2,120);
AA:=(2*C+H+L)/4;
VAR1:=1;
VAR2:=EMA(SLOPE(CLOSE,21)*20+CLOSE,55);
VAR3:=EMA(CLOSE,3);
VAR4:=(2*CLOSE+LOW+HIGH)/4*VAR1;
VAR5:=VAR2-VAR3;
VAR6:=CLOSE*VOL;
VAR7:=EMA((EMA(VAR6,3)/EMA(VOL,3)+EMA(VAR6,6)/EMA(VOL,6)+EMA(VAR6,12)/EMA(VOL,12)+EMA(VAR6,24)/EMA(VOL,24))/4,13);
VAR8:=(EMA(CLOSE,5)*7+EMA(CLOSE,10)*3)/10;
VAR9:=(CLOSE+OPEN)/2;
MA5:=MA(CLOSE,5);
上轨:=EMA(VAR8,15)*1.02,COLORRED,LINETHICK0;
黄线:=(EMA(VAR9,3)+EMA(VAR9,6)+EMA(VAR9,12)+EMA(VAR9,24))/4,COLORYELLOW,LINETHICK1;
HH:=(20*H+19*REF(H,1)+18*REF(H,2)+17*REF(H,3)+16*REF(H,4)+15*REF(H,5)+14*REF(H,6)
+13*REF(H,7)+12*REF(H,8)+11*REF(H,9)+10*REF(H,10)+9*REF(H,11)+8*REF(H,12)
+7*REF(H,13)+6*REF(H,14)+5*REF(H,15)+4*REF(H,16)+3*REF(H,17)+2*REF(H,18)+
REF(H,20))/210,COLORBLUE,LINETHICK1;
LL:=(20*L+19*REF(L,1)+18*REF(L,2)+17*REF(L,3)+16*REF(L,4)+15*REF(L,5)+14*REF(L,6)
+13*REF(L,7)+12*REF(L,8)+11*REF(L,9)+10*REF(L,10)+9*REF(L,11)+8*REF(L,12)
+7*REF(L,13)+6*REF(L,14)+5*REF(L,15)+4*REF(L,16)+3*REF(L,17)+2*REF(L,18)+
REF(L,20))/210,COLORBLUE,LINETHICK1;
VAR80:=3*SMA((C-LLV(L,180))/(HHV(H,180)-LLV(L,180))*100,5,1)-2*SMA(SMA((C-LLV(L,180))/(HHV(H,180)-LLV(L,180))*100,180,1),15,1);
疯牛潜力股:=EMA(VAR80,5), NODRAW,COLOR6600FF;
涨幅:=(CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100,POINTDOT,COLOR009900,LINETHICK0;
牛熊分道:EMA(HH,90),COLORYELLOW,LINETHICK4;
下:=牛熊分道-((C-牛熊分道)*C-牛熊分道)/牛熊分道*1.68,LINETHICK3,COLORRED;
下轨:=MA(下,14)*0.9,COLORGREEN,LINETHICK2;
分道关注:IF(上轨>=下轨 AND 牛熊分道<=下轨 AND 下轨<=REF(下轨,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK6;
IF(上轨>=下轨 AND 牛熊分道<=下轨 AND 下轨<=REF(下轨,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK6;
下轨2:=MA(下,14),COLORGREEN,LINETHICK2;
IF(上轨>=下轨2 AND 下轨<=REF(下轨2,1) AND 主力活跃力度>=REF(主力活跃力度,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK6;
不参与阶段:IF(上轨<=下轨 AND 牛熊分道>REF(牛熊分道,5),上轨,上轨),COLORGREEN,LINETHICK4;
IF(持股时段<-28 AND 上轨>=下轨 AND 牛熊分道>=下轨 AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;
IF(持股时段<-28 AND 疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨 AND 牛熊分道>=下轨 AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;
IF(疯牛潜力股>50 AND BARSCOUNT(C)>250 AND 上轨>=下轨 AND 牛熊分道>=下轨 AND 疯牛潜力股<=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORGREEN,LINETHICK6;
IF(上轨>=下轨 AND 下轨>=REF(下轨,1),下轨,DRAWNULL),COLORGREEN,LINETHICK6;
IF(持股时段<-28 AND BARSCOUNT(C)<250 AND 上轨>=下轨 AND 牛熊分道>=下轨 AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;
IF(持股时段=0 AND BARSCOUNT(C)<250 AND 上轨>=下轨 AND 牛熊分道>=下轨 AND 疯牛潜力股>=REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK6;
IF(上轨>=下轨2 AND 牛熊分道<=下轨*0.98 AND 下轨<=REF(下轨2,1),下轨,DRAWNULL),COLORFF00FF,LINETHICK6;
行情主升浪:IF(持股时段<-28 AND 疯牛潜力股>50 AND 上轨>=下轨 AND 牛熊分道>=下轨 AND 疯牛潜力股>REF(疯牛潜力股,1),下轨,DRAWNULL),COLORFF0080,LINETHICK6;
IF(疯牛潜力股>50 AND 上轨>=下轨 AND 疯牛潜力股>=REF(疯牛潜力股,1) AND 牛熊分道>=下轨,上轨,DRAWNULL),COLORFF6100,LINETHICK4;
IF(疯牛潜力股>50 AND 上轨>=下轨 AND 疯牛潜力股>=REF(疯牛潜力股,1),上轨,DRAWNULL),COLORFF6100,LINETHICK4;
IF(COUNT(C>上轨,5)>=2 AND 上轨>=牛熊分道 AND 疯牛潜力股>=REF(疯牛潜力股,1) AND 涨幅>0.5,上轨,DRAWNULL),COLORFF6100,LINETHICK4;
超级疯牛分界:IF(持股时段<-28 AND 疯牛潜力股>50 AND 上轨>=下轨 AND 疯牛潜力股>REF(疯牛潜力股,1),上轨,DRAWNULL),COLOR0000FF,LINETHICK7;
开口选股:=BARSLASTCOUNT(上轨>下轨)=1,NOD
[url=http://www.70822.com/soft/sort013/sort05/down-153933.html]牛熊分道,源码分享(通达信公式 主图 源码 测试图)[/url]
[url=http://www.70822.com/soft/sort013/sort05/down-153933.html]牛熊分道,源码分享(通达信公式 主图 源码 测试图)[/url]