大智慧二指金叉指标公式

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

DIF:(EMA(CLOSE,12)-EMA(CLOSE,26))*100,color0000ff,LINETHICK3;
DEA:EMA(DIF,9),Colorffffff,LINETHICK3;
MACD:(DIF-DEA)*2,COLORSTICK;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:SMA(RSV,3,1),COLORYELLOW;
D:SMA(K,3,1),COLORffff00;
J:3*K-2*D,COLORMAGENTA;
{partline(j,j>=ref(j,1),rgb(255,0,0),j<ref(j,1),rgb(0,255,0)),linethick1;}
M周金叉:IF(CROSS("macd.diff#WEEK","macd.dea#WEEK"),-50,0),color0000ff,LINETHICK2;
DRAWTEXT(M周金叉,-45,' MACD周金叉'),color0000ff;
M周死叉:IF(CROSS("macd.dea#WEEK","macd.diff#WEEK"),-50,0),color00ff00,LINETHICK2;
DRAWTEXT(M周死叉,-45,' MACD周死叉'),color00ff00;
M月金叉:IF(CROSS("macd.diff#MONTH","macd.dea#MONTH"),-60,0),Color00ffff,LINETHICK2;
DRAWTEXT(M月金叉,-55,' MACD月金叉'),color00ffff;
M月死叉:IF(CROSS("macd.dea#MONTH","macd.diff#MONTH"),-60,0),Colorff6600,LINETHICK2;
DRAWTEXT(M月死叉,-55,' MACD月死叉'),colorff6600;
DRAWTEXTABS(5,5,'股旁网 www.gupang.com'),linethick1,COLOR00EEff;
K周金叉:IF(CROSS("KDJ.K#week","KDJ.D#week"),50,0),color0000ff,LINETHICK2;
DRAWTEXT(K周金叉,50,' KDJ周金叉'),color0000ff;
K周死叉:IF(CROSS("KDJ.D#week","KDJ.K#week"),50,0),color00ff00,LINETHICK2;
DRAWTEXT(K周死叉,50,' KDJ周死叉'),color00ff00;
K月金叉:IF(CROSS("KDJ.K#MONTH","KDJ.D#MONTH"),60,0),Color00ffff,LINETHICK2;
DRAWTEXT(K月金叉,60,' KDJ月金叉'),color00ffff;
K月死叉:IF(CROSS("KDJ.D#MONTH","KDJ.K#MONTH"),60,0),Colorff6600,LINETHICK2;
DRAWTEXT(K月死叉,60,' KDJ月死叉'),colorff6600;

202108211250.jpg

202108211250.jpg

 

回复

使用道具 举报

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

本版积分规则