Cookie Clicker

Cookie Clicker

CookiStocker 2 | Automatic Stock Trading Mod
251 Comments
karlsson.felix09 Dec 7 @ 6:39am 
"Client resources to run automatic trading. Please see the following line and read" I can't see all the text and idk what to do
z  [author] Nov 24 @ 12:30pm 
This mod will get you the most stock market profits of any stock market mod I have seen, without needing to do anything that can be interpreted as cheating even by very conservative definitions of this word. An even more profitable version of this mod will be released soon.
DreamerTheBurp Nov 23 @ 1:58am 
is this a mod meant for getting profit in or just selling and buying randomly?
z  [author] Nov 14 @ 6:41pm 
I have renamed the thread formerly known as Changelog to be Release Notes, and you can access it through its name in this post, which is a link. It will be updated fairly regularly until the next release. The thread remains locked so that it can be a simple record of release notes for this and future versions. Future releases will be described in that thread as well. However, as that thread is maintained as a single post so that the most recent releases are described first (at least for now), subscribing to that thread will not alert you to any changes in the post. Instead, changes will be announced here, and I strongly recommend that all CookiStocker users subscribe to this thread.
z  [author] Nov 14 @ 5:07pm 
I am happy to report that the development and testing of the next version of CookiStocker is complete. All that remains is documenting the changes, which are significant. They will be documented both in a Release Notest discussion thread and in the main Steam Guide, which will be thoroughly updated. For current users, reading the Release Notest will contain an in-depth description of all the changes in the current version; this description will also be incorporated into the Steam Guide, which will be undergoing a major update. Links will be provided when these additions are complete.

Since the new release has turned into much more than just a bug fix, it will be numbered 3.1.0. Most notably, a slight change to the trading algorithm, described two posts below, has allowed CookiStocker to provide meaningful but not overwhelming stock market returns throughout the game - a long term goal of mine. And these returns can be obtained with absolutely no cheats whatsoever.
z  [author] Nov 10 @ 5:12pm 
I wanted to update everyone on the progress of my current testing.

It turns out that the changes I have made to CookiStocker described in the last paragraph of my previous post have had a surprisingly big (and positive) effect on stock market returns. I am continuing to test how this impacts default settings for CookiStocker.

Meanwhile, I am also testing lower values for the minimum number of required brokers for automatic buying. Currently, this is set to 72 by default (changeable in the Options), but my testing has shown that the stock market is still profitable with as few as 58 brokers (implying a 1% commission), allowing trading to begin earlier than it would otherwise. I am testing even lower numbers of required brokers and will let you know what I find. In the meantime, you can set this number to 58 in the Options and still be assured of a steady profit. Buying more brokers will still increase your profit margins, of course.
z  [author] Oct 30 @ 3:26pm 
For those who may be wondering what I've been doing, I've been adjusting the game to deal with the much larger variation in warehouse size that comes with the new Exponential Warehouses and the Warehouse Exponent. I've ended up changing what has been a rather fundamental aspect of the mod, namely that it always buys the maximum number of shares (warehouses) available.

Unfortunately, as these warehouses expand with game play and specifically ascensions, it takes longer and longer before a player can afford to buy all the available shares of a stock. This results in a longer and longer delay before auto buying can be enabled in the game.

Therefore, I have removed the restriction that a player must buy either all or none of a stock's available shares. Instead, the player can buy a fixed amount, which has a lower bound of 100 shares (settable by the player). This allows auto trading to be accessible much earlier in the game - both for full auto trading and the vanilla version as well.
Barry Gibb's Chest Hair Oct 22 @ 7:53pm 
Got it, thanks!
z  [author] Oct 22 @ 5:24pm 
Barry Gibb's Chest Hair - Please see my post directly below your first post to understand why the banked cookies text was red.
Barry Gibb's Chest Hair Oct 22 @ 3:25pm 
Ahh okay thank you. I actually figured it out. The banked cookies text was red even though I had more than enough, but I reset my game and it's fixed.
z  [author] Oct 22 @ 2:45pm 
Banking cookies is just another way of saying earning and saving cookies. The big total number of cookies in the upper left of the game is the number of cookies in your cookie bank.
Barry Gibb's Chest Hair Oct 22 @ 1:50pm 
Sorry if this is a stupid question, but how do you bank cookies?
z  [author] Oct 21 @ 8:59pm 
Lightball - You actually need the Maximum number of cookies for auto trading to be enabled. When you have that much, the Banked Cookies label will turn from yellow to green.

