DIFF:=EMA(CLOSE,12)-EMA(CLOSE,27);
DEA:=EMA(DIFF,9);
MACD:=(2)*(DIFF-DEA);
A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));
接近大盤(pán)底:=(REF(CLOSE,A1+1)>CLOSE) AND (DIFF>REF(DIFF,A1+1)) AND CROSS(DIFF,DEA);
STICKLINE(接近大盤(pán)底,0,0.1,10,0),CoLor0000FF;
DRAWTEXT(接近大盤(pán)底,0.15,'接近大盤(pán)底'),CoLor0000FF;
A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));
大盤(pán)頂:=(REF(CLOSE,A2+1)<CLOSE) AND (REF(DIFF,A2+1)>DIFF) AND CROSS(DEA,DIFF);
STICKLINE(大盤(pán)頂,0,0.1,10,0),CoLor00FF00;
DRAWTEXT(大盤(pán)頂,0.2,'大盤(pán)頂'),CoLor00FF00;(南方財富網(wǎng)SOUTHMONEY.COM)
(責任編輯:張曉軒)