大智慧MACD三金叉+KDJ金叉指标公式

[复制链接]
查看123 | 回复0 | 2021-8-21 13:48:51 | 显示全部楼层 |阅读模式

MA1:=MA(CLOSE,5);
MA2:=MA(CLOSE,10);
MA3:=MA(VOL,5);
MA4:=MA(VOL,10);
{MACD}
DIFF:=EMA(CLOSE,12) - EMA(CLOSE,26);
DEA:=EMA(DIFF,9);
MACD:=2*(DIFF-DEA);
三金叉:IF((cross(MA1,MA2) and cross(MA3,MA4) and cross(DIFF,DEA)),5,0);
{www.gUPaNg.com 股旁网_最新股票指标公式}
DRAWTEXT(三金叉,5,'均线量均线MACD三金叉'),colorYellow;
{KDJ}
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;
KDJ:IF(CROSS(J,K) ,5,0),COLORRED;
DRAWTEXT(KDJ,6,'KDJ金叉'),LINETHICK1,COLORRED;

202108211237.jpg

202108211237.jpg

 

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则