logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
mhireche  
#1 Posted : Tuesday, May 1, 2012 8:03:50 AM(UTC)
mhireche

Rank: Newbie

Groups: Registered, Registered Users
Joined: 8/5/2011(UTC)
Posts: 4

Hello,

In a third party package the following formula is used without any parentheses to clarify operations precedence : "A and B or C and D or E"

I would like to know how Metastock is going to calculate it. Can you please provide me with the equivalent formula using parentheses at the right places

Thanks a lot for your help.

Regards,

M. Hireche

haddison  
#2 Posted : Tuesday, May 1, 2012 11:56:56 AM(UTC)
haddison

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 3/6/2010(UTC)
Posts: 113
Location: London

If you look up "Operator Precedence" in the manual, it says that AND will take priority over OR, so your formula should be calculated as:

(A and B) or (C and D) or E
Users browsing this topic
Guest (Hidden)
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.