下跌趋势中,一旦出现上升的粉柱就是逐步抄底的时候,粉柱的出现比金叉提前4-5天.
上升趋势中,出现蓝柱卖出.
0,COLORGRAY;
GOODGUPIAO:=(EMA(CLOSE,12)-EMA(CLOSE,22))/((EMA(CLOSE,12)+EMA(CLOSE,22))/2)*1000;
DEA12:=EMA(GOODGUPIAO,6);
KGOODGUPIAO:=3*(GOODGUPIAO-DEA12);
KDEA12:=SMA(KGOODGUPIAO,5,2);
强DIF:=KGOODGUPIAO*5,COLORWHITE,LINETHICK1;
弱DEA:=KDEA12*5,COLORYELLOW,LINETHICK1;
MACD2:2*(强DIF-弱DEA),COLORBLACK;
MAMACD:=MA(MACD2,3),,COLORBLACK;
STICKLINE(MACD2>REF(MACD2,1) AND MACD2>0,0,MACD2,1,0),COLORRED;
STICKLINE(MACD2<=REF(MACD2,1) AND MACD2>0,0,MACD2,1,0),COLORYELLOW;
STICKLINE(MACD2<REF(MACD2,1) AND MACD2<0,0,MACD2,1,0),COLORCYAN;
STICKLINE(MACD2>=REF(MACD2,1) AND MACD2<0,0,MACD2,2,0),COLORMAGENTA;
STICKLINE(MAMACD<1*REF(MAMACD,1), MAMACD, MACD2 ,3, 0),COLORBLUE;
STICKLINE(MAMACD>1*REF(MAMACD,1), MAMACD, MACD2 , 0.2, 0),COLORLIRED;
强DIF2:KGOODGUPIAO*5,COLORRED,LINETHICK1;
弱DEA2:KDEA12*5,COLORMAGENTA,LINETHICK1;
NOTEXT强:IF(强DIF2<MA(强DIF2,2),强DIF2,DRAWNULL),COLORGREEN;
NOTEXT弱:IF(弱DEA2<MAX(弱DEA2,REF(弱DEA2,1)),弱DEA2,DRAWNULL),COLORYELLOW;
DRAWICON(CROSS(GOODGUPIAO,KDEA12),GOODGUPIAO,1);
DRAWICON(CROSS(KDEA12,GOODGUPIAO),GOODGUPIAO,2);