同花顺MACD量能指标公式

c1线上穿c3线且出现深红色柱子买入参考,c1线下穿c3线且出现蓝柱子减仓或清仓参考。

配合大盘,均线,成交量与其它指标使用。


TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;

CI:(TYP-MA(TYP,30))/(0.015*AVEDEV(TYP,30));

C2:MA(CI,4);

C3:MA(CI,10),linethick2;;

FILLRGN(CI,C2,CI>C2,RGB(0,255,0,),CI<C2,colorgreen);

FILLRGN(CI,C3,CI>C3,RGB(255,0,0,),CI<C3,colorgreen);

LC := REF(CLOSE,1);

DI:=(EMA(CLOSE,12) - EMA(CLOSE,26))*200;

DE:=EMA(DI,9);

MACD:=2*(DI-DE);

RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*400-200;

STICKLINE(MACD>0 AND MACD>REF(MACD,1),MACD,0,8,0),COLOR0000AA;

STICKLINE(MACD>0 AND MACD<REF(MACD,1),MACD,0,8,0),COLOR0090FF;

STICKLINE(MACD<0 AND MACD<REF(MACD,1),MACD,0,8,0),COLORFF0000;

STICKLINE(MACD<0 AND MACD>REF(MACD,1),MACD,0,8,0),COLORFF00A9;

diff:=EMA(C,12)-EMA(C,26);

dea:=EMA(diff,9);

第一红柱:CROSS(diff,dea),colorred,LINETHICK2;

VAR1:=SMA(AMOUNT/10,10,1)/10000;

VAR2:=REF(VAR1,1);

VAR1=HHV(VAR1,20);

多转空:=((((LLV(MACD,4)>0) AND (MACD<REF(MACD,1))) AND (REF(MACD,1)>REF(MACD,2))) AND (REF(MACD,2)>REF(MACD,3)));

空转多:=((((HHV(MACD,4)<0) AND (MACD>REF(MACD,1))) AND (REF(MACD,1)<REF(MACD,2))) AND (REF(MACD,2)<REF(MACD,3)));

DRAWICON(多转空,MACD,2);

DRAWICON(空转多,MACD,1);

DIF3:=EMA(CLOSE,12)-EMA(CLOSE,26);

DEA3:=EMA(DIF3,9);

MACD3 := 2*(DIF3-DEA3);

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;

止跌:MACD3>REF(MACD3,1) AND REF(MACD3,2)>=REF(MACD3,1)  AND J<50 AND  C>REF(C,1) AND C>O AND J>REF(J,1);

 




来函数检测结果如下:
该公式没有未来函数

解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式

联系我们  |  股票指标网  |  指标网   |  指标公式  |   加入收藏   |  设为主页

@2005-2023 粤ICP备2023063687号-2 股票指标网别名指标网仅为互联网文章,所有股票指标公式及文章仅供学习研究,并不构成投资建议,请勿以此为依据进行股票交易,由此引起的投资亏损与本站无关。股票指标网均来源互联网收集整理,如不慎侵犯了你的权益,请联系我们告知,我们将做删除处理
QQ:88652583 微信 88652583
sitemap站点地图