通达信金牛起爆后市看涨副图 波段彩带顶底背离 源码 附图

{MA10:MA(CLOSE,10);计算10日均线}

N1:=5;N2:=10;

LC:=REF(CLOSE,1);

A0:=(2*C+H+L)/4;

均线:=MA(A0,3)>REF(MA(A0,3),1);

安全线:20,COLORLIGRAY,POINTDOT,LINETHICK4;

AS1:=(CLOSE-LLV(LOW,7))/(HHV(HIGH,7)-LLV(LOW,7))*10;



K:(MA(3*SMA(AS1,6,1)-2*SMA(SMA(AS1,5,1),5,1),3))*10,LINETHICK1,COLORF00FF0;

D:MA(K,3),COLORFF0000,LINETHICK1;

J:(3*K-2*D),LINETHICK1,COLORF00FF0;

{DRAWBAND(K,RGB(155,50,50),D,RGB(0,100,50));}

VAR1:=C-REF(C,1);

VAR2:=100*EMA(EMA(VAR1,6),6)/EMA(EMA(ABS(VAR1),6),6);

MA5:=EMA(C,5);

MA13:=EMA(C,13);

UP:=DRAWLINE(L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS

(MA13,MA5))+1),H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS

(MA5,MA13))+1),0),COLOR0000FF;



DOWN:=DRAWLINE(H=HHV(H,BARSLAST(CROSS(MA5,MA13))+1),HHV(H,BARSLAST(CROSS

(MA5,MA13))+1),L=LLV(L,BARSLAST(CROSS(MA13,MA5))+1),LLV(L,BARSLAST(CROSS

(MA13,MA5))+1),0),COLOR00FF00;

BT:=(LLV(VAR2,2)=LLV(VAR2,7) AND COUNT(VAR2<0,2) AND CROSS(VAR2,MA(VAR2,2))) AND

REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1);

底线:0,COLORFF00FF;

顶线:100,COLORFF0000;

STICKLINE(UP,0,2,3,0),COLOR0000FF;

STICKLINE(DOWN,0,2,3,0),COLOR00FF00;

STICKLINE(BT,0,30,2,0),COLOR000088;

STICKLINE(BT,0,30,1,0),COLOR0000CC;

STICKLINE(BT,0,30,0.22,0),COLOR0000FF;

DRAWTEXT(BT,30,'短牛'),COLOR0000FF;

{}

TJ1:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HHV(H,21)*0.82;

STICKLINE(TJ1,0,20,3,0),COLOR880088;

STICKLINE(TJ1,0,20,1.5,0),COLORAA00AA;

STICKLINE(TJ1,0,20,0.8,0),COLORCC00CC;

STICKLINE(TJ1,0,20,0.2,0),COLORFF00FF;

DRAWTEXT(TJ1,20,'中牛'),COLORFF00FF;

HR:=HHV(HIGH,55);

HRY:=LLV(LOW,55);

HRY11:=HR*HRY;

HRY33:=SQRT(HRY11);



TJ2:=REF(DOWN,1)<REF(DOWN,2) AND UP>REF(DOWN,1) AND C<HRY33;

STICKLINE(TJ2,0,10,5,0),COLOR008888;

STICKLINE(TJ2,0,10,2,0),COLOR00AAAA;

STICKLINE(TJ2,0,10,1,0),COLOR00CCCC;

STICKLINE(TJ2,0,10,0.2,0),COLOR00FFFF;

DRAWTEXT(TJ2,10,'大牛'),COLOR00FFFF;

ST:=REF(UP,1)>REF(UP,2) AND DOWN<REF(UP,1);

STICKLINE(ST,100,90,5,0),COLOR008800;

STICKLINE(ST,100,90,2,0),COLOR00AA00;

STICKLINE(ST,100,90,1,0),COLOR00CC00;

STICKLINE(ST,100,90,0.2,0),COLOR00FF00;

DRAWTEXT(ST,90,'卖'),COLOR00FF00;

DIFF:(EMA(DCLOSE,12)-EMA(DCLOSE,26))*10;

DEA:EMA(DIFF,9),COLORFFFF00;

A11:=BARSLAST(REF(CROSS(DIFF,DEA),1));

底背离:=REF(CLOSE,A11+1)>CLOSE AND DIFF>REF(DIFF,A11+1) AND CROSS(DIFF,DEA);



