Aroon(up)=[(計(jì)算期天數(shù)-最高價(jià)后的天數(shù))/計(jì)算期天數(shù)]*100
Aroon(down)=[(計(jì)算期天數(shù)-最低價(jià)后的天數(shù))/計(jì)算期天數(shù)]*100
Aroon = Aroon(up) - Aroon(down)
計(jì)算期天數(shù) 是指的 設(shè)置一個周期數(shù) n ?
最高價(jià)后的天數(shù) 是指的n周期內(nèi)最高價(jià)到當(dāng)前的周期數(shù)?
編寫如下,僅供參考
AROONUP:=((N-HHVBARS(H,N))/N)*100;
AROONDOWN:=((N-LLVBARS(L,N))/N)*100;
AROON:=AROONUP - AROONDOWN ;