通达信每一波都赚钱指标公式,通达信多彩MACD指标公式
admin888
|通达信每一波都赚钱指标公式,通达信多彩MACD指标公式
通达信每一波都赚钱指标公式
RSV:=(CLOSE - LLV(LOW,18))/(HHV(HIGH,18) - LLV(LOW,18))*100;
K:ema(RSV,3);
D:Ema(K,3);
J:=(3*K-2*D);
火山:IF(J<=0,-J*5,0),LINETHICK0;
stICKLINE(J<=0,0,火山,2,0),COLORRED;
kdj1:=REF(COUNT(J=3,1) AND REF(J,1)<20;
kdJ2:=J>REF(J,1);
反转:IF(FILTER(KDJ1 AND KDJ2,3),30,0);
VAR1:=1;
VAR3:=LLV(HIGH,240);
VAR4:=100*(CLOSE-VAR3)/VAR3*VAR1;
VAR5:=REF(LLV(CLOSE,480),1)*VAR1;
VAR6:=REF(HHV(CLOSE,480),1)*VAR1;
VAR7:=100*(CLOSE-VAR5)/(VAR6-VAR5)*VAR1;
VAR8:=(CLOSE-LLV(CLOSE,981))/(HHV(CLOSE,981)-LLV(CLOSE,981))*100*VAR1;
VAR9:=(CLOSE-LLV(CLOSE,393))/(HHV(CLOSE,393)-LLV(CLOSE,393))*100*VAR1;
VARA:=(CLOSE-LLV(LOW,981))/(HHV(HIGH,981)-LLV(LOW,981))*100*VAR1;
VARB:=(CLOSE-LLV(LOW,393))/(HHV(HIGH,393)-LLV(LOW,393))*100*VAR1;
VARC:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5)/4*VAR1;
VARD:=IF(VARC>23.16,VARC,0)*VAR1;
VARE:=VARC<1*VAR1;
VARF:=VARD*VAR1;
VAR10:=VAR4<0 AND VAR7<0;
VAR11:=1;
VAR12:=(HIGH+LOW+CLOSE*2)/4*VAR11;
VAR13:=EMA(VAR12,21);
VAR14:=STD(VAR12,21);
VAR15:=((VAR12-VAR13)/VAR14*100+200)/4*VAR11;
VAR16:=(EMA(VAR15,89)-25)*1.56*VAR11;
VAR17:=EMA(VAR16,5)*1.22*VAR11;
VAR18:=EMA(VAR17,3)*VAR11;
VAR19:=3*VAR17-2*VAR18*VAR11;
VAR1A:=IF(crOSS(VAR19,VAR17) AND CROSS(VAR19,VAR18) AND CROSS(VAR17,VAR18),1,0);
VAR1B:=IF(CROSS(VAR17,VAR19) AND CROSS(VAR18,VAR19) AND CROSS(VAR18,VAR17),1,0);
买点: IF(FILTER(VAR8=0 AND VARE AND VAR10 AND VAR1A,5)=1,50,0);
卖点: IF(FILTER(VAR8=100 AND VARF AND VAR1B,5)=1,50,0);
VAR1C:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),13)/4*VAR1;
VAR1D:=EMA(CLOSE,2)-EMA(CLOSE,89)*VAR1;
VAR1E:=EMA(VAR1D,30)*VAR1;
VAR1F:=2*(VAR1D-VAR1E)*10*VAR1;
VAR20:=POW(VAR1F,3)*0.1+POW(VAR1F,2)*VAR1;
VAR21:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR22:=EMA(VAR21*0.97,3)*VAR1;
VAR23:=(HIGH+LOW+CLOSE)/3*VAR1;
VAR24:=(VAR23-MA(VAR23,14))/(0.015*AVEDEV(VAR23,14))*VAR1;
VAR25:=IF(VAR1F>0.015,VAR20,0)/45*VAR1;
拉升资金: VAR25,COLOR0099FF;
VAR26:=EMA(CLOSE,2)-EMA(CLOSE,150);
VAR27:=EMA(VAR26,100);
VAR28:=2*(VAR26-VAR27);
VAR29:=POW(VAR28,3)*0.1+POW(VAR28,1);
VAR2A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));
VAR2B:=EMA(VAR2A*0.97,3);
VAR2C:=(HIGH+LOW+CLOSE)/3;
VAR2D:=(VAR2C-MA(VAR2C,14))/(0.015*AVEDEV(VAR2C,14));
主力资金: IF(VAR28>0.1,VAR29,0)*5,COLORRED;
通达信多彩MACD指标公式
dif:ema(CLOSE,12)-Ema(CLOSE,26),NODRAW;
DEA:EMA(DIF,9),NODRAW;
macd:(DIF-DEA)*2,COLORstICK,COLORRED;
{以下是COPY的,来源于理想论坛}ES:=REF(EMA(C,26),1);
EP:=REF(EMA(C,12),1);
DI:=REF(DIF,1);
DIF穿零价:((12+1)*(26-1)*ES-(26+1)*(12-1)*EP)/(2*(26+1)-2*(12+1)),NODRAW,COLORWHITE;
DIF拐点价:((12-1)*EP/(12+1)-(26-1)*ES/(26+1)-DI)*(26+1)*(12+1)/(2*(12+1)-2*(26+1)),COLORYELLOW,NODRAW;
{以下是自己的}TJ1:=DEA<0 ANDcrOSS(DIF,DEA);
{零下金叉}TJ2:=BArslAST(CROSS(0,DIF));
{下跌起点到现在的周期数}TJ3:=DEA<0 AND COUNT(TJ1,TJ2+1)>1;
{从下跌起点算起,零下金叉两次以上}TJ4:=DEA<0 AND MacD>0 AND REF(MACD,1)>0 AND REF(MACD,1)REF(MACD,1);
{零下且MACD为正时,DIF,DEA收敛后发散}TJ5:=BARSLAST(TJ1);
{上一次零下金叉到现在的周期数}TJ6:=DEA<0 AND TJ3 AND COUNT(TJ4,TJ5+1)>0,NODRAW;
{零下两次金叉后发生至少一次收敛后发散}TJ7:=DEA<0 AND COUNT(TJ6,TJ2)>0,NODRAW;
{满足条件6的周期}TJ8:=DEA<0 AND COUNT(TJ1,TJ2+1)>2;
{从下跌起点算起,零下金叉三次以上}TJ9:=DEA<0 AND COUNT(TJ8,TJ2)>0,NODRAW;
{满足条件8的周期}TJ10:=TJ7 AND DIF>0 AND DIF>REF(DIF,1) AND DEA<0;
{条件6信号加强}TJ11:=TJ9 AND DIF>0 AND DIF>REF(DIF,1) AND DEA<0;
{条件8信号加强}TJ12:=DIF>0 AND DEA>0 AND REF(MACD,1) AND REF(MACD,2)<0 AND MACD>REF(MACD,1) AND REF(MACD,1)
{零上且DIF,DEA反向收敛}STJ1:=DIF>0 AND MACD>0 AND REF(MACD,1)>0 AND REF(MACD,1)>REF(MACD,2) AND MACD
{零上MACD为正时,DIF,DEA发生收敛}STJ2:=BARSLAST(CROSS(DIF,0)),NODRAW;
{上涨起点到现在的周期数}STJ3:=BARSLAST(CROSS(DIF,DEA));
{上一次金叉以来到现在的周期数}STJ4:=DIF>0 AND COUNT(STJ1,STJ2)>1 AND COUNT(STJ1,STJ3)>1 AND STJ1;
{从上涨起点算起,发生零上收敛两次以上}STJ5:=DIF>0 AND COUNT(STJ1,STJ2)>2 AND COUNT(STJ1,STJ3)>2 AND STJ1;
{从上涨起点算起,发生零上收敛三次以上}STJ6:=DIF>0 AND COUNT(STJ1,STJ2)>3 AND COUNT(STJ1,STJ3)>3 AND STJ1;
{从上涨起点算起,发生零上收敛四次以上}STJ7:=DIF>0 AND COUNT(STJ1,STJ2)<2 AND CROSS(DEA,DIF);
{从上涨起点算起,零上收敛一次即出现死叉}STJ8:=COUNT(CROSS(DIF,DEA),STJ2)>0 AND STJ1;
{零上金叉后出现零上收敛}STJ9:=DIF>0 AND REF(CROSS(DIF,DEA),1) AND CROSS(DEA,DIF);
{零上金叉后随即死叉}STJ10:=COUNT(DIF>0 AND (STJ4 OR STJ7 OR STJ8 OR STJ9),STJ2);
STJ11:=DIF>0 AND MACD<0 AND REF(MACD,2)<0 AND MACDREF(MACD,2);
{零上二次向下发散}减仓提示:STJ10,NODRAW,COLORGREEN;
清仓提示:STJ10>4,NODRAW,COLORMAGENTA;
STICKLINE(DEA<0 AND MACD<0,0,MACD,2,0),COLORBLUE;
STICKLINE(DEA<0 AND MACD>=0,0,MACD,1,-1),COLORBLUE;
STICKLINE(DEA<0 AND MACD>=0 AND MACD
STICKLINE(DEA>=0 AND MACD>0,0,MACD,0,1),COLORLIRED;
STICKLINE(DEA>=0 AND MACD>0 AND MACD
STICKLINE(DEA>=0 AND MACD<0 AND MACD>REF(MACD,1),0,MACD,0,-1),COLORLIRED;
STICKLINE(TJ7 AND MACD>0,0,MACD,2,1),COLORYELLOW;
STICKLINE(TJ7 AND MACD>0 AND MACD
STICKLINE(TJ7 AND MACD<0,0,MACD,2,0),COLORGREEN;
STICKLINE(TJ7 AND MACD<0 AND MACD>REF(MACD,1),0,MACD,2,1),COLORGREEN;
STICKLINE(TJ9 AND MACD>0,0,MACD,2,0),COLORYELLOW;
STICKLINE(TJ9 AND MACD>0 AND MACD
STICKLINE(TJ9 AND MACD<0,0,MACD,2,1),COLORGREEN;
STICKLINE(TJ9 AND MACD<0 AND MACD>REF(MACD,1),0,MACD,2,-1),COLORGREEN;
STICKLINE(TJ10,0,MACD,2,1),COLORRED;
STICKLINE(TJ11,0,MACD,2,0),COLORRED;
STICKLINE(TJ12,0,DIF,0,-1),COLORRED;
STICKLINE(STJ4,0,MACD,2,-1),COLORGREEN;
DRAWICON(STJ4,DIF*1.03,2);
STICKLINE(STJ5,0,MACD,2,1),COLORGREEN;
DRAWICON(STJ5,DIF*1.03,2);
STICKLINE(STJ6,0,MACD,2,0),COLORGREEN;
DRAWICON(STJ6,DIF*1.03,2);
STICKLINE(STJ7,0,MACD,2,0),COLORGREEN;
DRAWICON(STJ7,DEA*1.03,2);
STICKLINE(STJ8,0,MACD,2,0),COLORBLUE;
DRAWICON(STJ8,DIF*1.03,2);
STICKLINE(STJ9,0,MACD,2,0),COLORBLUE;
DRAWICON(STJ9,DEA*1.03,2);
DRAWTEXT(STJ10>4 AND (STJ4 OR STJ7 OR STJ8 OR STJ9),DIF*1.1,'逃'),COLORMAGENTA;
STICKLINE(STJ11,0,DIF,0,-1),COLORBLUE;
J1:="MACD.DIF"(12,26,9);
J2:="MACD.DEA"(12,26,9);
J3:="kdj.K"(15,6,3);
J4:="kdJ.D"(15,6,3);
J5:="rsi.RSI1"(6,12,24);
J6:="RSI.RSI2"(6,12,24);
A1:=BARSLAST(REF(CROSS(J1,J2),1));
B1:=REF(C,A1+1)>C AND REF(J1,A1+1)
A2:=BARSLAST(REF(CROSS(J3,J4),1));
B2:=REF(C,A2+1)>C AND REF(J3,A2+1)
A3:=BARSLAST(REF(CROSS(J5,J6),1));
B3:=REF(C,A3+1)>C AND REF(J5,A3+1)
C1:=BARSLAST(REF(CROSS(J2,J1),1));
D1:=REF(C,C1+1)
C2:=BARSLAST(REF(CROSS(J4,J3),1));
D2:=REF(C,C2+1)
C3:=BARSLAST(REF(CROSS(J6,J5),1));
D3:=REF(C,C3+1)
MACD底背离:=FILTER(B1>0,5);
DRAWTEXT(MACD底背离,REF(J1,A1+1),'M底'),COLORYELLOW;
KDJ底背离:=FILTER(B2>0,5);
DRAWTEXT(KDJ底背离,REF(J1,A1+2),'K底'),COLORWHITE;
RSI底背离:=FILTER(B3>0,5);
DRAWTEXT(RSI底背离,REF(J1,A1+3),'R底'),COLORFFCC66;
MACD顶背离:=FILTER(D1>0,5);
DRAWTEXT(MACD顶背离,REF(J1,D1+1),'M顶'),COLOR0066FF;
KDJ顶背离:=FILTER(D2>0,5);
DRAWTEXT(KDJ顶背离,REF(J1,D1+2),'K顶'),COLOR0000FF;
RSI顶背离:=FILTER(D3>0,5);
DRAWTEXT(RSI顶背离,REF(J1,D1+3),'R顶'),COLORFF00FF;
DIF,COLORDDDD00;
DEA,COLORYELLOW;
IF(DIF>=REF(DIF,1),DIF,DRAWNULL),COLORFF00FF;
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。