HomeReady-2-GoPortfolioRankingScreenerStockETFToolsCommunityHelp
ForumsEmail UserPollsFeature RequestsGroups


  Index  | Recent Threads  | Who's Online  | User List  | Search
  Search  
Quick Go »
Thread Status: Normal
Total posts in this thread: 6
[Request a Feature] [Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 1683 times and has 5 replies Next Thread
marco


UNITED STATES
Joined: Jan 1, 1970
Posts: 3980
Status: Offline

Math function enhancements Reply to this Post
Reply with Quote

We upgraded/added some MATH functions. Here they are:

Min(x1, x2 [,..,x20]): Returns the smallest value in list. Up to 20 parameters are allowed and NAs are discarded

Max(x1, x2 [,..,x20]): Returns the largest value in list. Up to 20 parameters are allowed and NAs are discarded

Average(x1, x2 [,..,x20]): Returns the average value in list. Up to 20 parameters are allowed and NAs are discarded

Between(a, b, c): Returns TRUE (1) if a is between b and c (inclusive), FALSE(0) otherwise
----------------------------------------
Portfolio123 Staff
[May 8, 2008 9:43:44 AM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
marco


UNITED STATES
Joined: Jan 1, 1970
Posts: 3980
Status: Offline

Re: Math function enhancements Reply to this Post
Reply with Quote

Sorry, the function should read:

Avg(x1, x2 [,..,x20]): Returns the average value in list. Up to 20 parameters are allowed and NAs are discarded
----------------------------------------
Portfolio123 Staff
----------------------------------------
[Edit 1 times, last edit by marco at May 8, 2008 11:48:20 AM]
[May 8, 2008 11:48:00 AM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
jerrodmason
Advanced Member
Member's Avatar

UNITED STATES
Joined: Jan 14, 2005
Posts: 599
Status: Offline
Re: Math function enhancements Reply to this Post
Reply with Quote

Nice. Would yuou consider changing the syntax of Between?

It seems more intuitive to display the paramters in ascending order, ie

Between(a,b,c) = true iff a<=b<=c
----------------------------------------
The smart money was on Goliath.
"He's not the Messiah. He's a very naughty boy."

[May 8, 2008 3:43:19 PM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
gviersen
Advanced Member


UNITED STATES
Joined: Mar 7, 2004
Posts: 78
Status: Offline

Re: Math function enhancements Reply to this Post
Reply with Quote

Still waiting for a Log function. Stock price movements are lognormal, would be nice to have a log function in a lognormal world. Surely you don't have to code all the math functions from scratch??
[May 9, 2008 6:24:30 PM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
fwouters
Advanced Member


UNITED STATES
Joined: Oct 7, 2004
Posts: 65
Status: Offline

Re: Math function enhancements Reply to this Post
Reply with Quote

Since the change I get an error (Error near ')': Min - Missing operands) for the following function: PctFromHi < Min(-13,(-24 + GainPct/10))

Can't figure out what is wrong with it. Used to work before the upgrade. Can someone help me?
----------------------------------------
Filip
[May 23, 2008 9:56:50 PM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
marco


UNITED STATES
Joined: Jan 1, 1970
Posts: 3980
Status: Offline

Re: Math function enhancements Reply to this Post
Reply with Quote

Your function syntax should work but there are problems in the parser. We'll revisit the parsing logic. In the meantime try this alternative:


PctFromHi < Min(-13,GainPct/10 -24)

Thanks for reporting this
----------------------------------------
Portfolio123 Staff
----------------------------------------
[Edit 1 times, last edit by marco at May 24, 2008 12:47:02 PM]
[May 24, 2008 12:21:00 PM] Show Post Printable Version     [Link] Report threaten post: please login first  Go to top 
[Show Thread Printable Version]

Free Trial  /  Log In
Username or Email
Password
Stay logged in
Can't remember username or password?