强烈推荐 KDJ macd周金叉 周死叉 月金月死 精准把握
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;
DIFW:="MACD.DIF#WEEK";
DEAW:="MACD.DEA#WEEK";
FCA:=FILTER(CROSS(DIFW,DEAW),0);
SCA:=FILTER(CROSS(DEAW,DIFW),0);
M周金叉:IF(CROSS("MACD.DIF#WEEK","MACD.DEA#WEEK"),-50,0),COLOR0000FF,LINETHICK2;
DRAWTEXT(FCA,-45,' MACD周金叉'),COLOR0000FF;
M周死叉:IF(CROSS("MACD.DEA#WEEK","MACD.DIF#WEEK"),-50,0),COLOR00FF00,LINETHICK2;
DRAWTEXT(SCA,-45,' MACD周死叉'),COLOR00FF00;
DIFM:="MACD.DIF#MONTH";
DEAM:="MACD.DEA#MONTH";
FCB:=FILTER(CROSS(DIFM,DEAM),0);
SCB:=FILTER(CROSS(DEAM,DIFM),0);
M月金叉:IF(CROSS("MACD.DIF#MONTH","MACD.DEA#MONTH"),-60,0),COLOR00FFFF,LINETHICK2;
DRAWTEXT(FCB,-55,' MACD月金叉'),COLOR00FFFF;
M月死叉:IF(CROSS("MACD.DEA#MONTH","MACD.DIF#MONTH"),-60,0),COLORFF6600,LINETHICK2;
DRAWTEXT(SCB,-55,' MACD月死叉'),COLORFF6600;
KKW:="KD.K#WEEK",COLORRED;
KDW:="KD.D#WEEK",COLORYELLOW;
KCD:=FILTER(CROSS(KKW,KDW),0);
SCD:=FILTER(CROSS(KDW,KKW),0);
K周金叉:IF(CROSS("KDJ.K#WEEK","KDJ.D#WEEK"),50,0),COLOR0000FF,LINETHICK2;
DRAWTEXT(KCD,50,' KDJ周金叉'),COLOR0000FF;
K周死叉:IF(CROSS("KDJ.D#WEEK","KDJ.K#WEEK"),50,0),COLOR00FF00,LINETHICK2;
DRAWTEXT(SCD,50,' KDJ周死叉'),COLOR00FF00;
KKM:="KDJ.K#MONTH",COLORRED;
KDM:="KDJ.D#MONTH",COLORYELLOW;
KDB:=FILTER(CROSS(KKM,KDM),0);
SDB:=FILTER(CROSS(KDM,KKM),0);
K月金叉:IF(CROSS("KDJ.K#MONTH","KDJ.D#MONTH"),60,0),COLOR00FFFF,LINETHICK2;
DRAWTEXT(KDB,60,' KDJ月金叉'),COLOR00FFFF;
K月死叉:IF(CROSS("KDJ.D#MONTH","KDJ.K#MONTH"),60,0),COLORFF6600,LINETHICK2;
DRAWTEXT(SDB,60,' KDJ月死叉'),COLORFF6600;
未来函数检测结果如下:
该公式包含未来函数:#MONTH
该公式包含未来函数:#WEEK
解密、定制、编写股票指标请联系QQ或微信同号:88652583
相关股票指标公式
原理解析:
RSV赋值:(收盘价-9日内最低价最低值)/(9日内最高价最高值-9日内最低价最低值)*100
RSV的3日[1日权重]移动平均
K的3日[1日权重]移动平均
输出
J:3*K-2*D,画洋红色
DIFW:="MACD.DIF#WEEK"
DEAW:="MACD.DEA#WEEK"
FCA赋值:FILTER(DIFW上穿DEAW,0)
SCA赋值:FILTER(DEAW上穿DIFW,0)
输出
M周金叉:IF("MACD.DIF#WEEK"上穿"MACD.DEA#WEEK",-50,0),COLOR0000FF, 线宽为2
当满足条件FCA时,在-45和' MACD周金叉'位置书写文字
输出
M周死叉:IF("MACD.DEA#WEEK"上穿"MACD.DIF#WEEK",-50,0),COLOR00FF00, 线宽为2
当满足条件SCA时,在-45和' MACD周死叉'位置书写文字
DIFM:="MACD.DIF#MONTH"
DEAM:="MACD.DEA#MONTH"
FCB赋值:FILTER(DIFM上穿DEAM,0)
SCB赋值:FILTER(DEAM上穿DIFM,0)
输出
M月金叉:IF("MACD.DIF#MONTH"上穿"MACD.DEA#MONTH",-60,0),COLOR00FFFF, 线宽为2
当满足条件FCB时,在-55和' MACD月金叉'位置书写文字
输出
M月死叉:IF("MACD.DEA#MONTH"上穿"MACD.DIF#MONTH",-60,0),COLORFF6600, 线宽为2
当满足条件SCB时,在-55和' MACD月死叉'位置书写文字
KKW:="KD.K#WEEK",画红色
KDW:="KD.D#WEEK",画黄色
KCD:=FILTER(KKW上穿KDW,0)
SCD赋值:FILTER(KDW上穿KKW,0)
K周金叉:IF("KDJ.K#WEEK"上穿"KDJ.D#WEEK",50,0),COLOR0000FF, 线宽为2
当满足条件KCD时,在50和' KDJ周金叉'位置书写文字
K周死叉:IF("KDJ.D#WEEK"上穿"KDJ.K#WEEK",50,0),COLOR00FF00, 线宽为2
当满足条件SCD时,在50和' KDJ周死叉'位置书写文字
KKM:="KDJ.K#MONTH",画红色
KDM:="KDJ.D#MONTH",画黄色
KDB:=FILTER(KKM上穿KDM,0)
SDB赋值:FILTER(KDM上穿KKM,0)
K月金叉:IF("KDJ.K#MONTH"上穿"KDJ.D#MONTH",60,0),COLOR00FFFF, 线宽为2
当满足条件KDB时,在60和' KDJ月金叉'位置书写文字
K月死叉:IF("KDJ.D#MONTH"上穿"KDJ.K#MONTH",60,0),COLORFF6600, 线宽为2
当满足条件SDB时,在60和' KDJ月死叉'位置书写文字