mozart11 Posted August 29, 2003 Posted August 29, 2003 I trying to make a db for stock tracking. I want to have a text field display "sell" when I hit a loss if it's 10% of my purchase. I have defined shares bought, price bought, todays going price, what it's worth now. I can't see to figure out percentages. I do worth now times .010. but I can't figure out how to do the if statement to figure out to display a message that I'm at my 10% threshold to sell. Hope this makes sense. Thanks
kenneth2k1 Posted August 29, 2003 Posted August 29, 2003 Hi: You'll have to be a bit more clear for us non-market people. Are you saying that you want a "Sell" warning when 10% of what it's worth now is less than or equal to 10% of your purchase? If so, your calc can look like this: Case - or If - [Worth now * .1 <= Purchase * .1 , "Sell" , "Normal"] You said 10%, but your calc that you gave was "worth now times .010." I'm pretty sure .01 is 1%, not 10%. So you'll have to be more specific. Hope this gets you on the right track Ken
BobWeaver Posted August 30, 2003 Posted August 30, 2003 If(Today's price <= (PurchasePrice * 0.9), "Sell","Hold")
Recommended Posts
This topic is 8097 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now