MV Stock Trader

INTRO

You know what's hot in 2025? Trading! Oh, yes. I see kids who just graduated high school, making more money trading bitcoin than I do with my fulltime job...

But I can't buy bitcoins... I have bills to pay. But I do like the thrill of buying and selling at the right moment to make the most money. So, I made a stock trading game.

GAME PLAY

In the game are 12 stocks, all in a different price category. (One has a base value of $100, the next $1000, the next $10k, then $100k, etc etc. All the way up to $10 trillion)

You (the player) start with $1000 in your account, which you can use to buy stocks. To start the game, you can choose: Buy 10 stocks of $100, or 1 of $1000. But do it fast, because every 2.5 second, the values of the stocks update, making then a bit cheaper, or more expensive.

From here on you wait, till the price of your stock is up. Sell it at a top price to make the most coin, so you can then buy stocks in a higher tier.

VARIANCES

As you may have guessed, this game is 99.999% made with math and randomized numbers. However, a stock will not just go from $3 to $382 quintillion. No, a stock goes up 0.2% or 4.7% or 1.3% per tick. A jump of 10% or more is possible, but unlikely. The higher the % goes, the less likely it is too happen. And the same goes for diving stocks. They go down by small percentages.

Even though all stocks can reach amazing heights and terrible lows, the tiers will have their effect on the stocks over time. When a tier 1 stock drops under $100, it is still almost full prize, since it starts at $100. But when a tier 3 stock drops under $100, it is at less than 1% of it's original value.

All stocks will return to their original value at some point, so buying a tier 3 stock for $100 might be a rare happening, it is also guaranteed to make the most money over time.

HOW TO PLAY

The game is played with the mouse. On the left side of the screen you see 12 buttons. Each button will show the graph of another stock. (I might change this to 11, because I don't have enough space for 12 buttons... As you can see in the screenshots, one of the buttons is weirdly cramped above the graph... It's ugly.)

On the right side you can see some stats of the current stock. You see what the current price for that stock is, how many you own, and how many you've invested in it, or how many was payed out.

Below those stats are 2 more buttons: A buy and a sell button.

1740882150817.png

1740882185675.png

1740882223794.png

(One graph shows the last 52 ticks of a single stock. Each tick is 2.5 second, so it takes 2 minutes and 10 seconds for a stat to leave the graph)

Simply click the buttons to buy or sell the active stock. (Those buttons are now still red for all stocks, but I plan to give the buttons the right color for each stock.) You can hold Shift to buy the maximum number of stocks at once (either till your portfolio is full, or till you run out of money) or to sell all stocks at once.

Careful! All graphs are updated at all times! While you are waiting for the value of that tier 2 to drop, you might miss the chance to sell your tier 1 stocks for the highest price. And while you gaze at the value of your owned stocks to go up and up, you might miss the chance to buy a higher tier at steal prices.

GOAL OF THE GAME

Make those numbers go up and up and up. I've programmed the numbers to be easy to read with going all the way up to 999.99 quintillion. And is going to take forever, though... But getting your cash as high as possible, that is the goal.

Besides... There are gonna be achievements (for the lack of a better word). Little trophies you unlock by making good trades. One might see it as a goal to collect those trophies, but they are not just for show. The more trophies you collect, the more stock you can fit in your portfolio.

NOT THERE YET

I am going fast, but I still have things to do. I mentioned the color of those buttons. It's not hard, just a lot of work. That alone might be another hour. I also want to create a nice background and some flashy graphics, but I don't know what, just yet. The same goes for stats. I have some space on the right that I can fill up with more stats, but what? Idea's are welcome...

I also have some ideas I can still add, like an auto-buy button, which you can activate to automatically buy stocks when they fall under a certain value. Or a button that you can activate on a stock, so the screen will change to this stock when it reaches a certain height. There are plenty of idea's I can add to this, but the base mechanics are all done.

DEMO & VIDEO

The demo is a web-based game. You don't have to download anything.
Once the game is finished, I will make the plugin available for download.

For test purposes:
- All buttons are activated (while in the full game they need to be unlocked)
- Holding Z will speed-up to 1000% (10x speed)
- Saving is disabled

