DIFF : EMA(CLOSE,4) - EMA(CLOSE,26);
DEA : EMA(DIFF,9);
MACD:2*(DIFF-DEA),COLORSTICK;
MACD放大:MACD-REF(MACD,1),LINETHICK0;
DRAWTEXT(CROSS(DIFF,DEA ) ,MACD,'㊣'),COLORYELLOW; {后2句是横位置对齐}
MM:=IF(MACD< 0,MACD,0);
JJ:=MM> REF(MM,1);
ZZ:=REF(JJ,1)=1;
介入区:=(JJ AND ZZ)*DEA{,POINTDOT,COLORRED};
{MACD蓝柱缩短}
STICKLINE(介入区=DEA,DEA,DIFF,3,0),COLORRED;
低金:=CROSS(DIFF,DEA) AND DIFF<-0.1;
DRAWTEXT(低金,-0.85,'↑'),COLORRED;
|