通达信MACD+K线+BOLL指标公式

2023-09-16 09:00发布

CC:=FORCAST(C,3); OO:=FORCAST(O,3); HH:=FORCAST(H,3); LL:=FORCAST(L,3);SHORT:=12; LONG:=26; M:=9;{1.}DIFF:=EMA(CC,SHORT) - EMA(CC,LONG);DEA:=EMA(DIFF,M);MD:WMA((DIFF-DEA),3)*4,COLOR00FF00,LINETHICK2;IF(MACD>REF(MACD,1),MACD,DRAWNULL),COLOR0000FF,LINETHICK2;{2.MACD的线}{差可能是正,是负-----相当与DIFF}DC:=WMA(CC,SHORT/2)-WMA(CC,LONG/2); {的DIFF} DK:=WMA(OO,SHORT/2)-WMA(OO,LONG/2); {的DIFF}DH:=(WMA(HH,SHORT/2)-WMA(HH,LONG/2))*1.25; {的DIFF} DL:=(WMA(LL,SHORT/2)-WMA(LL,LONG/2))*1.25; {最低价的DIFF} {另类:收
 解锁全文需 1  财富值,免费注册即送20财富值!