Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Calculation of Moving Averages Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
idlipman
Posted : Monday, February 14, 2005 11:59:47 AM
Registered User
Joined: 12/28/2004
Posts: 15
If I am trying to compare a 200 day moving average from one day to the next, how many decimal places are used in the calculation?

ie. AVGC200.10 > AVGC200.11
if AVGC200.10 = 24.2511 and AVGC200.11 = 24.2512 would the above formula return a value of True or is it comparing 24.25 and 24.25?
Craig_S
Posted : Monday, February 14, 2005 12:05:24 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
AVGC10<(AVGC10+.00000000000001)

This returns a true

AVGC10<(AVGC10+.000000000000001)

This returns a false

It appears it calculates to 14 decimal places.

- Craig
Here to Help!
idlipman
Posted : Monday, February 14, 2005 12:44:28 PM
Registered User
Joined: 12/28/2004
Posts: 15
just to verify, the formula AVGC200.10 > AVGC200.11 will calculate to 14 decimals, so where AVGC200.10 = 24.2512 and AVGC200.11 = 24.2511, the above formula would return a value of true?
Craig_S
Posted : Monday, February 14, 2005 12:50:47 PM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
Correct, based on my testing. It shows only 2 decimal places in the test screen but my test shows that it calculates out 14 places.

- Craig
Here to Help!
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.