Hello, I am looking for the Klinger Volume Oscillator (KVO) in afl script. May I request help for this ? AFL written by me is not seems to be accurare. I think, Loop should be used in AFL, which I am not conversent with. AFL written by me is as under:-
///////////////////////////////////////////////////////////////// a=H+L+C; b=Ref(a,-1); Trend=IIf(a > b, 1,-1); //dm = daily movement dm = H - L; Cm = Cum(dm); Cm = IIf(trend=-1,Ref(Cm,-1)+dm, Ref(dm,-1) + dm); Vf= V * (2 *( dm/Cm -1)) * trend * 100; KO = EMA(Vf,34) - EMA(Vf,55); Plot(ko,"KO",colorBlue,styleLine); TL = EMA(KO,13); Plot(TL,"TL",colorBlue,styleLine); //////////////////////////////////////////////////////////////// Mathamatical Experssion of KVO availabe at:- http://www.fmlabs.com/reference/default.htm?url=KO.htm Thanks in advance. Hitesh