Algorithm to evaluate whether you should buy now or wait [closed]

I'm currently in search of an algorithm that can determine whether or not it's time to buy something (an item, a stock, a service, etc.) given an history of prices (30, 50, 100, ...).

My idea is something like this :

Given the history of prices, you should buy now because the price is likely to be going up.

Or,

Given the history of prices, the price is likely to drop even lower, hence you should wait to buy.

I've been Googling to find this, but i think I might not have entered the right keywords, because I couldn't find anything. That, or this does not exist because it's not reliable.

Statistics are not my main strength, but algorithms are. If you have knowledge of a mathematical study on this topic, I'll take it too.

closed as not a real question by cardinal, gung♦, whuber♦Aug 14 '12 at 20:37

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. If this question can be reworded to fit the rules in the help center, please edit the question.

• You've asked an extraordinarily broad question. In its current form, it is unlikely that anyone can give you a meaningful answer. Please consider narrowing the focus. In particular, if there is some specific problem you are trying to solve, it would be best to detail that instead. – cardinal Dec 30 '11 at 13:32
• Actually, what I'm trying to do, is predict the price tendency in the upcoming days, given a (long) history of the prices for that same item. But statistics is not in my area of expertise. – 3rgo Dec 30 '11 at 17:33
• Is there any data that models things that might influence price? There is little to none meaning in past price curves to predict new price. – clyfe Dec 30 '11 at 19:03
• Try "optimal stopping" (there are a couple of links under optimal-stopping-from-an-unknown-distribution. – denis Jan 1 '12 at 13:39