DRAWTEXT(底背离,-6,'底背离'),COLORWHITE;

A22:=BARSLAST(REF(CROSS(DEA,DIFF),1));

顶背离:=REF(CLOSE,A22+1)<CLOSE AND REF(DIFF,A22+1)>DIFF AND CROSS(DEA,DIFF);

DRAWTEXT(顶背离,90,'顶背离'),COLORWHITE;

RSV2:=(CLOSE-LLV(LOW,45))/(HHV(HIGH,45)-LLV(LOW,45))*10;

K周:=SMA(RSV2,15,1)*10,COLORWHITE;

D周:=SMA(K周,3,1),COLORYELLOW;

J周:=3*K周-2*D周,COLORRED;

DRAWBAND(J周,RGB(200,0,0),D周,RGB(0,150,150));

DRAWICON(CROSS(K周, D周), D周-1,13);

DRAWICON(CROSS(D周, K周), K周+1,14);



LCC:=REF(CLOSE,1);

RSI:=SMA(MAX(CLOSE-LCC,0),6,1)/SMA(ABS(CLOSE-LCC),6,1)*100;

抓大牛:=CROSS(RSI,11);

DRAWTEXT(抓大牛,5.9,'抓牛'),COLORBLUE;

8.18,COLORRED,LINETHICK2;

GDIF:=(EMA(C,12)-EMA(C,26));

GDEA:=EMA(GDIF,9);

MACD:=2*(GDIF-GDEA);

MJBT:=EXIST((CROSS(GDIF,GDEA) AND GDIF>0) OR CROSS(GDIF,0),5) ;

MVOL5:=MA(V,5);

MVOL10:=MA(V,10);

MVOL20:=MA(V,20);

量托:=MVOL5>=MVOL20 AND CROSS(MVOL10,MVOL20) AND REF(MVOL10,1)<REF(MVOL20,1);

VJBT:=EXIST(CROSS(MVOL5,MVOL10) OR 量托,5);



MA3:=MA(C,3);

MAS5:=MA(C,5);

MA10:=MA(C,10);

MA20:=MA(C,20);

MA60:=MA(C,60);

MA120:=MA(C,120);

TT1:=BARSLAST(REF(LONGCROSS(MA60,MA120,55),1));

JJC:=CROSS(MAS5,MA10) AND TT1<30;

SJBT:=FILTER(MJBT AND JJC AND VJBT,5);

RSV:=(((C-LLV(L,60))/(HHV(H,60)-LLV(L,60)))*100);

SK:SMA(RSV,10,1)/10,COLOR0000FF,LINETHICK1;

SD:SMA(SMA(RSV,10,1),3,1)/10,COLORWHITE,LINETHICK1;

SJ:SMA(SK,10,1)/10,COLORBLUE,LINETHICK2;



IF(SJ>=REF(SJ,1),SJ,DRAWNULL),COLORRED,LINETHICK3;

穿1:=CROSS(SD,SJ)>REF(CROSS(SD,SJ),1),LINETHICK0;

DRAWTEXT(穿1,36,'牛启'),COLORWHITE;

穿:=CROSS(SK,SD)>REF(CROSS(SD,SJ),1),LINETHICK0;

DRAWTEXT(穿,58,'牛显'),COLORYELLOW;

STICKLINE(SK>SD,SK,SD,5,0),COLORRED;

STICKLINE(SK<SD,SK,SD,5,0),COLORGREEN;

{进入异动区}

VAR7:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;

VAR8:=EMA(VAR7,30);

VAR9:=EMA(VAR8,30);

VAR10:=3*VAR8-2*VAR9;

势:=EMA(VAR10,5);



DRAWTEXT(CROSS(10,势),48,'异'),COLORBLUE;

DRAWTEXT(CROSS(10,势),38,'动'),COLORBLUE;

N:=24;

AN:=MA(C,N);

A:=REF(C,4)>REF(C,3);

A1:=REF(C,3)>REF(C,2);

A2:=REF(C,2)>REF(C,1);

A3:=A AND A1 AND A2;

A4:=C/REF(C,1)>1.065;

A5:=BARSLAST(A4);

A6:= A5>6 AND C>REF(C,1)*1.03 ;



B:=EMA(MAX(C-REF(C,1),0),5)/EMA(ABS(C-REF(C,1)),5)*100;

