同花順量?jī)r(jià)MACD指標(biāo)公式
- 指標(biāo)類(lèi)別: 同花順指標(biāo)公式
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評(píng)級(jí): ★★★★★
- 指標(biāo)分類(lèi): 趨勢(shì)
- 畫(huà)線(xiàn)方法: 副圖
- 日期:2023-01-11 來(lái)源:互聯(lián)網(wǎng)
同花順量?jī)r(jià)MACD指標(biāo)公式:
AA:=SMA((CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*10,3,1);
DIFf:=(EMA(CLOSE,9)-EMA(CLOSE,21))*2;
趨勢(shì):EMA(DIFF,9),coloryellow,LINETHICK1;
FILLRGN(DIFF,趨勢(shì),DIFF>趨勢(shì),(RGB(200,100,100)));
MACD:=(DIFF-趨勢(shì))*2;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,8,0 ),COLOR333300;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,7,0 ),COLOR444400;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,6,0 ),COLOR555500;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,5,0 ),COLOR777700;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,4,0 ),COLOR999900;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,3,0 ),COLORBBBB00;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,2,0 ),COLORDDDD00;
STICKLINE(MACD<REF(MACD,1)AND MACD>0,0,MACD,1,0 ),COLORFFFF00;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,8 ,0 ),COLOR000033;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,7 ,0 ),COLOR000044;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,6 ,0 ),COLOR000055;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,5 ,0 ),COLOR000077;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,4 ,0 ),COLOR000099;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,3 ,0 ),COLOR0000BB;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,2 ,0 ),COLOR0000DD;
STICKLINE(MACD>=REF(MACD,1)AND MACD>0,0,MACD,1 ,0 ),COLOR0000FF;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,8,0 ),COLOR330033;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,7,0 ),COLOR440044;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,6,0 ),COLOR550055;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,5,0 ),COLOR770077;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLOR990099;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLORBB00BB;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLORDD00DD;
STICKLINE(MACD>REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLORFF00FF;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,8,0 ),COLOR003300;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,7,0 ),COLOR004400;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,6,0 ),COLOR005500;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,5,0 ),COLOR007700;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,4,0 ),COLOR009900;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,3,0 ),COLOR00BB00;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,2,0 ),COLOR00DD00;
STICKLINE(MACD<=REF(MACD,1)AND MACD<0,0,MACD,1,0 ),COLOR00FF00;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主買(mǎi):=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主賣(mài):=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));
ZJ:=(主買(mǎi)+主賣(mài));
YX:=BARSSINCE(ZJ)+1;
QM:=BARSLAST(ZJ<=0);
主買(mǎi):=IF(QM<0,YX,QM);
QM:=BARSLAST(ZJ>=0);
主賣(mài):=IF(QM<0,YX,QM);
動(dòng)力:=(主買(mǎi)-主賣(mài));
強(qiáng)買(mǎi):=(EMA(主買(mǎi),12)-EMA(主買(mǎi),26));
強(qiáng)賣(mài):=(EMA(主賣(mài),12)-EMA(主賣(mài),26));
買(mǎi)方能量:=EMA(強(qiáng)買(mǎi),9);
賣(mài)方能量:=EMA(強(qiáng)賣(mài),9);
能量:=(買(mǎi)方能量-賣(mài)方能量);
量?jī)r(jià)線(xiàn):((EMA(CLOSE,9)-EMA(CLOSE,21))*2+AA+能量/2)/2;
PARTLINE(量?jī)r(jià)線(xiàn),量?jī)r(jià)線(xiàn)>=REF(量?jī)r(jià)線(xiàn),1),RGB(255,0,0),量?jī)r(jià)線(xiàn)<REF(量?jī)r(jià)線(xiàn),1),RGB(0,0,255)),LINETHICK2;
零軸:0,colorgray;
gj:=MAX(C,O);
L4:=LLV(gj,4);
jl:=(HHV(diff,55)-LLV(diff,55))/5;
gt:=趨勢(shì)>REF(趨勢(shì),1) AND REF(趨勢(shì),1)<REF(趨勢(shì),2);
A1:=BARSLAST(REF(gt,1));
底背離:=REF(L4,A1+1)>CLOSE AND diff>REF(diff,A1+1) AND gt;
DRAWLINE(A1=0,趨勢(shì),底背離,REF(趨勢(shì),A1),0),colorred,LINETHICK2;
DRAWLINE(底背離,趨勢(shì),底背離,REF(趨勢(shì),A1),0),colorred,LINETHICK2;
DRAWTEXT(底背離,REF(趨勢(shì),A1),' 底背離'),COLORFF00FF;
H4:=HHV(gj,4);
gt2:=趨勢(shì)<REF(趨勢(shì),1) AND REF(趨勢(shì),1)>REF(趨勢(shì),2);
A2:=BARSLAST(REF(gt2,1));
頂背離:= REF(H4,A2+1)<H4 AND diff<REF(diff,A2+1) AND gt2;
DRAWLINE(A2=0 ,趨勢(shì),頂背離,REF(趨勢(shì),A2),0),colorgreen,LINETHICK2;
DRAWLINE(頂背離,趨勢(shì),頂背離,REF(趨勢(shì),A2),0),colorgreen,LINETHICK2;
DRAWTEXT(頂背離,REF(趨勢(shì),A2),' 頂背離'),colorgreen;
DRAWICON(CROSS(DIFF,趨勢(shì)),趨勢(shì),"BUY");
同花順量?jī)r(jià)MACD指標(biāo)公式實(shí)例圖解:
同花順量?jī)r(jià)MACD指標(biāo)公式
- ·通達(dá)信改進(jìn)了的MACD指標(biāo)公式
- ·通達(dá)信MACD主圖指標(biāo)公式
- ·通達(dá)信MACD三背離指標(biāo)公式
- ·通達(dá)信變色MACD指標(biāo)公式
- ·通達(dá)信MACD金叉與背離指標(biāo)公式
- ·通達(dá)信改編MACD指標(biāo)公式
- ·通達(dá)信很好的MACD+KDJ指標(biāo)公式
- ·通達(dá)信齋主MACD通道主圖指標(biāo)公式
- ·通達(dá)信MACD控盤(pán)主圖指標(biāo)公式
- ·通達(dá)信金牌MACD指標(biāo)公式
- ·通達(dá)信機(jī)構(gòu)MACD指標(biāo)公式
- ·通達(dá)信MACD箭頭指標(biāo)公式