//MACD底背离公式2 MA5:EMA(C,5); MA10:EMA(C,10);
DIFF:=( EMA(CLOSE,7) - EMA(CLOSE,19)),colorwhite; DEA:=EMA(DIFF,9),COLORF00FF0 ; MACD:=0.90*(DIFF-DEA), COLORSTICK; TJ:=(DIFF>=DEA); TJ1:=(DIFF>=0); STICKLINE(TJ,H,L,0,0),coloryellow; STICKLINE(TJ,O,C,10,1),coloryellow; STICKLINE(TJ1 AND TJ,H,L,0,0),COLORF00FF0; STICKLINE(TJ1 AND TJ,O,C,10,1),COLORF00FF0; STICKLINE(DIFF<DEA,H,L,0,0),COLORF0F000; STICKLINE(DIFF<DEA,O,C,10,0),COLORF0F000; //用法超级简单:看到红线买入,看到绿线卖出!
|