PLUGIN

I created a plugin to create this game. I have put the following in help text:
I created this plugin for my own use, but if you like it, you may use it.
You have to figure out how it works for yourself, though, because I did not make a tutorial.

TERMS & CONDITIONS:
Credits to JohnDoeNews.
Can be used in any RPG maker game
Can be edited
Show me your creation. (This is not a request, it's a condition) 😛
So, for those who want to make a game like this...


[DISCLAIMER] Even though we talk about dollars in this game, you do not trade with real money, nor will you make real money with this game. I know most of you probably understand this, but I thought it couldn't hurt to mention this anyway, before someone comes find me and claims I owe them 12 quintillion dollars. (Yes, that is a real number... It's so high, most of you will probably never use or even read it again... Yet, if this gets some players, I might plan to crack up the numbers even more. I know many big numbers... I play CookieClicker for years. 😛 Which is also where I got the idea for a trading game, btw.)
It was a pain in the back to get the decimals to work right. I was going great for values like 1.65 million, but just 1.65 was a problem. It is all working as intended now.

It was also quite a hassle to get my bars to show only between the previous and current vallue, instead of showing it from the bottom to the current vallue.

I think this makes it more feel like an actual stock trading app.

1741274776025.png
*Sigh, if I could get my money back I won't invest in stock again.:hswt:

Anyway, I don't think the idea is quite new, but it is still quite interesting to see someone is making something non-conventional using RPGM.
*Sigh, if I could get my money back I won't invest in stock again.:hswt:

I guess you lost some money? Or is it like stuck in a fund? What happened?

Anyway, I don't think the idea is quite new, but it is still quite interesting to see someone is making something non-conventional using RPGM.

Nah, the idea isn't brand new. I saw it in CookieClicker, where I got the idea. There was also trading in GTA V. 😛 But that is okay, I guess. My chess game was inspired by the ancient board game, and my card battle game was inspired by hearthstone and others. My football manager, is inspired by Hattrick and The Manager. Did you see my game Safe Deal? That's basically Deal Or No Deal. And my Super-Tic-Tac-Toe game? I saw that on youtube. 😛 I never made a secret of any of that.

I see something cool, and I think: "Hey, would I be able to make something like that in RPG maker?" And then I keep thinking about it (for months, sometimes years), till I have somewhat an idea of how to do it. Then I start experimenting, still wondering if I would be able to pull it off.

But that doesn't mean I just blindly copy everything I see... I get the base principle of a game, and then do my own thing with it. My card game isn't a copy of hearthstone, my football manager isn't a copy of hattrick. They are my games with my rules and my mechanics, with some similarities here and there, with the other games.

It is really much like anyone making an RPG. RPG's are also done before, yet one RPG isn't the other RPG. Not only do they have a different story, but also each RPG has their own gameplay. An in-game tutorial to your RPG would be useless for my RPG. Just like that, my trading game is a trading game like any other trading game, but yet it isn't the same game.
OMG... I just found out, where I thought I shared a link to the demo, I shared a link to this post... in this post... I corrected it, but for those who missed it:
I tested it out for 5min and make a sweeping $1000,- + and it looks really cool.
but I think the % is a bit wrong when adding or decreasing if I see the bars.

with 0.1% to 0.5% to 1.2% (each has its own bar) while 0.5 to 1.2% is only + 0.7% increased.

but the different stocks to choose from is nicely done, it just take a while to get
the red and orange button stocks to increase to the next one.

but it looks really nice to waste time ^^
0.5% to 1.2% is actually a 140% increase... (1.2% is 2.4 times bigger than 0.5%)

But you mean that when you have only 2 values, one is all the way up and the other is all the way down, right? I can easily explain that...

At first it might seem as if the top of the graph is the top value and the bottom of the graph is 0... But in reality the bottom of the graph is the lowest value in the graph. Meaning if you have 2 values on the screen only, you only have a single bar all the way going from top to bottom, or the other way around.

The bars shown on screen, are actually correct, it is just not what you expect.
I am working on an in-game tutorial that explains this. I is good to know that this is one of the things that needs clear explanation. I see how this is absolutely not clear without it. Maybe after a while players might figure it out, but not at first sight.

