通達(dá)信統(tǒng)一MACD指標(biāo)公式
- 指標(biāo)類別: 通達(dá)信指標(biāo)公式
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評級: ★★★★★
- 指標(biāo)分類: 趨勢
- 畫線方法: 副圖
- 日期:2021-09-02 來源:互聯(lián)網(wǎng)
通達(dá)信統(tǒng)一MACD指標(biāo)公式:
SH:=12;LO:=26;M:=9;
DA:=IF(DATE<1070531,1,0);
DJ:=MINUTE-REF(MINUTE,1);
SJ1:=HHV(HOUR-REF(HOUR,1),5);
SJ2:=LLV(HOUR-REF(HOUR,1),5);
KJ:=IF(DJ=5 OR DJ=-55 OR DJ=-25 OR DJ=35,5,
IF(DJ=-15 OR DJ=-45 OR DJ=15 OR DJ=45,15,
IF(LLV(DJ,80)=0 AND SJ1=0,240,
IF((DJ=0 OR DJ=-30 OR DJ=30) AND SJ1<3 AND SJ2<=0,30,
IF(LLV(DJ,3)=1 OR HHV(DJ,3)=1,1,60)))));
DIF:(EMA(CLOSE,SH)-EMA(CLOSE,LO))/EMA(CLOSE,LO)*1000,COLORGREEN;
DEA:EMA(DIF,M);
MACD:(DIF-DEA)*2,COLORSTICK;
JB:=(LO-SH)*KJ/(14*240);
BD:=(MACD-LLV(REF(MACD,1),2))/ABS(REF(DIF,1))/2;
該期增減:IF(BD>10,10,IF(BD<-10,-10,BD)),LINETHICK0;
L1:IF(DA=1 AND DIF>0,PLOYLINE(DIF>0,DIF),DRAWNULL),COLORWHITE;
L2:IF(DA=1 AND DIF>10*JB,PLOYLINE(DIF>10*JB,DIF),DRAWNULL),COLORRED;
L3:IF(DA=1 AND DIF>50*JB,PLOYLINE(DIF>50*JB,DIF),DRAWNULL),COLORMAGENTA;
MD:=MAX(MAX(DIF,DEA),MACD);
MX:=MIN(MIN(DIF,DEA),MACD);
MDC:=HHV(MD,50);
MXC:=LLV(MX,50);
DX:=MDC-MXC;
YS:=IF(DIF>50*JB,'強(qiáng)得發(fā)紫',
IF(DIF>10*JB AND DIF<50*JB,'多頭區(qū)',
IF(DIF>0 AND DIF<10*JB,'多頭觀望',
IF(DIF<0,'空頭區(qū)',DRAWNULL))));
DRAWTEXT(DA=1 AND CURRBARSCOUNT=1 AND DIF>50*JB,MXC+0.6*DX,YS),COLORMAGENTA;
DRAWTEXT(DA=1 AND CURRBARSCOUNT=1 AND DIF>10*JB AND DIF<50*JB,MXC+0.6*DX,YS),COLORRED;
DRAWTEXT(DA=1 AND CURRBARSCOUNT=1 AND DIF>0 AND DIF<10*JB,MXC+0.6*DX,YS),COLORWHITE;
DRAWTEXT(DA=1 AND CURRBARSCOUNT=1 AND DIF<0,MXC+0.6*DX,YS),COLORGREEN;
DRAWTEXT(DA=1 AND DIF>0 AND DIF>DEA AND CURRBARSCOUNT=1,MXC+0.5*DX,'上升通道持續(xù)(參數(shù)③周期)');
DRAWTEXT(DA=1 AND DIF>0 AND DIF<DEA AND CURRBARSCOUNT=1,MXC+0.5*DX,'上升通道趨緩(參數(shù)③周期)');
DRAWTEXT(DA=1 AND DIF<0 AND DIF>DEA AND CURRBARSCOUNT=1,MXC+0.5*DX,'下降通道趨緩(參數(shù)③周期)');
DRAWTEXT(CURRBARSCOUNT=1,MXC+0.8*DX,'MACD龐輝V2.0大眾版請閱用法注釋'),COLORMAGENTA;
DRAWTEXT(CURRBARSCOUNT=1,MXC+0.4*DX,'SHOP34328852.TAOBAO.COM'),COLORMAGENTA;
{DRAWTEXT(CURRBARSCOUNT=1 AND MACD>=LLV(REF(MACD,1),2),MXC+0.6*DX,
' 增強(qiáng)'),COLORRED;
DRAWTEXT(CURRBARSCOUNT=1 AND MACD<LLV(REF(MACD,1),2),MXC+0.6*DX,
' 減弱'),COLORGREEN;};
通達(dá)信統(tǒng)一MACD指標(biāo)公式實(shí)例圖解:
通達(dá)信統(tǒng)一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控盤主圖指標(biāo)公式
- ·通達(dá)信金牌MACD指標(biāo)公式
- ·通達(dá)信機(jī)構(gòu)MACD指標(biāo)公式
- ·通達(dá)信MACD箭頭指標(biāo)公式