通达信二六分界主图指标公式,通达信量比MACD指标公式
admin888
|通达信二六分界主图指标公式,通达信量比MACD指标公式
通达信二六分界主图指标公式
{高低点}高:=REF(HHV(H,80),3);
低:=REF(LLV(L,80),3);
顶点:REFDATE(高,DATE),DOTLINE,LINETHICK2,COLORRED;
低点:REFDATE(低,DATE),DOTLINE,LINETHICK2,COLORBLUE;
DRAWTEXT(ISLAstBAR,顶点,'顶点'),COLORRED;
DRAWTEXT(ISLASTBAR,低点,'低点'),COLORBLUE;
{上穿均线}MA5:=MA(C,5);
MA20:MA(C,20);
MA60:MA(C,60),COLORFF00FF,LINETHICK2;
DRAWICON(crOSS(MA5,MA20),L*0.98,1);
DRAWICON(CROSS(MA60,C),H*1.05,2);
IF(C>MA20,MA20,DRAWNULL),COLORYELLOW,LINETHICK2;
IF(C
{全线开花部分}{macd部分}DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
MacD1:=(DIF-DEA)*2;
{kdj部分}RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
{dmi部分}MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,Abs(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),14);
HD :=HIGH-REF(HIGH,1);
LD :=REF(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),14);
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),14);
pdi:=DMP*100/MTR;
mdi:=DMM*100/MTR;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,6);
ADXR:=EXPMEMA(ADX,6);
{DMI部分}roc:=100*(CLOSE-REF(CLOSE,12))/REF(CLOSE,12);
MAROC:=MA(ROC,6);
AA:=ROC>MAROC AND PDI>ADXR AND PDI>ADX AND PDI>MDI AND K>D AND DIF>DEA AND C>REF(C,1) AND REF(H,1)>REF(C,2);
STICKLINE(AA,C,O,2,0),COLORYELLOW;
DRAWTEXT(AA AND CROSS(MA5,MA20),L*0.9,'开花'),COLORRED;
通达信量比MACD指标公式
{量比配合部分}LB:=V/(REF(V,15)/5),DOTLINE;
MA120:=MA(LB,120)/10;
DIF:EMA(LB,30)-EMA(LB,60);
DEA:EMA(DIF,15);
MALB:(DIF-DEA)*2,COLORstICK;
STICKLINE(MALB>=MA120 AND C>REF(C,1),0,MALB,1,0),COLORYELLOW;
STICKLINE(crOSS(MALB,MA120) AND C>REF(C,1),0,MALB,1,0),COLORMAGENTA;
DRAWTEXT(CROSS(MALB,MA120) AND C>REF(C,1),-0.00005,'关注'),COLORMAGENTA;
{换手部分}HS:=HSL;
HS5:=MA(HS,5);
HS60:=MA(HS,60);
DRAWTEXT(CROSS(HS5,HS60) AND C>REF(C,1),MALB*-0.0005,'异!');
{高低换手}DRAWBAND(HS5,RGB(200,0,0),HS60,RGB(0,200,0));
牛市通网是一个牛股推荐网与低风险投资知识网,可以在线联系客服领取牛股。牛市通网从权威的投资专家、金融分析师等投资信息中挑选优质的文章进行发布。牛市通网主要为投资者提供股票知识、股票观点、股票分析和明智金融投资讨论等信息。