先建一個(gè)公式“ZMACD”:
{ZMACD}
DIFF : EMA(CLOSE,25) - EMA(CLOSE,65);
DEA : EMA(DIFF,45);
上面公式要單獨建,建好后,再建一個(gè)公式“牛股戰法”:
{{牛股戰法}}
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
牛股攻擊 : 2*(DIFF-DEA), COLORSTICK;
stickline(牛股攻擊》ref(牛股攻擊,1) and diff》dea,牛股攻擊,0,10,0),COLORRED;
stickline(牛股攻擊》ref(牛股攻擊,1) and diff》dea,牛股攻擊,0,1,0),coloryellow;
A:“zMACD.DIFF#WEEK”,LINETHICK2;
B:“zMACD.DEA#WEEK”,LINETHICK2;
PARTLINE(a《ref(a,5),a)linethick2,colorblue;
(南方財富網(wǎng)SOUTHMONEY.COM)