同花順自用經(jīng)典MACD指標(biāo)公式
基本概況:
- 指標(biāo)類別: 同花順指標(biāo)
- 授權(quán)方式: 免費(fèi)版
- 指標(biāo)評(píng)級(jí): ★★★★★
- 指標(biāo)語(yǔ)言: 簡(jiǎn)體中文
- 指標(biāo)來(lái)源: 互聯(lián)網(wǎng)
- 指標(biāo)日期: 2017-08-24 00:00:00
內(nèi)容介紹:
同花順自用經(jīng)典MACD指標(biāo)公式DRAWGBKLAST(C>0,STRIP(RGB(145,145,185),RGB(140,140,180),1));
N1:=10; N2:=22; M:=7.5;
DIF:(EMA(C,N1)-EMA(C,N2))/(1+EMA(ABS(C),512))*7.5,COLOR0000FF;
DEA:EMA(DIF,M),COLOR09FFFF;
MACD:=2*(DIF-DEA),COLORSTICK;
PARTLINE(DIF,DIF>=REF(DIF,1),RGB(250,0,0),DIF<REF(DIF,1),RGB(0,0,250)),linethick1;
均衡:SMA(DIF,4,2),Color00FF00,LINETHICK1;
隨行:IF(MACD< 0,MACD,0),ColorFFFFFF,LINETHICK1;
D2:=MACD;
STICKLINE(D2<REF(D2,1)AND D2>0,0,D2,5,0),Color979700;
STICKLINE(D2<REF(D2,1)AND D2>0,0,D2,4,0),ColorB5B500;
STICKLINE(D2<REF(D2,1)AND D2>0,0,D2,3,0),ColorD2D200;//蘭
STICKLINE(D2<REF(D2,1)AND D2<0,0,D2,5,0),Color974B00;
STICKLINE(D2<REF(D2,1)AND D2<0,0,D2,4,0),ColorB55A00;
STICKLINE(D2<REF(D2,1)AND D2<0,0,D2,3,0),ColorD26900;//藍(lán)
STICKLINE(D2>REF(D2,1)AND D2,0,D2,5,0),Color97004B;
STICKLINE(D2>REF(D2,1)AND D2,0,D2,4,0),ColorB5005A;
STICKLINE(D2>REF(D2,1)AND D2,0,D2,3,0),ColorD20069;//紫
STICKLINE(D2>REF(D2,1)AND D2>0,0,D2,5,0),Color970097;
STICKLINE(D2>REF(D2,1)AND D2>0,0,D2,4,0),ColorB500B5;
STICKLINE(D2>REF(D2,1)AND D2>0,0,D2,3,0),ColorD200D2;//粉
VAR1:=(EMA(C,N1)-REF(EMA(C,N1),1))/REF(EMA(C,N1),1);
VAR2:=(EMA(C,N2)-REF(EMA(C,N2),1))/REF(EMA(C,N2),1);
STICKLINE(VAR1>=VAR2 AND VAR2>0 AND C>EMA(C,N2),0,MACD,5,1),COLOR000066;
STICKLINE(VAR1>=VAR2 AND VAR2>0 AND C>EMA(C,N2),0,MACD,4,1),COLOR000077;
STICKLINE(VAR1>=VAR2 AND VAR2>0 AND C>EMA(C,N2),0,MACD,3,1),COLOR000099;
A:=MACD>0;
綠柱數(shù):=BARSLAST(A)=5;
STICKLINE(綠柱數(shù)>REF(D2,1)AND 綠柱數(shù)>=0,0,D2,5,0),COLOR00AA00;
STICKLINE(綠柱數(shù)>REF(D2,1)AND 綠柱數(shù)>=0,0,D2,4,0),COLOR00CC00;
STICKLINE(綠柱數(shù)>REF(D2,1)AND 綠柱數(shù)>=0,0,D2,3,0),COLOR00EE00;//綠柱
OSC:=100*(CLOSE-MA(CLOSE,11.5));
MAOSC:=EMA(OSC,4.5);
STICKLINE(MACD<REF(MACD,1)AND CROSS(MAOSC,OSC),0,MACD,5,0),COLORFF0000;
STICKLINE(MACD>REF(MACD,1)AND CROSS(OSC,MAOSC),0,MACD,5,0),COLOR09FFFF;
同花順自用經(jīng)典MACD指標(biāo)公式: 更新時(shí)間:2017-8-24 14:44
- ·中泰化學(xué)業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比略低于預(yù)期
- ·敏芯股份業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比減少674.39%
- ·百潤(rùn)股份業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比增長(zhǎng)104.7%
- ·陶瓷行業(yè)股票2023業(yè)績(jī)分析:陶瓷基板發(fā)展迅速,精密陶瓷零部件有望加速國(guó)產(chǎn)化
- ·天奧電子業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比增長(zhǎng)10.37%
- ·香飄飄業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比增長(zhǎng)110%