本公式可以預(yù)測MACD今明兩日的金(死)叉,甚至可以提前1-2天告之金(死)叉的發(fā)生,幫你提前做好準(zhǔn)備,請笑納。 {參數(shù)}N1:=12;N2:=26;M:=9; DIFF: EMA(CLOSE,N1)-EMA(CLOSE,N2),LINETHICK1; DEA:EMA(DIFF,M),LINETHICK1; MACD: (DIFF-DEA)*2,COLORSTICK; 今日交叉價(jià):((REF(EMA(C,N2),1)*(N2-1)*(N1+1))+(REF(DEA,1)*(N1+1)* (N2+1))-(REF(EMA(C,N1),1)*(N1-1)*(N2+1)))/(2*(N2-N1)),NODRAW; 明日交叉價(jià):((EMA(C,N2)*(N2-1)*(N1+1))+(DEA*(N1+1)*(N2+1))-(EMA(C,N1)*(N1-1)* (N2+1)))/(2*(N2-N1)),NODRAW; |
|