通達(dá)信分鐘MACD分時(shí)指標(biāo)公式
基本概況:
- 指標(biāo)類(lèi)別: 通達(dá)信指標(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)日期: 2019-02-28 00:00:00
內(nèi)容介紹:
通達(dá)信分鐘MACD分時(shí)指標(biāo)公式
SHORT:=12;
LONG:=26;
MID:=9;
MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(CLOSE,20);
MA4:=MA(CLOSE,60);
MA30:=EMA(CLOSE,30);
強(qiáng)弱:=EMA(CLOSE,900);
{STICKLINE((MA30>強(qiáng)弱),MA30,強(qiáng)弱,0,-1),COLORLIGRAY;
STICKLINE((MA30<強(qiáng)弱),MA30,強(qiáng)弱,0,-1),COLORLICYAN;}
DIF:EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
DEA:EMA(DIF,MID);
MACD:(DIF-DEA)*2,COLORSTICK;
DIF1:=EMA(CLOSE,8)-EMA(CLOSE,18),COLORYELLOW;
DEA1:=EMA(DIF1,8),COLORWHITE;
五大:=IF (MA(C,5)>MA(C,10) AND MA(C,5)>REF(MA(C,5),1) AND C>MA(C,5),MA
(C,5),DRAWNULL),COLORWHITE,LINETHICK2;
十大:=IF (EVERY(MA(C,10)>MA(C,20),2),MA
(C,10),DRAWNULL),COLORYELLOW,LINETHICK2;
二十大:=IF (EVERY(MA(C,20)>MA(C,60),2),MA
(C,20),DRAWNULL),COLORRED,LINETHICK2;
六十大:=IF (EVERY(MA(C,60)>REF(MA(C,60),1),6),MA
(C,60),DRAWNULL),COLORGREEN,LINETHICK2;
分鐘板底:IF(EVERY(DEA>0 AND DEA>REF(DEA,1) AND
DIF>DEA,5),DEA,DRAWNULL),COLORRED,LINETHICK2;
中期行情:DRAWTEXT(COUNT(CROSS(DIF,0),3) AND CROSS(DEA,0) AND
MACD>REF(MACD,1),-0.01,'中期'),COLOR888888;
穩(wěn)板:DRAWTEXT((({COUNT(中期行情,10) AND }REF(MACD<0,1) AND MACD>0)
OR (REF(EVERY(DEA<REF(DEA,1) AND DEA>DIF AND MACD<0,10),1))
AND CROSS(DIF,DEA)) AND MACD>REF(MACD,1) AND 五大,-
0.01,'WB'),COLORWHITE;
{第一漲停}
ZT:=C/REF(C,1)>1.096;
前次漲停:=BARSLAST(REF(ZT,1));
DRAWTEXT(REF(COUNT(ZT,20)=0,1) AND C/REF(C,1)>1.076{ AND V=HHV
(V,250) AND C<=HHV(C,50)} AND HSL>3
AND C>=MA(O,前次漲停) AND DEA<0 AND C/O>1.056,DEA,'ㄉNO1'),
COLORLIRED;
均線(xiàn)啟動(dòng):=DRAWTEXT((REF((COUNT(CROSS(MA(C,60),MA(C,5)),15)) OR
(EVERY(MA(C,60)<REF(MA(C,60),1),20)
AND MA(C,5)<MA(C,60)),1) AND CROSS(MA(C,5),MA(C,60)) AND C>REF(HHV
(H,10),1))
OR BARSLASTCOUNT(((EVERY(C,20)),MA(C>MA(C,10) AND MA(C,10)>MA
(C,20) AND MA(C,20)>MA(C,60),20)
AND C>REF(HHV(H,20),1)) AND COUNT((C>O OR C>REF(C,1)),10)>7{ AND
EVERY(V>REF(V,1),3)})=1,MA(C,20),'均啟'),COLORLIBLUE;
{金叉啟動(dòng):DRAWTEXT(CROSS(DIF,DEA),DEA,'金叉'),COLORLIRED;}
{123 金叉數(shù)字}
DONCROSS:=IF(CROSS(DIF,DEA) AND DEA>0,1,0); {0上金叉}
DUNDERCROSS:=IF(CROSS(DIF,DEA) AND DIF<0,1,0); {0下金叉}
KONCROSS:=IF(CROSS(DEA,DIF) AND DIF>0,1,0); {0上死叉}
KUNDERCROSS:=IF(CROSS(DEA,DIF) AND DEA<0,1,0); {0下死叉}
A7X:=VAR2STR(COUNT(DUNDERCROSS,BARSLAST(DIF>0)+1),0),NODRAW;
DRAWTEXT(DONCROSS,DEA,VAR2STR(COUNT(DONCROSS,BARSLAST
(DIF<0)+1),0)),CO
- ·中泰化學(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ā)展迅速,精密陶瓷零部件有望加速?lài)?guó)產(chǎn)化
- ·天奧電子業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比增長(zhǎng)10.37%
- ·香飄飄業(yè)績(jī)預(yù)告最新消息:2023第一季度凈利潤(rùn)同比增長(zhǎng)110%
相關(guān)推薦: