趨勢(shì)先機(jī)
diff:=ema(close,12)-ema(close,26);
dea:=ema(diff,9);
ma(c,8),colorwhite;
ma(c,21),coloryellow;
多頭:stickline(diff>dea,c,o,8,0),colorred;
stickline(diff>dea,h,l,0,0),colorred;
空頭:stickline(diff<=dea,c,o,8,0),COLORF0F000;
stickline(diff<=dea,h,l,0,0),COLORF0F000;
drawtext(cross(diff,dea),l-0.2,'買入'),colorwhite;
drawtext(cross(dea,diff),h+0.2,'賣出'),colorgreen;
DRAWTEXTABS(60,0,''),COLOR0000FF;
(南方財(cái)富網(wǎng)SOUTHMONEY.COM)