macd二次金叉加ma5向上,選股==很好用!
{MACD二次金叉xg} DIFF:=EMA(CLOSE,12)-EMA(CLOSE,26),LINETHICK2; DEA:=EMA(DIFF,9),LINETHICK2; MACD:=2*(DIFF-DEA), COLORSTICK,LINETHICK2; 低位金叉:=CROSS(DIFF,DEA) AND DIFF<-0.1; AA:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0)); 二次金叉:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(AA=2,21)=1; 二次金叉選股:if(二次金叉 and ma(c,5)>ref(ma(c,5),1),1,0),COLORYELLOW; {設(shè)計(jì)思路: 1。diff二次金叉dea; 2.ma5向上;} |
|