写个选股公式,月周日KDJ指标
2020/4/19 18:28:37
公式编写说明:
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:SMA(RSV,3,1),COLORGREEN; D:SMA(K,3,1),COLORWHITE; J:3*K-2*D,COLORRED; 金:STICKLINE(CROSS("KDJ.K#WEEK","KDJ.D#WEEK") ,28,0,3,0),COLOR00FFFF; 月金:STICKLINE(CROSS("KDJ.K#MONTH","KDJ.D#MONTH") ,28,0,3,0),COLORRED; 死:STICKLINE(CROSS("KDJ.D#WEEK","KDJ.K#WEEK") ,72,100,3,0),,COLORCCCC00; 月死:STICKLINE(CROSS("KDJ.D#MONTH","KDJ.K#MONTH") ,72,100,3,0),COLORGREEN; DRAWTEXT(CROSS("KDJ.K#WEEK","KDJ.D#WEEK"),28,'→金'),COLORYELLOW; DRAWTEXT(CROSS("KDJ.K#MONTH","KDJ.D#MONTH"),28,'→月金'),COLORRED; DRAWTEXT(CROSS("KDJ.D#WEEK","KDJ.K#WEEK"),72,'→死'),COLORCCCC00; DRAWTEXT(CROSS("KDJ.D#MONTH","KDJ.K#MONTH"),72,'→月死'),COLORGREEN;1.出现金叉或月金叉时选股。2.同时出现金叉和月金叉选股麻烦老师帮忙写下上面两个选股公式,万分感激!
公式源码回答:
XG1:CROSS("KDJ.K#WEEK","KDJ.D#WEEK") OR CROSS("KDJ.K#MONTH","KDJ.D#MONTH");
XG2:CROSS("KDJ.K#WEEK","KDJ.D#WEEK") AND CROSS("KDJ.K#MONTH","KDJ.D#MONTH");
投股票 网 w ww.tou18.cn
股市公式下载推荐