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 |

why does this formula evaluate as false? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Loren
Posted : Sunday, April 13, 2014 2:29:52 AM
Registered User
Joined: 7/14/2009
Posts: 3

Hi,

Here is a PCF that i wrote:

(xavgc8.1 < avgc50.1 AND xavgc8 >= avgc50)

 

The result on testing it is :

(2.39 < 2.49 AND 2.50 >= 2.50)

Value = False

 

WHY??

Can someone help me with WHY this evaluates to False?

Thanks

 

 

 
diceman
Posted : Sunday, April 13, 2014 9:14:17 AM
Registered User
Joined: 1/28/2005
Posts: 6,049

There is "rounding" in the display message.

The 2.50 is actually something lower.

 

 

Thanks

Loren
Posted : Sunday, April 13, 2014 11:23:54 AM
Registered User
Joined: 7/14/2009
Posts: 3

Rounding. Of course.

Thank you -that was making me nuts.

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.