九毛八公式指标
月K:"KDJ.K"(89,3,3),COLOR00FF00; 月D:"KDJ.D"(89,3,3),COLOR00FF00,LINETHICK2; 周K:"KDJ.K"(27,3,3),COLORRED; 周D:"KDJ.D"(27,3,3),COLORRED,LINETHICK2; 日K:"KD.K"(5,3,3),COLORWHITE; 日D:"KD.D"(5,3,3),COLORWHITE,LINETHICK2; 日金叉:IF(CROSS(日K,日D),50,0),COLORFFFFFF; DRAWTEXT(日金叉,50,'日叉'),COLORFFFFFF; 周金叉:IF(CROSS(周K,周D),30,0),COLORRED; DRAWTEXT(周金叉,30,'周叉'),COLORRED; 月金叉:IF(CROSS(月K,月D),20,0),COLOR0080FF; DRAWTEXT(月金叉,20,'月叉'),COLORYELLOW; {KD在30以下多次金叉} JM:=CROSS("KDJ.K"(5,3,3),"KDJ.D"(5,3,3)); JMCOUNT:=COUNT(JM,BARSLAST("KDJ.D"(5,3,3)>=30)); JMTJ:=28*("KDJ.D"(5,3,3)<30 and count(jmcount=1,21)=1); drawtext (jmtj,70,'①'),colorwhite; jmtj2:=28*("KDJ.D"(5,3,3)<30 count(jmcount7 =2,21)=1); (jmtj2,70,'②'),coloryellow; jmtj3: =28*("KDJ.D"(5,3,3)<30 count(jmcount12 =3,21)=1); (jmtj3,70,'③'),coloryellow; jmtj4: =28*("KDJ.D"(5,3,3)<30 count(jmcount17=4,21)=1); (jmtj4,70,'④'),coloryellow; jmtj5: =28*("KDJ.D"(5,3,3)<30 count(jmcount22=5,21)=1); (jmtj5,70,'⑤'),coloryellow; 0,coloryellow; diff: =EMA(CLOSE,12)-EMA(CLOSE,26); dea: =EMA(DIFF,9); macd:=2*(DIFF-DEA); a1: =BARSLAST(REF(CROSS(DIFF,DEA),1)); b1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)
公式模块:
月K:="kdj.K"(89,3,3);
月D:="kdJ.D"(89,3,3); 周K:="KDJ.K"(27,3,3); 周D:="KDJ.D"(27,3,3); 周金叉:=IF(crOSS(周K,周D),30,0); 月金叉:=IF(CROSS(月K,月D),20,0); 周金叉 AND 月金叉;