I apologize for the confusion here. In the next release (which is coming soon), both the labeling and the error message will be a lot clearer.
Lightball Oct 21 @ 8:24pm 
this just.. stopped working for some reason? i have enough brokers, i have more than the required minimum but its still saying insufficient resources and not doing ANYTHING anymore
z  [author] Oct 20 @ 7:08pm 
For those people who want to know how Exponential Warehouses and the Warehouse Exponent slider work, I have given a detailed explanation in this post in the Future Development discussion. This explanation will eventually be incorporated into the Steam Guide. Note that the Warehouse Exponent slider is currently nonfunctional due to a couple of bugs, but I have fixed these bugs, and the fixed version of this feature will be available in the next release, which is coming soon.
z  [author] Oct 19 @ 2:03pm 
pogof - There is one suggestion of yours that I think I should adopt immediately, and that is the one about a more specific error message. I also hate error messages that are too generic, and I'm afraid I have created one here. So I will fix it to identify exactly what the problem is.
z  [author] Oct 19 @ 1:56pm 
pogof - The surprises you referred to were due to a bug that has been fixed; a release with the bug fix will be coming out soon. I definitely don't want to subject players to "surprises" like that. The standard auto buying of brokers and auto trading occur at a level that is low enough that it does not have a significant effect on the cookie bank.

One of the reasons to list the number of brokers owned is that this number is displayed in red if it is below the number of brokers needed. This immediately makes it clear what one source of "insufficient resources" is.

I've changed the messages about cookies required as described in my previous post; we'll see how that goes. If necessary, I'll simplify that whole process further.

As for starting out with all actions disabled, I can tell you from experience that this will lead to a lot of posts along the lines of, "I installed CookiStocker, but it isn't doing anything!" Basically, no set of defaults is going to please everyone.
pogof Oct 19 @ 2:30am 
Ah I see now. So I have to still farm more cookies then. As it is now it doesn't make much sense. I would like to suggest the following changes:

* The Mod should start with trading and autobuy brokers disabled.
This is to prevent surprises and for the player to have time to go through the settings before anything actually starts happening.

* The required resources line should really only include the necessary info.
- Brokers needed (red, not enough, green enough)
- Cookies required (the amount of banked cookies required for the auto trade to start; red, not enough; yellow, minimum recommended range; green, safe amount)
- Max bank use [%] = [cookies used per trade]

There is no need to write how many brokers you own when it is literally written two lines above it or anything else that you can read elsewhere.

The red message could also tell you directly what is the exact problem instead of the generic message and "read the steam guide".


And now to get to cookie farming :D
z  [author] Oct 18 @ 7:39pm 
I'd like to refine my previous recommendations to the following: For the first number, the label would be "Cheapest trade:" while for the second number, the label would be "Any trade (required cookies):". Comments are welcome.

Unfortunately, this line is the longest in the display already. This makes it very difficult to use more verbose labels.
z  [author] Oct 18 @ 5:13pm 
After considering my last post, I think there is a problem in that the labels in the display are somewhat misleading. I'm thinking of changing "Required cookie minimum" to "Cookies for cheapest trade" and changing "Maximum" to "Required cookies." What do people think of these changes? Does anyone have any other suggestions?
z  [author] Oct 18 @ 5:01pm 
Yellow means you have enough cookies to buy at least the cheapest stock, but not the most expensive. The auto trading mechanism needs to be able to trade all stocks in order to perform properly. So once your number of cookies reaches or exceeds the Maximum cookies number, your cookies number will turn from yellow to green, and auto trading will automatically start.

