用法: 1.ma60>ma133,ma20>ma60,c>ma20; 2.MACD金叉 or diff>dea;diff上涨,dea上涨; 3.ma133托ma20,ma60上涨,多头排列; 4.放量,收阳
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;