MACD_2(九转)
2016-8-10 21:11:15点击:
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
MACD : 2*(DIFF-DEA);
Zero : 0;
幅度:=INTPART((C-REF(C,1))/REF(C,1)*100);
//以下大涨大跌 www.88gs.com
大涨:=(C-REF(C,1))/REF(C,1)*100<9.97 AND (C-REF(C,1))/REF(C,1)*100>=5 ;
DRAWTEXT(大涨, diff*1.8,幅度),colorlired;
大跌:=(C-REF(C,1))/REF(C,1)*100>-9.97 AND (C-REF(C,1))/REF(C,1)*100<=-5 ;
DRAWTEXT(大跌, diff*1.4,幅度),colorcyan;//不能用-幅度,会挤压到一起
//以下为涨跌停;
涨停:=(C-REF(C,1))/REF(C,1)*100>=9.97;
跌停:=(C-REF(C,1))/REF(C,1)*100<=-9.97;
DRAWTEXT(涨停, diff*1.8,'停'),colorlired;
DRAWTEXT(跌停, diff*1.8,'停'),colorcyan;