牛熊分道

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,NODRAW;

DRAWICON(开口选股 AND 牛熊分道>REF(牛熊分道,5),MIN(下轨,上轨)*1.08,26);

DRAWTEXT(开口选股 AND 牛熊分道>REF(牛熊分道,5),LOW,'机构'),COLORYELLOW;

DRAWTEXT(开口选股 AND 牛熊分道>REF(牛熊分道,5),上轨*1.13,'开始关注'),COLORRED;

变盘加速上扬:=CROSS(牛熊分道,下轨);

DRAWICON(变盘加速上扬,牛熊分道*1.05,25);

疯牛马线:=EMA(HHV(集,21),6),COLORFFFF00,LINETHICK3;

{重仓介入}

重仓目标:=FILTER((COUNT(变盘加速上扬,5)=1),15) AND 牛熊分道>REF(牛熊分道,5),COLORFFFF00,LINETHICK2;

STICKLINE(重仓目标>0.8 AND 牛熊分道>REF(牛熊分道,1),牛熊分道*0.8,牛熊分道*0.96,0.5,0),COLORFFFF00,LINETHICK2;

STICKLINE(重仓目标>0.8 AND 牛熊分道>REF(牛熊分道,5),牛熊分道*0.8,牛熊分道*0.9,2,0),COLORFF0080,LINETHICK2;

STICKLINE(重仓目标>0.8 AND 牛熊分道>REF(牛熊分道,5),牛熊分道*0.78,牛熊分道*0.84,4,0),COLORFF00FF,LINETHICK2;

DRAWTEXT(重仓目标>0.8 AND 牛熊分道>REF(牛熊分道,5),牛熊分道*0.72,'重点目标'),COLORRED;

VARA:=SMA(AMOUNT,10,1)/1000000;

VARB:=REF(VARA,1);

VARC:=MA(REF(CLOSE,1),5);

最高:=VARA*HIGH/VARC*1/10,POINTDOT,COLOR009900,COLORGRAY;

最低:=VARA*LOW/VARC*1/10,POINTDOT,COLOR009900,COLORYELLOW;

开盘:=VARA*OPEN/VARC*1/10,POINTDOT,COLOR009900,COLORMAGENTA;

收盘:=VARA*CLOSE/VARC*1/10,COLOR009900,COLORGREEN,POINTDOT;

涨跌:=(收盘-REF(收盘,1))/REF(收盘,1)*100,POINTDOT,COLOR009900,LINETHICK0;

STICKLINE((CLOSE>=下轨 AND 涨跌>15 AND CLOSE<=上轨 AND OPEN<=上轨 AND 下轨<牛熊分道),CLOSE,OPEN,3,0),COLORYELLOW;

{超强突破}

自选:=IF((CROSS(CLOSE,上轨) AND 下轨<牛熊分道) AND 下轨<REF(下轨,1),18,0),COLORRED,LINETHICK2;

重点自选:=FILTER((自选>2),20),COLORRED,LINETHICK2;

STICKLINE(重点自选,CLOSE*1.1,CLOSE*1.15,0.5,0),COLORRED;

DRAWICON(重点自选,CLOSE*1.06,12),COLORRED;

DRAWTEXT(重点自选,CLOSE*1.2,'快马加鞭'),COLORRED;

起爆:=IF((涨幅>8 AND CROSS(CLOSE,下轨) AND 涨跌>8 AND CLOSE>下轨 AND OPEN<下轨),18,0);

DRAWTEXT(起爆>8,CLOSE*1.05,'起爆'),COLORRED;

STICKLINE((涨幅>8 AND CROSS(CLOSE,下轨) AND 上轨>下轨 AND 涨跌>8 AND CLOSE>下轨 AND OPEN<下轨),OPEN,CLOSE,3,0),COLORFF00FF;

STICKLINE((涨幅>8 AND CROSS(CLOSE,下轨) AND 上轨>下轨 AND 涨跌>8 AND CLOSE>下轨 AND OPEN<下轨),OPEN+(CLOSE-OPEN)*1/2,CLOSE,3,0),COLORYELLOW;

STICKLINE((涨跌>20 AND 上轨>下轨 AND CLOSE>上轨),OPEN+(CLOSE-OPEN),OPEN,3,0),COLORRED;

STICKLINE((涨幅>5 AND 上轨>下轨 AND 涨跌>0 AND 涨跌<20 AND CLOSE>上轨 AND 下轨<=REF(下轨,1) AND OPEN<上轨),CLOSE,OPEN,3,0),COLORRED;

STICKLINE((涨幅>5 AND 上轨>下轨 AND 涨跌>0 AND 涨跌<20 AND CLOSE>上轨 AND 下轨<=REF(下轨,1) AND OPEN<上轨),OPEN+(CLOSE-OPEN)*2/3,OPEN,3,0),COLORBLUE;

STICKLINE((涨跌>40 AND 上轨>下轨 AND 下轨<=REF(下轨,1) AND CLOSE>上轨 AND OPEN<上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORYELLOW;

STICKLINE((涨跌>20 AND 上轨>下轨 AND 下轨<=REF(下轨,1) AND CLOSE>上轨 AND OPEN<上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORBLUE;

STICKLINE((涨跌>10 AND 上轨>下轨 AND 下轨<=REF(下轨,1) AND CLOSE>上轨 AND OPEN>上轨),OPEN+(CLOSE-OPEN)/3,OPEN+(CLOSE-OPEN)*2/3,3,0),COLORYELLOW;

{超强势}

STICKLINE((涨跌>1 AND 上轨>下轨 AND 下轨<=REF(下轨,1) AND CLOSE>上轨 AND OPEN>上轨 AND 阳线缺口),OPEN,CLOSE,3,0),COLORYELLOW;

STICKLINE((涨跌>1 AND 上轨>下轨 AND 下轨<=REF(下轨,1) AND CLOSE>上轨 AND OPEN>上轨 AND 阳线缺口),OPEN+(CLOSE-OPEN)/4,OPEN+(CLOSE-OPEN)/2,3,0),COLORRED;

STICKLINE((涨跌>1 AND 上轨>下轨 AND 下轨<=REF(下轨,1) AND CLOSE>上轨 AND OPEN>上轨 AND 阳线缺口),OPEN+(CLOSE-OPEN)/2,OPEN+(CLOSE-OPEN)*3/4,3,0),COLORYELLOW;

STICKLINE((涨跌>1 AND 上轨>下轨 AND 下轨<=REF(下轨,1) AND CLOSE>上轨 AND OPEN>上轨 AND 阳线缺口),OPEN+(CLOSE-OPEN)*3/4,CLOSE,3,0),COLORFF0060;

开口:=BARSLASTCOUNT(上轨A>开A)=1,NODRAW;

DRAWTEXT_FIX(1,0.980,20,1,'★分析家公式网'),COLORYELLOW;

DRAWICON(开口,MIN(开A,上轨A)*0.96,26);

DRAWTEXT(开口,LOW,'开口'),COLORYELLOW;
{ 原文链接:http://www.70822.com/soft/sort013/sort05/down-153933.html }

(0)

相关推荐