This information will be included in the revised Steam Guide that I'm currently working on.
pogof Oct 18 @ 3:15pm 
Hello, the mod loads for me however it will not auto trade, displaying the red text "THERE ARE INSUFFICIENT RESOURCES...", however I own 102 brokers, have the highest werehouse and banked cookies is yellow 928 octodecillion) and green required minimum 72 octodecillion. So I'm not quite sure what am I doing wrong.
z  [author] Oct 18 @ 1:53pm 
Since there are now multiple users requesting that this mod add no extra achievements, I think I need to address this issue in full. Please read Post #13 in the Future Development discussion and post a response there. The responses in that discussion thread will help me decide how to handle this issue.
Overspark Oct 18 @ 5:05am 
3.0 looks like an excellent update, but I haven't updated yet because I want to keep my achievement list vanilla, just like OpenSauce. An extra option for that would be really appreciated!
グレイ2 Oct 15 @ 2:54pm 
I love this mod.
without this mod, i was impossible to unlock achievements related to stocks.
ty
OpenSauce Oct 15 @ 6:28am 
An option to turn off the extra achievements this mod adds would be nice. I use this mod for its automation, not to add extra progression. I want to keep my list of achievements vanilla.
z  [author] Oct 14 @ 10:11pm 
I have fixed a number of bugs in the last CookiStocker release. The new release (3.0.2) has been installed here, and if you subscribe to CookiStocker, you should get this release automatically the next time you reload your game. Pastebin and Google Drive versions of the mod have also been updated; please see the section on Installation in the Steam Guide for more details on these. This version of CookiStocker contains no known bugs.
z  [author] Oct 14 @ 9:50pm 
BubbasawDBD - The maximum cookies required (which I assume is what you mean when you say "maximum stock price") refers to the most expensive single purchase you can make, where the purchase price is the number of shares available times the price per share, which is then multiplied by the highest number of raw cookies per second attained in the current ascension. (Raw CPS does not include cookies generated by buffs or clicks, so it's a fairly stable baseline. Raw CPS does include long-term effects, such as what's in your garden.)

You can find the number of shares available and the price per share in the main stock market display. You can find both the current raw CPS and the highest raw CPS for this ascension on the Stats page, under General. If you do the calculations mentioned above, I think you'll find that the maximum required cookie amount is being calculated properly.
BubbasawDBD Oct 14 @ 9:31pm 
Im not sure what im doing wrong but whenever i get a good combo and my bank floods with a lot of cookies the maximum stock price doesnt reflect the actual prices of the stock but instead seems almost random. It makes it so the automatic purchases stop working even though the max stock at the momenth isnt nearly as close as the mod says
z  [author] Oct 13 @ 7:11am 
OpenSauce - The reason that the default max bank percent per purchase is set to 5% is that when automatic trading begins, it is common to purchase around 10 stocks fairly quickly. This would add up to about 50% of your bank, which I thought was a reasonable maximum. But if you don't like this, you can easily change it with the slider in the Options menu. You can put it all the way up to 100% if you like.

You're right that the options aren't fully described in-game; as I mentioned below, their full description will soon be available in the Steam Guide. In the mean time, I can tell you that the cookie minimum and maximum values are the costs to buy the cheapest and most expensive stocks, respectively. Since the mod doesn't know ahead of time which stocks it will want to buy, the maximum value is indeed used as a threshold for permitting auto trading.

The Warehouse Exponent description will need to wait for its explanation in the Guide. The default value does nothing.
OpenSauce Oct 13 @ 5:09am 
The new features in the 3.0 version of the mod have strange defaults that cause unexpected behaviour when updating. In particular, the max bank percent per purchase being set to only 5% is incredibly low.

The features themselves are also kind of poorly explained in the UI. "Required cookie minimum" reads as the minimum required cookies for trading, but this isn't the case. The "Maximum" value is what actually seems to control this, but even then it's unclear to me what exactly this Maximum value represents.

The in-game description of the "Warehouse Exponent" value is also very hard to understand.
z  [author] Oct 11 @ 4:36am 
CookiStocker 3.0 has now been uploaded to Steam. For those who subscribe to this mod, you should get it automatically the next time you restart Cookie Clicker. It contains all the new features described in this post, plus a few more. The basic function of the new features should be quite self-explanatory. However, I will also be updating the Steam Guide to include a complete description of all the new features and their use, including how they can be used in your stock market strategy.

The new version has been tested extensively, but as always, there may be bugs. If you think you have found one, please report it in the Bug Reports discussion thread.
z  [author] Oct 9 @ 3:29pm 
What exactly did you do to download the mod?
GDICommander Oct 8 @ 10:45pm 
I downloaded this mod, but I dont see it in the mod page, is there something different about it?
z  [author] Oct 8 @ 2:58pm 
The dragon aura supreme intellect simply makes the market more chaotic, which has no effect on the trading algorithm. (I tested it.) I have this aura on myself for its other benefits.
ChrispyKnight Oct 7 @ 8:36am 
Does the mod work better or worse when using the dragon aura supreme intellect?
z  [author] Sep 21 @ 11:52pm 
Thanks, Agnostos! The update is running a bit late because I got a little carried away and added a bunch of new features. They're all done now, though, and I am in the final stages of testing. There are a large number of new features that I've added - enough to bump the version number to 3.0.

