一、趋势型
1、稳赚 MACD,短线只做红柱柱,中线只做暖色带(f副图):
DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'01',0);
DIF:EMA(CLOSE,12) - EMA(CLOSE,26),COLORWHITE,LINETHICK2;
DEA:EMA(DIF,9),COLORYELLOW,LINETHICK2;
MACD:2*(DIF-DEA),COLORSTICK;
DRAWBAND(DIF,RGB(158,50,50),DEA,RGB(83,123,68));
短线只做红柱柱:DIF>DEA AND MACD>REF(MACD,1),COLORCC66FF;
中线只做暖色带:MACD=0,COLORRED;
STICKLINE(MACD>0,0,MACD,1,0),COLORRED;
STICKLINE(MACD>0 AND MACD<REF(MACD,1),0,MACD,1,0),COLORFFFF00;
STICKLINE(MACD<0,0,MACD,1,0),COLORBROWN;
STICKLINE(MACD<0 AND MACD>REF(MACD,1),0,MACD,1,0),COLORFF00FF;
DRAWICON(CROSS(DIF,DEA),DEA,1);
DRAWICON(CROSS(DEA,DIF),DIF,2);
DRAWICON(CROSS(DIF,0),DEA,9);
DRAWICON(CROSS(0,DIF),DIF,6);
买:=CROSS(DIF,DEA);
逃:=CROSS(DEA,DIF);
DRAWTEXT(买,DIF+0.02,'买'),COLORWHITE;
DRAWTEXT(逃,DEA+0.02,'逃'),COLORYELLOW;
2、稳赚 分时MACD,分时买卖点参考(副图)
DRAWGBK(1,RGB(0,0,0),RGB(0,0,0),0,'01',0);
DIF:EMA(CLOSE,12) - EMA(CLOSE,26),COLORWHITE,LINETHICK2;
DEA:EMA(DIF,9),COLORYELLOW,LINETHICK2;
MACD:2*(DIF-DEA),COLORSTICK;
DRAWBAND(DIF,RGB(158,50,50),DEA,RGB(83,123,68));