PureBytes Links
Trading Reference Links
|
Dear All,
I found some un-answered questions about array processing of the AFL. -------------------------------------------------------------------- nn = 100; nn = IIf(V<Ref(V,-1), Ref(nn,-1) + (C-Ref(C,-1))/Ref(C,-1) * Ref(nn,-1), Ref(nn,-1)); Plot(nn,"",colorYellow); //---------------------------------------------- n[0]=100; for(i=1;i<BarCount;i++) { if(V[i] < V[i-1]) n[i] = n[i-1] + (C[i]-C[i-1])/C[i-1] * n[i-1]; else n[i] = n[i-1]; } Plot(n,"",colorRed); ------------------------------------------------------------------------------ Array of "n" is supposed to be the same as "nn" in the AFL below, but when they are plotted, they are not the same...It is the formula
of NVI....
Could you help whey "n" is not the same as "nn"? or Do I make a mistake?
Thanks Kus
|
Yahoo! Mail Sekarang Lebih Cepat dan Lebih Bersih. Rasakan bedanya!
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|