Re:Show HN: A tiny browser game where you have 45 seconds to...
by Hydraulix989 on Monday August 02, 2021 @05:21PM
(#28042825)
In practice, you're not just betting on a random walk, you're also reading the news and thinking about the company's outlook, its thesis, and its public sentiment. You also have other indicators like volume, and fundamentals such as earnings. There's day trading and longer time horizon investing. As you can see, it's a bit easier to do the latter instead :)
Re:Show HN: A tiny browser game where you have 45 seconds to...
by adibalcan on Tuesday August 03, 2021 @07:31AM
(#28047972)
If you are curious about the logic of values used in this game, I found a comment in the source code:
/*
* Generates price data by calculating a 0%..7% movement magnitude multiplied by the "market sentiment",
* which is either super bearish, bearish, or bullish. The probabilities of the sentiment can also be configured
* marketSentimentProbs.
*/
Re:Show HN: A tiny browser game where you have 45 seconds to...
by anm89 on Tuesday August 03, 2021 @02:57AM
(#28046379)
It feels like the goal is to make some point about how stock trading is gambling or just a losing proposition but you'd have to be a total idiot to trade in a manner anything like this game in real life.
Of course if you treat a random stock as a roulette wheel you might lose. That's not much of a profound insight.
This was made with Sveltekit, TailwindCSS, ChartJS, and hosted as a static website on netlify.
[1] https://github.com/davjhan/paper-trader-game
Something to make it more competitive/addictive.
It's still pretty fun though for sure.
/* * Generates price data by calculating a 0%..7% movement magnitude multiplied by the "market sentiment", * which is either super bearish, bearish, or bullish. The probabilities of the sentiment can also be configured * marketSentimentProbs. */
Of course if you treat a random stock as a roulette wheel you might lose. That's not much of a profound insight.