ma20:ema(c,20);
ma60:ema(c,60);
ma133:ema(c,133);
DIFF: EMA(CLOSE,12) - EMA(CLOSE,26),colorwhite;
DEA: EMA(DIFF,9),coloryellow;
macd:2*(DIFF-DEA), COLORSTICK;
ma20:=ema(c,20);
ma60:=ema(c,60);
ma133:=ema(c,133);
vv1:=ma20>ref(ma20,1) and ma60>ref(ma60,1) and ma133>ref(ma133,1) and
ma20>ma60 and ma60>ma133 and c>ma20;
vv2:=(cross(diff,dea) or diff>dea) and diff>ref(diff,1) and dea>ref(dea,1);
xg1:stickline(vv1 and vv2,dea,diff,3,0),colorred;