But the smaller the difference between the lowest and the highest value, the larger the difference between bars. That is also why bars seem to be growing/shrinking, then the top and bottom value chance. Which is very noticeable when you hold Z.

---

Doubling your money in 5 minutes is quite fast though... But I assume this was including you holding Z to speed up time to 1000%? That means in real life you'd double your money in 50 minutes.

More luck is involved when not holding Z, since you won't be staring at your screen for 50 minutes. At least, that is the idea. You go watch a movie, take a shower, fool around with your lady, and when you come back, your stock is either up, or down.

Or did you test without holding Z and still doubled your money?

---

To get from one color to the next takes a while indeed... And that is the idea. 😛 It's a waiting game. You have to multiply your money by 10 each time to get to the next tier... But the next tier is rising or falling too.

You might be lucky, if your first stock rises fast and 2nd or 3rd tier is plummeting. Or you might be unlocky, if the second and third stock raise to 1000% of their original value and stay there for a while.

---

Thanks for the feedback.

If you tested without holding Z, please let me know, because than either raises are too fast, or you were just lucky. If you indeed did this in real time, then I might need more testing and tweaking the formula to find out if that was a normal result, or a lucky one.
I won! im rich! Just ordered a Jet Plane....and a pizza because im hungry.


Wait, not real money? Ohh shi.... I gotta make a call real quick!
Doubling your money in 5 minutes is quite fast though... But I assume this was including you holding Z to speed up time to 1000%?
I did it without and with Z, but double speed is fast up or down, so quick money.

if its run parallel, you might want to disable speed to keep it the way you want.
while I have a plugin that stops autorun events, it can turn into disable all parallel
too 😛

but if you don't mind they speed up, let them (but you can build a failsafe)
as if they press "Z" nothing happens in parallel 😀 (make sure Enter and space
wont work either ^^ or just the entire keyboard, but not the mouse.
I won! im rich! Just ordered a Jet Plane....and a pizza because im hungry.


Wait, not real money? Ohh shi.... I gotta make a call real quick!
Always read the small print before you invest play-money. You don't want to lose your virtual house, divorce your imaginary lover and get your fantasy car towed. Then you have to pretend to live on the street and fake being a junky, doing questionable things behind the fictional train station, for a pretend meal...

See, with games like this, the game is in your head. And when you mess up in your head, your whole life gets messed up, in your head. 😛

I did it without and with Z, but double speed is fast up or down, so quick money.

if its run parallel, you might want to disable speed to keep it the way you want.
while I have a plugin that stops autorun events, it can turn into disable all parallel
too 😛

but if you don't mind they speed up, let them (but you can build a failsafe)
as if they press "Z" nothing happens in parallel 😀 (make sure Enter and space
wont work either ^^ or just the entire keyboard, but not the mouse.
Oh, speeding up is not going to be part of the game, it is there for testing purposes.

You might have never seen this, because you saw the main post before the demo was added, but it says this under the link:
For test purposes:
- All buttons are activated (while in the full game they need to be unlocked)
- Holding Z will speed-up to 1000% (10x speed)
- Saving is disabled
So, you also don't start with all tiers available either.
Z didn't really speed up 1000%, maybe double like default, but you could
change it though to speed it very quickly ^^

but I didn't I might have missed the all buttons activated, but saving disabled
was clear "in red letters".
Z didn't really speed up 1000%, maybe double like default, but you could
change it though to speed it very quickly ^^
Well, without holding Z, it should wait 150 frames, with holding Z, it should wait 15 frames. That should be 10 times as fast. Maybe it is too fast for the engine to update 52 images 4 times per second and causes lag? Maybe because it is a browser game, the lag is worse. It goes real fast in my local version.

but I didn't I might have missed the all buttons activated, but saving disabled
was clear "in red letters".
Yeah, that is mentioned in the demo itself, indeed. The rest is only explained in the main post of this thread, in an edit I made to add the demo to the post. 😛 I should have mentioned all 3 of them in the demo itself. 😛

Original thread: https://forums.rpgmakerweb.com/threads/stock-trader.175927/