LONG:=26;
SHORT:=5;
M:=4;
DRAWGBK((CLOSE > 0),STRIP(RGB(4,1,28),RGB(4,1,35),0));
DIFF : EMA(CLOSE,SHORT) - EMA(CLOSE,LONG);
DEA : EMA(DIFF,M);
macd : 2*(DIFF-DEA), COLORSTICK;
partline(diff,diff>=ref(diff,1),rgb(255,0,0),diff<ref(diff,1),rgb(0,255,0)),linethick2;
DRAWTEXTAbs(3,1,'DIFF翻红,结合增仓及均线多头抓主升。'),linethick1,Colorred;
DRAWTEXTABS(3,16,'DIFF泛绿时持币,宁缺毋滥。'),linethick1,Colorred;