You can find a full list of features in the upcoming release in this post in the CookiStocker Versions 2 and 3 discussion. [Note that this most recent post supersedes the initial post in that discussion.] You can also see what the new options page looks like here. [imgur.com] All the features on the new options page are explained in the post referenced above.
Agvostos Sep 18 @ 2:17pm 
Glad to see you are still looking to improve CookiStocker and thanks for explaining why the mod decides to not buy stocks, and the slider seems pretty useful. Keep up the good work, can't wait for the update.
z  [author] Sep 10 @ 10:34pm 
Currently, the minimum number of brokers required for automatic trading is set to 58, which corresponds to a commission rate of 1% (in contrast to the commission rate of 20% that you get if you have no brokers). Surprisingly, I have found through testing that a 1% commission results in long-term profits that are only 30% as much as those that are made when using 162 brokers, which corresponds to a commission of 0.005%. Therefore, I am doing tests with a larger number of brokers to see what commission level gives the best balance between number of brokers and investment return. This number, which will be the new default, will be at least 103, which corresponds to a commission rate of 0.1%. However, there will be a slider in the new Options settings that will allow you to adjust this minimum to whatever you want.
z  [author] Sep 10 @ 10:21pm 
After much investigation, I found that the mod's failure to buy stocks was not a bug at all. The mod was simply following its directions that no single purchase should be more than 5% of the current bank.

Now different people may have different tolerances for risk, and also different ideas of how much of their bank they're willing to spend on a single stock. Therefore, although I'm keeping the 5% minimum as a default, I'm adding a slider in the Options that will let the player set this value anywhere between 1% and 100%. Hopefully, this should make everyone happy (at least about this feature).
z  [author] Sep 10 @ 1:57am 
Status update - As some of you have noticed, CookiStocker occasionally gets into a mode where it will not trade stocks even when it should. I have found and fixed this bug, and this fix will be present in the next release. More updates in the following post...
z  [author] Sep 10 @ 1:56am 
[continued]
The Options buttons feature has been fully implemented and appears to be working perfectly; testing is almost complete, and will not take much longer.

The biggest holdup right now is that the statistics showing earnings per hour and per day in the main window, and the more detailed statistics when console logging is turned on, often get corrupted upon game reload. Other statistics, such as total profits and various other totals, are not affected. This should not take long to fix.

There are also a couple of other features I'd like to get in here if time permits; one of them will extend the stock market's usefulness substantially.

All in all, I expect to put out a new release within the next week. This will still be a Version 2 release, as Version 3 will include a much more sophisticated trading algorithm.

Your patience is greatly appreciated here.
EightBitDonut Sep 9 @ 12:09pm 
when do you think you'll be able to finish the update? i want to use the mod but having to go into the files to do so is too unintuitive for me to follow.
^Gancro^ Sep 6 @ 7:38am 
I forgot to mention that I have same issue as SirZedlus. Nothing is buying anymore. I should've seen it after few hours but it doesn't seem to it now.
^Gancro^ Sep 6 @ 2:49am 
This cookistocker you've been working is version 3 or an update?
z  [author] Sep 3 @ 3:38pm 
I'm adding something that people have wanted for a long time, and it's almost finished. You can see a screenshot of it here. [drive.google.com]

Note that I didn't write the code. In fact, nobody wrote the code.
z  [author] Sep 3 @ 12:51pm 
SirZedlus - How long has the mod not been buying stocks (e.g., hours, days, etc.)? The stock market as a whole often goes through periodic declines where all stocks fall for many hours at a time, and the mod typically does not buy stocks during these declines.
SirZedlus Sep 2 @ 4:56am 
its wierd I have 23 million in displayed profits now but the mod just stopped working and does not buy any stocks anymore any Idea why?
z  [author] Aug 28 @ 3:22am 
Overspark - It is indeed! I just implemented this feature on my version of the mod a few days ago, and I was surprised to see how nice it was just to have the mod buy the brokers automatically and not have to worry about them at all.

This feature will be in the next release, which is coming very soon.
Overspark Aug 26 @ 5:11am 
Automatic buying of brokers would be an awesome feature.