通达信MACD变形指标公式,通达信MACD绝代双娇指标公式
admin888
|通达信MACD变形指标公式,通达信MACD绝代双娇指标公式
通达信MACD变形指标公式
maV:=(2*C+H+L)/4;
VAR1:=LLV(LOW,21);
VAR2:=HHV(HIGH,21);
SK:=ema((MAV-VAR1)/(VAR2-VAR1)*200-100,8);
SD:=EMA(0.667*REF(SK,1)+0.333*SK,1);
SJ:=3*SK-2*SD;
SJ1:=(SJ<-60)*5-105;
SJ2:=IF(SJ1,0,5)-105;
SJ3:=(SJ<+60)*5+100;
SJ4:=105-IF(SJ3,0,5);
RSV:=(CLOSE-LLV(LOW,5))/(HHV(HIGH,5)-LLV(LOW,5))*200-100;
K:=SMA(RSV,3,1);
D:=SMA(K,2,1);
J1:=3*K-2*D;
J2:=MA(J1,2);
dif0:=(EMA(CLOSE,12)-EMA(CLOSE,26))*100;
HHD:=HHV(DIF0,99);
LLD:=LLV(DIF0,99);
MMD:=(HHD-LLD)/2;
MMD0:=CONst(ISLASTBAR*MMD);
DIF1:=DIF0/MMD0*100;
DEA1:=EMA(DIF1,9);
macd1:=(DIF1-DEA1)*2;
HHI:=HHV(DIF1,99);
LLI:=LLV(DIF1,99);
HHM:=HHV(MacD1,99);
LLM:=LLV(MACD1,99);
HH:=CONST(ISLASTBAR*MAX(+105,MAX(HHI,HHM)));
LL:=CONST(ISLASTBAR*MIN(-105,MIN(LLI,LLM)));
DRAWBAND( HH,RGB(20,20,70), SK,RGB(00,00,00));
DRAWBAND( LL,RGB(00,00,00), SK,RGB(70,20,20));
{DRAWBAND( SD,RGB(70,40,40), SK,RGB(40,40,60));}
DRAWBAND(SJ1,RGB(90,40,40),SJ2,RGB(00,00,00));
DRAWBAND(SJ4,RGB(40,40,99),SJ3,RGB(00,00,00));
DRAWBAND( J1,RGB(00,150,00), J2,RGB(00,00,250));
STICKLINE(crOSS(SK,SD),LL,LL+5,0,0),COLORLIGRAY;
STICKLINE(CROSS(SD,SK),HH,HH-5,0,0),COLORLIGRAY;
DIF:DIF1;
DEA:DEA1;
MACD:MACD1,COLORSTICK;
通达信MACD绝代双娇指标公式
SQX:=(C-ma(CLOSE,13))*100;
dif:ema(MA(SQX,7),1),LINETHICK1;
DEA:EMA(DIF,7),LINETHICK1;
macd: (DIF-DEA)*2,COLORstICK;
红柱持股:IF(MacD>REF(MACD,1),MACD,DRAWNULL),STICK,COLORRED,LINETHICK1;
低位金叉:IF(crOSS(DIF,DEA) AND DIF<-0.1,0.3,0),COLORYELLOW,POINTDOT;
STICKLINE(低位金叉,0,10,8,1),COLORYELLOW;
DRAWICON(低位金叉,0.3,1);
JCCOUNT:=COUNT(CROSS(DIF,DEA),BArslAST(DEA>=0));
二次金叉:IF(CROSS(DIF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,21)=1,0.2,0),COLORFF00FF,POINTDOT;
STICKLINE(二次金叉,25,15,8,1),COLORFF00FF;
A1:=BARSLAST(REF(CROSS(DIF,DEA),1));
底背离:IF(REF(CLOSE,A1+1)>CLOSE AND DIF>REF(DIF,A1+1) AND CROSS(DIF,DEA),0.1,0),COLORRED,POINTDOT;
STICKLINE(底背
DRAWLINE(A1=0,DEA,底背离,DEA,0),COLORRED;
A2:=BARSLAST(REF(CROSS(DEA,DIF),1));
顶背离:REF(CLOSE,A2+1)
DRAWLINE(A2=0,DEA,顶背离,DEA,0),COLORGREEN;
A3:=CROSS(DIF,DEA) AND DEA<0;
零下二次金叉:IF(FILTER(COUNT(A3,21)=2,10),0.05,0),COLORWHITE,POINTDOT;
STICKLINE(零下二次金叉,45,55,8,1),COLORWHITE;
金叉:DRAWICON(CROSS(DIF,DEA),DIF,1);
死叉:DRAWICON(CROSS(DEA,DIF),DIF,2);
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。