Wall Street algorithm? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answer
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