金柱大牛启动
2014-12-30 14:25:04点击:
DIF:EMA(CLOSE,12)-EMA(CLOSE,25);
DEA:EMA(DIF,5);
MACD:=(DIF-DEA)*2;
STICKLINE(MACD>0,MACD,0,3,1),colorred;
STICKLINE(MACD<0,MACD,0,3,1),colorcyan;
MACD120:REF(MACD/2,BARSLAST(MACD=HHV(MACD,120))),colorred,LINETHICK2;
MACD250:REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),colorwhite,LINETHICK2;
XG:=NOT(REF(MACD120,1)=MACD120);
STICKLINE(XG,0,MACD,2,0),coloryellow;
STICKLINE(MACD>=MACD250,MACD250,MACD,2,0),colormagenta;
大行情:=NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;
DRAWTEXT(XG,0,'↖金柱'),coloryellow;
DRAWTEXT(大行情,0,'↖大牛启动'),coloryellow;
DEA:EMA(DIF,5);
MACD:=(DIF-DEA)*2;
STICKLINE(MACD>0,MACD,0,3,1),colorred;
STICKLINE(MACD<0,MACD,0,3,1),colorcyan;
MACD120:REF(MACD/2,BARSLAST(MACD=HHV(MACD,120))),colorred,LINETHICK2;
MACD250:REF(MACD/2,BARSLAST(MACD=HHV(MACD,250))),colorwhite,LINETHICK2;
XG:=NOT(REF(MACD120,1)=MACD120);
STICKLINE(XG,0,MACD,2,0),coloryellow;
STICKLINE(MACD>=MACD250,MACD250,MACD,2,0),colormagenta;
大行情:=NOT(REF(MACD120,1)=REF(MACD250,1)) AND MACD120=MACD250;
DRAWTEXT(XG,0,'↖金柱'),coloryellow;
DRAWTEXT(大行情,0,'↖大牛启动'),coloryellow;