B1:=EMA(MAX(C-REF(C,1),0),8)/EMA(ABS(C-REF(C,1)),8)*100;

B2:=REF(C,3)>REF(C,2) AND REF(C,2)>REF(C,1) AND REF(C,4)>REF(C,3);

B3:=CROSS(B,20) AND (CROSS(B,B1) );

XGG:= A3 AND A6 AND B3 ;

D1:=L<AN;

D2:=C>AN;

D3:=C/REF(C,1)<AN;

D4:=CROSS(C,AN) AND V/REF(MA(V,5),1)>1.016;

XG1:= D3 AND D4 AND D1 AND D2 ;

超牛:=XG1 AND XGG;

DRAWTEXT(超牛,58,'牛股启动'),COLORWHITE;



VARR2:=(((CLOSE - REF(CLOSE,1)) / REF(CLOSE,1))*100);

VARR3:=(((CLOSE - LLV(LOW,18)) / (HHV(HIGH,18) - LLV(LOW,18)))*100);

VARR4:=SMA(VARR3,9,1);

VARR5:=SMA(VARR4,3,1);

主力线:=((3 * VARR4) - (2 * VARR5)),LINETHICK1,COLORBLUE;

散户线:=EMA(VARR4,3),COLORFFFFFF,LINETHICK1;

穿2:=CROSS(主力线,散户线)>REF(CROSS(主力线,散户线),1),LINETHICK1;

SJTJ:=DATE<1590301;

MAH:=(H*18+REF(H,1)*17+REF(H,2)*16+REF(H,3)*15+REF(H,4)*14+REF(H,5)*13+REF(H,6)*12+REF(H,7)*11+REF(H,8)*10+REF(H,9)*9+REF(H,10)*8+REF(H,11)*7+REF(H,12)*6+REF(H,13)*5+REF(H,14)*4+REF(H,15)*3+REF(H,16)*2+REF(H,17)*1)/171;



MAL:=(L*18+REF(L,1)*17+REF(L,2)*16+REF(L,3)*15+REF(L,4)*14+REF(L,5)*13+REF(L,6)*12+REF(L,7)*11+REF(L,8)*10+REF(L,9)*9+REF(L,10)*8+REF(L,11)*7+REF(L,12)*6+REF(L,13)*5+REF(L,14)*4+REF(L,15)*3+REF(L,16)*2+REF(L,17)*1)/171;

FA1:=ABS(((3.48*CLOSE+HIGH+LOW)/4-EMA(CLOSE,23))/EMA(CLOSE,23));

FA2:=DMA(((2.15*CLOSE+LOW+HIGH)/4),FA1);

金线王:=EMA(FA2,200)*1.118;

金线王2:=EMA(FA2,200)*1.118;

条件:=(C-REF(C,1))/REF(C,1)*100>8;

金K线:=CROSS(C,金线王) AND 条件;

黑马启动:金K线*10;



AA:=LLV(LOW,34);

BB:=HHV(HIGH,30);

DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);

谷:=(((DD-LLV(DD,21))/(HHV(DD,21)-LLV(DD,21)))*(4))*(25);

GUP1:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;

GUP2:=SMA(GUP1,3,1);

GUP3:=SMA(GUP2,3,1);

GUP4:=SMA(GUP3,3,1);

波:=GUP3,COLORWHITE;

段:=GUP4,COLORYELLOW;



GUP7:=CROSS(GUP4,GUP3) AND GUP3>80;

STICKLINE(FILTER(GUP7,5)=1,0,90,1,0),COLORGREEN ;

DRAWTEXT(FILTER(GUP7,5)=1,70,'卖'),LINETHICK1,COLORFFCC66;

趋势: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),LINETHICK1,COLORBLUE;

GUP8:=CROSS(GUP2,GUP3) AND GUP3>80 AND GUP3>GUP4;

GUP9:=CROSS(趋势,GUP2) AND 趋势<20 AND 趋势<段;



分批卖出:STICKLINE(GUP8,50,90,1,0),COLOR008360,LINETHICK3;

分批买入:STICKLINE(GUP9,40,0,1,0),COLOR000080,LINETHICK3;

90,COLORGREEN ;

0,COLORYELLOW ;

GUP01:=EMA((CLOSE-LLV(LOW,25))/(HHV(HIGH,25)-LLV(LOW,25))*100,5);

GUP02:=(HHV(HIGH,25)-LLV(LOW,25))/EMA((CLOSE-LLV(LOW,25)),5);

