[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Strange Numbers



PureBytes Links

Trading Reference Links

probably because h == L


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of ricko8294_98
Sent: Wednesday, 14 March 2007 8:15 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Strange Numbers

What does this mean?
I am working with the Chaiken Money Flow (CMF) indicator from the AB
Library. The code is

CMF = sum(((( C-L )-( H-C )) / ( H-L ))*V, 21 ) / sum(V,21);

For some stocks CMF gives an {EMPTY} value even though there are
datapoints for each array.

Also the numerator gives {NAN} (not a number right) across the whole
range of the data.

If I change the denominator to (NZ(H-L)))*V,21 - I get all zeros.
Same thing if I change the numerator to
Nz(sum(((( C-L )-( H-C )) / ( H-L ))*V, 21 )).

What is more confusing, if I compare a stock listed both on the
Canadian and US exchanges, I get CMF values for the US, but not the
Canadian exchange (TD vs TD.TO).

If anybody can shed a light here it would be appreciated
Thanks
Rik

__._,_.___

Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html





SPONSORED LINKS
Investment management software Investment property software Investment software
Investment tracking software Return on investment software

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___