通达信牛金追涨指标公式,通达信量变资金趋势指标公式
admin888
|通达信牛金追涨指标公式,通达信量变资金趋势指标公式
通达信牛金追涨指标公式
VAR1:=EMA(CLOSE,17) - EMA(CLOSE,34);
动力线:=SUM(VAR1-REF(VAR1,1),5)*100;
动力1:=EMA(动力线,5),COLORRED;
动力2:=EMA(动力线,10),COLORYELLOW;
动力3:=EMA(动力线,17),COLORBLUE;
动力:=IF(动力线>0 AND 动力线>REF(动力线,1),动力线,0);
动力线HX:=IF(动力线>0 AND 动力线<=REF(动力线,1),动力线,0);
动力线LS:=IF(动力线<0 AND 动力线>REF(动力线,1),动力线,0);
DRAWBAND(动力3,RGB(60,10,0),动力2,RGB(60,10,0));
DRAWBAND(动力3,RGB(6,30,40),动力2,RGB(6,30,40));
DRAWBAND(动力1,RGB(255,0,255),动力2,RGB(0,255,0));
DRAWBAND(动力1,RGB(255,10,0),动力2,RGB(0,255,10));
{趋势}
N:=2;M:=3;
趋势线:=SMA(EMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,3),7,1)-(13),LINETHICK2,COLORF0F000;
判断:=(SMA(((C+L)/2-LLV(L,21))/(HHV((H+C)/2,21)-LLV(L,21))*100,2,1)-8);
强势:判断>趋势线,COLORRED,NODRAW;
强1:stICKLINE(强势,32,35,4,2),COLORRED;
强2:STICKLINE(强势,-32,-35,4,2),COLORRED;
弱势:判断<趋势线,COLORLIGREEN,NODRAW;
弱1:STICKLINE(弱势,32,35,4,2),COLORLIGREEN;
弱2:STICKLINE(弱势,-32,-35,4,2),COLORLIGREEN;
{底A}
VAR22:=REF(CLOSE,1);
VAR23:=SMA(MAX(CLOSE-VAR22,0),7,1)/SMA(Abs(CLOSE-VAR22),7,1)*100;
VAR24:=SMA(MAX(CLOSE-VAR22,0),13,1)/SMA(ABS(CLOSE-VAR22),13,1)*100;
VAR25:=BArslAST(VAR24<23)<=3 ANDcrOSS(VAR23,VAR24);
VAR26:=(CLOSE-MA(CLOSE,23))/MA(CLOSE,20)*100<-12.5;
VAR27:=LLV(LOW,5);
VAR28:=HHV(HIGH,10);
VAR29:=EMA((CLOSE-VAR27)/(VAR28-VAR27)*100,4);
VAR2A:=EMA(0.667*REF(VAR29,1)+0.333*VAR29,2);
底A:0-(-1)*VAR25 AND VAR26 AND CROSS(VAR29,VAR2A) AND VAR29<=25,COLORMAGENTA,NODRAW;
STICKLINE(底A>0,-24,-32,8,0),COLORMAGENTA;
{底B}
VAR2:=1;
VAR3:=REF(HIGH,1)*1.1;
VAR4:=HIGH*1.1;
VAR5:=(VAR4*vol+VAR3*(CAPITAL-VOL))/CAPITAL;
VAR6:=REF(LOW,1)*0.9;
VAR7:=LOW*0.9;
VAR8:=(VAR7*VOL+VAR6*(CAPITAL-VOL))/CAPITAL;
VAR9:=EMA(VAR8,30);
VARA:=EMA(VAR5,30);
VARB:=VARA-2;
VARC:=IF(CLOSE<=VAR9,VARB,VARA);
VARD:=MA(CLOSE,80)-MA(CLOSE,10)/17;
底B:(VARC-VARB=0 AND VAR2 AND CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M))),COLORRED,NODRAW;
底1:STICKLINE(VARC-VARB=0 AND VAR2 AND CROSS((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,MA((EMA(EMA(EMA(CLOSE,N),N),N)-REF(EMA(EMA(EMA(CLOSE,N),N),N),1))/REF(EMA(EMA(EMA(CLOSE,N),N),N),1)*100,M)),-24,-32,5,0),COLORRED;
{顶}
顶部:CROSS(83,rsi),COLORGREEN;
顶1:STICKLINE(顶部,24,32,6,0),COLOR00FF00;
{投资A}
AA:=(MA(C,1)+MA(C,3)+MA(C,5)+MA(C,7)+MA(C,9))/5;
BB:=(MA(C,2)+MA(C,4)+MA(C,6)+MA(C,8)+MA(C,10))/5;
CC:=EMA(AA,2);
DD:=EMA(BB,5);
TJ0:=CROSS(CC,DD);
上:=EMA(C,3);
中:=EMA(C,5);
下:=EMA(中,5);
TJ1:=CROSS(上,中);
TJ2:=上>REF(上,1);
X1:=(C+L+H)/3;
BB5:=ATAN(EMA(X1,5)-REF(EMA(X1,5),1))*3.1416*10;
EMA3:=EMA(C,3);
TJ3:=BB5>1 AND EMA(X1,5)>REF(EMA(X1,3),1);
投A:TJ1 AND TJ2 AND TJ0 AND TJ3,COLOR0099EE,NODRAW;
STICKLINE(TJ1 AND TJ2 AND TJ0 AND TJ3,-24,-32,6,0),COLOR0066BB;
STICKLINE(TJ1 AND TJ2 AND TJ0 AND TJ3,-24,-32,3,0),COLOR0077CC;
STICKLINE(TJ1 AND TJ2 AND TJ0 AND TJ3,-24,-32,1,0),COLOR0088DD;
{投B}
VAR11:=EMA(HHV(HIGH,500),21);
VAR12:=EMA(HHV(HIGH,250),21);
VAR13:=EMA(HHV(HIGH,90),21);
VAR14:=EMA(LLV(LOW,500),21);
VAR15:=EMA(LLV(LOW,250),21);
VAR16:=EMA(LLV(LOW,90),21);
VAR17:=EMA((VAR14*0.96+VAR15*0.96+VAR16*0.96+VAR11*0.558+VAR12*0.558+VAR13*0.558)/6,21);
VAR18:=EMA((VAR14*1.25+VAR15*1.23+VAR16*1.2+VAR11*0.55+VAR12*0.55+VAR13*0.65)/6,21);
VAR19:=EMA((VAR14*1.3+VAR15*1.3+VAR16*1.3+VAR11*0.68+VAR12*0.68+VAR13*0.68)/6,21);
VARA1:=EMA((VAR17*3+VAR18*2+VAR19)/6*1.738,21);
VARB1:=REF(LOW,1);
VARC1:=SMA(ABS(LOW-VARB1),3,1)/SMA(MAX(LOW-VARB1,0),3,1)*100;
VARD1:=EMA(IF(CLOSE*1.35<=VARA1,VARC1*10,VARC1/10),3);
VARE1:=LLV(LOW,30);
VARF1:=HHV(VARD1,30);
VAR20:=IF(MA(CLOSE,58),1,0);
投资1:=EMA(IF(LOW<=VARE1,(VARD1+VARF1*2)/2,0),3)/618*VAR20;
投B:(REF(投资1,2)REF(投资1,1))*投资1,COLOR0033CC,NODRAW;
投资2:STICKLINE(投B,24,32,3,0),COLOR0033CC;
{投资C}
低:=REF(LLV(L,90),3);
低点:=REFDATE(低,DATE);
投C:低点=L AND ((C-L)>(O-C) OR (O-L)>(C-O)),COLORYELLOW,NODRAW;
STICKLINE(投C,24,32,1.5,0),COLORYELLOW;
{投机}
投机1:=100*(C-LLV(L,5))/(HHV(C,5)-LLV(L,5)),COLOR0080FF,NODRAW;
投机2:=100*(C-LLV(L,30))/(HHV(C,30)-LLV(L,30)),COLOR0080FF,NODRAW;
投机:CROSS(投机1,投机2),COLOR0080FF,NODRAW;
STICKLINE(CROSS(投机1,投机2),24,32,0.5,1),COLOR0080FF;
{持股}
B1:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100- 70;
B2:=SMA(B1,9,1)+100;
B3:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
B4:=SMA(B3,3,1);
B5:=SMA(B4,3,1)+100;
B6:=B5-B2;
{www.gUPaNg.com 股旁网_最新股票指标公式}
持股:IF(B6>60,B6-60,0),COLORLIMAGENTA,NODRAW;
持1:STICKLINE(REF(持股,1)<持股,24,22,4,0),COLORLIMAGENTA;
持2:STICKLINE(REF(持股,1)<持股,-24,-22,4,0),COLORLIMAGENTA;
{持币}
B8:=(HHV(H,9)-C)/(HHV(H,9)-LLV(LOW,9))*100-70;
B9:=SMA(B8,9,1)+100;
B10:=(C-LLV(L,9))/(HHV(H,9)- LLV(L,9))*100;
B11:=SMA(B10,3,1);
B12:=SMA(B11,3,1)+100;
B13:=B12-B9;
持币:IF(B13<60,B13-60,0),COLORLICYAN,NODRAW;
持3:STICKLINE(REF(持币,1)>持币,24,22,4,0),COLORLICYAN;
持4:STICKLINE(REF(持币,1)>持币,-24,-22,4,0),COLORLICYAN;
{追涨}
HHJSJDA:=(3*CLOSE+OPEN+LOW+HIGH)/6;
HHJSJDB:=(20*HHJSJDA+19*REF(HHJSJDA,1)+18*REF(HHJSJDA,2)+17*REF(HHJSJDA,3)+16*REF(HHJSJDA,4)+15*REF(HHJSJDA,5)+14*REF(HHJSJDA,6)
+13*REF(HHJSJDA,7)+12*REF(HHJSJDA,8)+11*REF(HHJSJDA,9)+10*REF(HHJSJDA,10)+9*REF(HHJSJDA,11)+8*REF(HHJSJDA,12)
+7*REF(HHJSJDA,13)+6*REF(HHJSJDA,14)+5*REF(HHJSJDA,15)+4*REF(HHJSJDA,16)+3*REF(HHJSJDA,17)+2*REF(HHJSJDA,18)+
REF(HHJSJDA,20))/210;
HHJSJDC:=MA(HHJSJDB,5);
QQ1:=MA(MA(CLOSE,3),3);
QQ2:=MA(MA(CLOSE,15),9);
XYSQS1:=(QQ1-REF(QQ1,1))/REF(QQ1,1)*10;
XYSQS2:=(QQ2-REF(QQ2,1))/REF(QQ2,1)*10;
XYSHSL:=EMA(VOL/CAPITAL*100,13);
STICKLINE(XYSQS2>=REF(XYSQS2,1)AND XYSHSL>1,-4,4,3,0),COLORYELLOW;
STICKLINE(XYSQS2>=REF(XYSQS2,1)AND XYSHSL>1 AND C>HHJSJDB AND HHJSJDB>HHJSJDC,-2,2,3,0),COLORBLUE;
追涨:IF(XYSQS2>=REF(XYSQS2,1) AND XYSHSL>1,XYSQS1*178,0),COLORMAGENTA,LINETHICK2;
{底部}
TYP := (HIGH + LOW + CLOSE)/3;
cci:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
A:=REF(C,1);
RSI:=SMA(MAX(C-A,0),6,1)/SMA(ABS(C-A),6,1)*100;
A1:=(C/MA(C,5)-1)*100<-10;
A2:=(C/MA(C,13)-1)*100<-10;
A3:=(C/MA(C,34)-1)*100<-15;
A4:=RSI<18;
A5:=CCI<-120;
A6:=COUNT(ABS(C/REF(C,1)-1)*100>=6,30)>=1;
底部:=A1 AND A2 AND A3 AND A4 AND A5 AND A6;
STICKLINE(底部,-24,-32,3,0),COLORWHITE;
通达信量变资金趋势指标公式
{量变}
VAR1:=EMA(HHV(HIGH,500),21);
VAR2:=EMA(HHV(HIGH,250),21);
VAR3:=EMA(HHV(HIGH,90),21);
VAR4:=EMA(LLV(LOW,500),21);
VAR5:=EMA(LLV(LOW,250),21);
VAR6:=EMA(LLV(LOW,90),21);
VAR7:=EMA((VAR4*0.96+VAR5*0.96+VAR6*0.96+VAR1*0.558+VAR2*0.558+VAR3*0.558)/6,21);
VAR8:=EMA((VAR4*1.25+VAR5*1.23+VAR6*1.2+VAR1*0.55+VAR2*0.55+VAR3*0.65)/6,21);
VAR9:=EMA((VAR4*1.3+VAR5*1.3+VAR6*1.3+VAR1*0.68+VAR2*0.68+VAR3*0.68)/6,21);
VARA:=EMA((VAR7*3+VAR8*2+VAR9)/6*1.738,21);
VARB:=REF(LOW,1);
VARC:=SMA(Abs(LOW-VARB),3,1)/SMA(MAX(LOW-VARB,0),3,1)*100;
VARD:=EMA(IF(CLOSE*1.35<=VARA,VARC*10,VARC/10),3);
VARE:=LLV(LOW,30);
VARF:=HHV(VARD,30);
VAR10:=IF(MA(CLOSE,58),1,0);
量变1:= EMA(IF(LOW<=VARE,(VARD+VARF*2)/2,0),3)/618*VAR10;
量变2:stICKLINE(量变1>0,0,量变1,4,1);
量变: 量变1;
STICKLINE(量变1>0,0,量变*1.2,8,0) COLOR0000FF;
STICKLINE(量变1>0,0,量变*0.8,8,0) COLOR0066FF;
STICKLINE(量变1>0,0,量变*0.6,8,0) COLOR0099FF;
STICKLINE(量变1>0,0,量变*0.4,8,0) COLOR00CCFF;
STICKLINE(量变1>0,0,量变*0.2,8,0) COLOR00FFFF;
{大单动向}
ddx:=(LARGEINTRDvol-LARGEOUTTRDVOL)*10000/FINANCE(7);
DDX1:=EMA(DDX,60)*60;
DDX2:=MA(DDX1,5);
DDX3:=MA(DDX1,10);
{追击反转}
AA1:=FILTER(LOW=LLV(LOW,13),8);
AA2:=IF(LLV(LOW,3)=LLV(LOW,13) AND CLOSE
AA3:=EMA(AA2,3)*50;
AA4:=SUMBARS(AA3>0,21);
AA5:=SUM(AA3,AA4)/21;
ISUP:=IF(C>0,1,0);
AA6:=REF(AA3,1)=HHV(AA3,3) AND REF(AA3,1)>AA5*3 AND COUNT(CLOSE/REF(CLOSE,1)
<0.9025,8)=0 AND ISUP AND LLV(LOW,3)/HHV(HIGH,18)<0.88;
AA7:=(COUNT(DDX>0,5)>0 OR NOT(DDX1
AND COUNT(DDX>REF(DDX,1),10)>=4;
反转:=FILTER(AA6 AND AA7,5);
追突:IF( CLOSE,AA3,0),COLOR0099EE,NODRAW;
追转:IF( 反转,AA3,0),COLORRED,NODRAW;
{深黄}
STICKLINE( CLOSE,0,AA3,2.8,0),COLOR0066BB;
STICKLINE( CLOSE,0,AA3,2.5,0),COLOR0077CC;
STICKLINE( CLOSE,0,AA3,1.5,0),COLOR0088DD;
STICKLINE( CLOSE,0,AA3,0.5,0),COLOR0099EE;
{深红}
STICKLINE( 反转,0, AA3,3,0),COLOR0000CC;
STICKLINE( 反转,0, AA3,2.5,0),COLOR0000DD;
STICKLINE( 反转,0, AA3,1.5,0),COLOR0000EE;
STICKLINE( 反转,0, AA3,0.5,0),COLOR0000FF;
{主力出场}
VAR11:=REF((LOW+OPEN+CLOSE+HIGH)/4,1);
VAR12:=SMA(ABS(LOW-VAR11),13,1)/SMA(MAX(LOW-VAR11,0),10,1);
VAR13:=EMA(VAR12,10);
VAR14:=HHV(H,33);
VAR15:=EMA(IF(H>=VAR14,VAR13,0),3);
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,3,0 ),COLOR005500;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,2.6,0 ),COLOR007700;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,2.1,0 ),COLOR009900;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,1.5,0 ),COLOR00BB00;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,0.9,0 ),COLOR00DD00;
STICKLINE(VAR15>REF(VAR15,1),0,VAR15,0.3,0 ),COLOR00FF00;
{资金进出}
ZLCM:=EMA(WINNER(CLOSE)*70,3);
SHCM:=EMA((WINNER(CLOSE*1.1)-WINNER(CLOSE*0.9))*80,3);
ZZLKP:=ZLCM/(ZLCM+SHCM)*100;
ZZLJJ:=EMA(ZZLKP,89);
ZJLRQD:=ZZLKP-ZZLJJ;
AA:=EMA(ZJLRQD,3);
BB:=EMA(AA,5);
资金进场:IF(crOSS(AA,BB),3,0),STICK,LINETHICK3,COLORMAGENTA;
STICKLINE(资金进场,15,0,0.8,1),COLORMAGENTA;
资金出场:IF(CROSS(BB,AA),3,0),STICK,LINETHICK3,COLORCYAN;
STICKLINE(资金出场,15,0,0.8,1),COLORCYAN;
{资金累计}
MYD:=MIN(LARGEINTRDVOL,60);
资金:=(LARGEINTRDVOL-LARGEOUTTRDVOL)*VOL/CAPITAL;
累计资金:=EMA(资金,MYD)*MYD;
主力资金:=EMA(累计资金,10);
累计主资:CROSS(累计资金,主力资金),COLORBLUE,NODRAW;
DRAWTEXT(累计主资,15,'★'),COLORBLUE,LINETHICK3;
{主力潜伏}
DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
macd:=2*(DIFF-DEA);
主力潜伏:COUNT(MacD<0,10)=10,COLORLIMAGENTA,NODRAW;
STICKLINE(主力潜伏,0,MACD*15,8,0),COLORLIMAGENTA;
N:=14;
M:=156;
TYP:=(HIGH+LOW+CLOSE)/3;
cci:(TYP-MA(TYP,N))/(0.15*AVEDEV(TYP,N)),COLORWHITE,NODRAW;
-10,COLOR1C1C1C;
-10,STICK,COLOR1C1C1C;
5,COLOR1C1C1C;
5,STICK,COLOR1C1C1C;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。