大智慧自用MACD指标公式,通达信紫金葫芦指标公式
admin888
|大智慧自用MACD指标公式,通达信紫金葫芦指标公式
大智慧自用MACD指标公式
input:p(12,1,100),s(26,1,100),m(9,1,50),N(0,0,1);
周MACD:="MACD.MACD#WEEK";
STICKLINE(周MACD>=0 AND DATATYPE=8,0,周MACD,11,0),Color000055;
STICKLINE(周MACD<0 AND DATATYPE=8,0,周MACD,11,0),Color515100;
DIFF:(EMA(CLOSE,P) - EMA(CLOSE,S)),LINETHICK1;
DEA :EMA(DIFF,M),Color1AFFFF,LINETHICK1,LAYER0;
macd:(diff-dea)*2,COLORRED,LINETHICK0;
PARTLINE(DIFF,DIFF>=REF(DIFF,1),RGB(200,0,200),DIFF
STICKLINE(macd>0 and macd>=REF(macd,1),macd,0,4,0),Color0000F2;
STICKLINE(macd<0 and macd>=REF(macd,1),macd,0,4,1),Color008000;
ES:=IF(N=0,REF(EMA(C,S),1),EMA(C,S));
EP:=IF(N=0,REF(EMA(C,P),1),EMA(C,P));
DI:=IF(N=0,REF(DIFF,1),DIFF);
零度价:=((P+1)*(S-1)*ES-(S+1)*(P-1)*EP)/(2*(S+1)-2*(P+1));
IF N=0 AND REF(DIFF,1)<0 and barstatus=2 THEN BEGIN DRAWTEXTREL(5,10,'DIFF上穿零度对应的股价:'+NUMTOSTRN(零度价,2)+'元'),COLOR00D0D0;END;
IF N=1 AND DIFF<0 and barstatus=2 THEN BEGIN DRAWTEXTREL(5,10,'DIFF上穿零度对应的股价:'+NUMTOSTRN(零度价,2)+'元'),COLOR00D0D0;END;
DRAWTEXTABS(5,5,'),linethick1,COLOR00EEff;
IF N=0 AND REF(DIFF,1)>0 and barstatus=2 THEN BEGIN DRAWTEXTREL(5,10,'DIFF下穿零度对应的股价:'+NUMTOSTRN(零度价,2)+'元'),COLORD0D0D0;END;
IF N=1 AND DIFF>0 and barstatus=2 THEN BEGIN DRAWTEXTREL(5,10,'DIFF下穿零度对应的股价:'+NUMTOSTRN(零度价,2)+'元'),COLORD0D0D0;END;
拐点价:=((P-1)*EP/(P+1)-(S-1)*ES/(S+1)-DI)*(S+1)*(P+1)/(2*(P+1)-2*(S+1));
IF N=0 AND REF(DIFF,1)>REF(DIFF,2) and barstatus=2 THEN BEGIN DRAWTEXTREL(5,80,'DIFF向下拐点对应的股价:'+NUMTOSTRN(拐点价,2)+'元'),COLORD0D0D0;END;
IF N=1 AND DIFF>REF(DIFF,1) and barstatus=2 THEN BEGIN DRAWTEXTREL(5,80,'DIFF向下拐点对应的股价:'+NUMTOSTRN(拐点价,2)+'元'),COLORD0D0D0;END;
通达信紫金葫芦指标公式
VAR0:=(CLOSE-LLV(LOW,60))/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR3:=SMA(VAR0,3,1);
VAR1:SMA(VAR3,4,1)-10;
VAR4:=(HHV(HIGH,60)-CLOSE)/(HHV(HIGH,60)-LLV(LOW,60))*100;
VAR5:=SMA(VAR4,3,1);
VAR2:=SMA(VAR5,4,1)-90;
STICKLINE(REF(VAR1,1)
0, CIRCLEDOT;
STICKLINE(REF(VAR1,1)>VAR1,VAR1,REF(VAR1,1),5,0),COLOR00FF00;
STICKLINE(REF(VAR2,1)>VAR2,VAR2,REF(VAR2,1),10,0),COLOR0000FF;
STICKLINE(REF(VAR2,1)
0,COLOR0000FF;
M:=IF(REF(VAR1,1)
买:IF(M=10 AND REF(M,1)=0 AND VAR1<10,48,0),,COLORFFFF00,STICK ;
买2:IF(M=10 AND REF(M,1)=0 AND VAR1>10 AND VAR1<55,88,0),,COLORYELLOW,STICK ;
{选股:IF(VAR1>0 AND VAR1-REF(VAR1,1)>=0 AND VAR1<45,8,0),,COLORYELLOW ;}
RSV:=(CLOSE-LLV(LOW,30))/(HHV(HIGH,30)-LLV(LOW,30))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
起动:=EMA(J,6),COLORRED;
{五星级注意:IF(起动>90 AND 起动<=REF(起动,1),-28,0),,COLORFFFF00,STICK ;}
VAR11:=REF(CLOSE,2);
会员专用:=SMA(MAX(CLOSE-VAR11,0),7,1)/SMA(ABS(CLOSE-VAR11),7,1)*100,COLORFFAA66;
VAR12:=REF(CLOSE,1);
VAR13:=SMA(MAX(CLOSE-VAR12,0),7,1)/SMA(ABS(CLOSE-VAR12),7,1)*100;
会员专用逃: IF(会员专用< REF(会员专用,1) AND 会员专用>79,-48,0),STICK,LINETHICK3,COLOR00FF00;
DRAWTEXT(会员专用逃 ,70 ,'逃'),COLORYELLOW,LINETHICK1;
VAR111:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR112:=SMA(VAR11,9,1);
A:=SMA(VAR112,5,1),COLOR00FFFF;
B:=SMA(A,3,1),COLORFF00FF;
F:=(3)*(A)-(2)*(B),COLOR00FF00;
观察区:=IF(F>=A AND A>=B,16,0),COLOR00FF00;
V1:=(C*2+H+L)/4*10;
V2:=EMA(V1,13)-EMA(V1,34);
V3:=EMA(V2,5);
V4:=2*(V2-V3)*5.5;
庄撤:=IF(V4<=0,V4,0);
庄进:=IF(V4>=0,V4,0);
V8:=(INDEXC*2+INDEXH+INDEXL)/4;
V9:=EMA(V8,13)-EMA(V8,34);
VA:=EMA(V9,3);
VB:=(V9-VA)/2;
大筹金进:=IF(VB>=0,VB,0);
观察区1:=IF(庄进>0 ,6,0),COLORFFFF00;
Q2:=(CLOSE-LLV(LOW, 18))/(HHV(HIGH, 18)-LLV(LOW, 18))*100;
Q3:=SMA(Q2, 9, 1);
Q4:=SMA(Q3, 3, 1);
长趋势:=3*Q3-2*Q4;
趋势线:=EMA(Q3, 3);
观察区2:=IF(长趋势>趋势线 ,-8,0),COLORFFFF00;
{综合观察区:IF(观察区=16 AND 观察区1=6 AND 观察区2=-8,16,0);}
VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89);
VAR1E:=EMA(VAR1D,30);
VAR1F:=2*(VAR1D-VAR1E)*10;
VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2);
VAR25:=IF(VAR1F>0.015,VAR20,0)/45;
拉线:=VAR25,COLORYELLOW ;
拉线观察区:IF(拉线>0, 38,0), COLOR00FF00;
拉线买点:IF(拉线>0 AND REF(拉线,1)=0,28,0), COLORFFFF00,STICK ;
注意:IF(REF(拉线,1)>120 AND 拉线<=REF(拉线,1)*0.85,-17,0), COLORRED;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。