Wall Street algorithm? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Wall Street algorithm?

Hi, im looking into what would take to build a Wall street-like algorithm when it comes to stock but i want to use it for a different application and way less complicated. I want it to look as such, for the ā€œproductsā€ sold on a store for the algorithm to increase ā€œpricesā€, the more on demand the higher it goes. Once it becomes less ā€œpopular ā€œ for the ā€œprice to go down. Also it would have to be integrated to a POS system. I was wondering if anyone has had build something close to this before. Thank you!

16th Feb 2018, 2:36 AM
Luis
Luis - avatar
1 Resposta
0
Could you assign a multiplier? for instance: var product = 1.00; var multiplier = (function(){ return product + (product * 0.01) })(); so that as the price went up, so would the multiplier and as the price went down so would the multiplier? just a quick example
23rd Oct 2018, 4:10 AM
Brandon
Brandon - avatar