GUP03:=CROSS(GUP02,GUP01);

GUP04:=REF(GUP02,2)<REF(GUP02,1) AND GUP02<REF(GUP02,1);

GUP05:=COUNT(GUP03,7)>0 AND GUP04;

GUP06:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);



GUP07:=SMA(ABS(LOW-GUP06),13,1)/SMA(MAX(LOW-GUP06,0),10,1);

GUP08:=EMA(GUP07,10);

GUP09:=EMA(C,5);

GUP10:=LLV(LOW,33);

GUP11:=EMA(IF(LOW<=GUP10,GUP09,0),3)*40;

GUP12:=IF(GUP11>100,GUP11*0.312,GUP11);

资金入场:GUP02,COLORRED;

GUB1:=REF(LOW,1);

GUB2:=SMA(ABS(LOW-GUB1),13,1)/SMA(MAX(LOW-GUB1,0),13,1)*4;

GUB3:=EMA(GUB2,13);

GUB4:=LLV(LOW,34);



GUB5:=EMA(IF(LOW<=GUB4,GUB3,0),3);

GUB6:=100-3*SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((CLOSE-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

GUB7:=100-3*SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1)+2*SMA(SMA((OPEN-LLV(LOW,75))/(HHV(HIGH,75)-LLV(LOW,75))*100,20,1),15,1);

GUB8:=GUB6<REF(GUB7,1) AND VOL>REF(VOL,1) AND CLOSE>REF(CLOSE,1);

散户:STICKLINE(GUB5>REF(GUB5,1),0,GUB5,0.5,0),COLORGREEN,LINETHICK1;

STICKLINE(GUB8 AND COUNT(GUB8,30)=1,0,18,0.5,0),COLORBLUE,LINETHICK3;

STICKLINE(GUB8 AND COUNT(GUB8,30)=1,18,36,0.5,0),COLORFF7700,LINETHICK3;

STICKLINE(GUB8 AND COUNT(GUB8,30)=1,36,60,1,0),COLORYELLOW;

DRAWTEXT(GUB8 AND COUNT(GUB8,30)=1,90,'主力进场★'),COLORYELLOW;

RE:=MA(100*(CLOSE-LLV(CLOSE,34))/(HHV(HIGH,34)-LLV(LOW,34)),5)-20;

R12:=(HIGH+LOW+CLOSE)/3;



R13:=(R12-MA(R12,14))/(0.015*AVEDEV(R12,14));

R14:=(R12-MA(R12,70))/(0.015*AVEDEV(R12,70));

R15:=IF(R13>=150 AND R13<200 AND R14>=150 AND R14<200,10,0);

R16:=IF(R13<=-150 AND R13>-200 AND R14<=-150 AND R14>-200,-10,R15);

R17:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*100;

R18:=100-ABS(R17);

R19:=IF(R18<90,R18,100);

R1A:=IF(RE>0,RE,0);

R1B:=IF(R14>=200 AND R13>=150,15,IF(R14<=-200 AND R13<=-150,-15,R16))+60;

R1C:=R1A>48 AND R1B>60 AND R19<100;

DRAWTEXT(R1C AND COUNT(R1C,25)=1,80,'分批出货'),LINETHICK1,COLORFFCC66;

STICKLINE(R1C AND COUNT(R1C,25)=1,90,60,0.5,0),COLORFFCC66;

GUP3AA:=IF((CLOSE>REF(CLOSE,1)),88,0);

GUP4AA:=IF(((CLOSE)/(REF(CLOSE,1))>1.05) AND ((HIGH)/(CLOSE)<1.01) AND (GUP3AA>0),91,0);



金牛:=(FILTER((GUP4AA>90),45)),COLORYELLOW;

STICKLINE(金牛,150,0,4,0),COLOR000099;

STICKLINE(金牛,150,0,2,0),COLOR0000BB;

STICKLINE(金牛,150,0,1,0),COLOR0000DD;

STICKLINE(金牛,150,0,0.9,0),COLOR0000FF;

DRAWTEXT(金牛>0,130,'金牛起爆'),COLOR00C5FF;

DRAWTEXT_FIX(1,0,100,0,'★金牛起爆后市看涨'),COLORYELLOW;


未来函数检测结果如下:
该公式包含未来函数:DCLOSE
解密、编写股票、期货策略请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图