Cookie Clicker

Cookie Clicker

CookiStocker 2 | Automatic Stock Trading Mod
242 Comments
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] 2 hours ago 
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.
Sorry if this is a stupid question, but how do you bank cookies?
z  [author] 19 hours ago 
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 20 hours ago 
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] 20 Oct @ 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] 19 Oct @ 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] 19 Oct @ 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 19 Oct @ 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] 18 Oct @ 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] 18 Oct @ 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] 18 Oct @ 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 18 Oct @ 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] 18 Oct @ 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 18 Oct @ 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 15 Oct @ 2:54pm 
I love this mod.
without this mod, i was impossible to unlock achievements related to stocks.
ty
OpenSauce 15 Oct @ 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] 14 Oct @ 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] 14 Oct @ 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 14 Oct @ 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] 13 Oct @ 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 13 Oct @ 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] 11 Oct @ 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] 9 Oct @ 3:29pm 
What exactly did you do to download the mod?
GDICommander 8 Oct @ 10:45pm 
I downloaded this mod, but I dont see it in the mod page, is there something different about it?
z  [author] 8 Oct @ 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 7 Oct @ 8:36am 
Does the mod work better or worse when using the dragon aura supreme intellect?
z  [author] 21 Sep @ 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 18 Sep @ 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] 10 Sep @ 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] 10 Sep @ 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] 10 Sep @ 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] 10 Sep @ 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 9 Sep @ 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-|- 6 Sep @ 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-|- 6 Sep @ 2:49am 
This cookistocker you've been working is version 3 or an update?
z  [author] 3 Sep @ 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] 3 Sep @ 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 2 Sep @ 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] 28 Aug @ 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 26 Aug @ 5:11am 
Automatic buying of brokers would be an awesome feature.
z  [author] 25 Aug @ 6:32pm 
No problem, sarath_dilrow. The new requirements are currently mentioned only in this conversation. I need to add them to the main documentation, and more importantly (since few people read the documentation), I have to fix the new display to notify the player when and why automatic buying is not running.

It also occurred to me that I should add automatic buying of brokers up to the minimum limit, doing this in a way that doesn't have a significant impact on the bank.

Also, you'll get slightly better results the more brokers you have. I personally recommend 100; after 162, adding brokers essentially has no effect.
sarath_dilrow 24 Aug @ 9:48am 
Thank you for the answer and sorry for the question. Yes, the problem was that I was at 50 brokers instead of 58, bought 10 more and it started auto buying inmediately. Sorry again for the question.
z  [author] 24 Aug @ 5:54am 
sarath_dilrow - If the mod is auto-selling properly but not buying anything, by far the most likely explanation is that you have not met the recently introduced requirements for the mod to purchase stocks. These consist of having a minimum of 58 brokers as well as enough cookies in your bank so that a purchase of all the available shares of a single stock will not consume more than 5% of your bank. The number of cookies in your bank required to fulfill this requirement is given by the following formula:

Cookies required = (number of shares) * (highest raw CPS this session) * (price per share) * 20

Since neither the existence nor the value of this formula is obvious, it seems, I'll need to add another line to the new display indicating what's going on here. In the meantime, a rough guide is that when you have 150,000 seconds or more worth of cookies in your bank (more or less), the mod should be able to purchase stocks. (That's a little less than two days' worth of cookies.)
sarath_dilrow 22 Aug @ 9:39pm 
Hello, sorry if this question is dumb but does the mod wait for some special requirement to buy stocks? The mod auto-sells everything just fine but I have left it running for around 6 hours and it hasn't buy any stock. I tried doing what yaboi did and even reinstalled the mod but no luck.
yaboi skweezy jibbs1 22 Aug @ 3:00pm 
Added CCSE and everything works now, thanks for figuring it out :crystaldragon:
dyl4n010 21 Aug @ 4:35pm 
Doing gods work Z. Insane how quickly and active you're working on improving the mod. Plenty of other mod developers would have taken their sweet time or completely dropped the mod when having so many people report in broken features. Thank you :leyhappy:
z  [author] 21 Aug @ 12:29pm 
Fascinating! The mod even includes the standard line that checks for the existence of CCSE and loads it if it isn't present, but obviously that wasn't sufficient. Therefore, I've added CCSE to the list of Required Items on this page. Thanks, lil' orange for finding this, and thanks, mxrc, for verifying that this fixes your problem as well.
mxrc 21 Aug @ 12:11pm 
Installing CCSE/Enabling CCSE and putting it on top of the mod list has actually solved my issue. Thanks for helping :)
lil' orange 21 Aug @ 6:36am 
Ah yes, my bad I had a typo with my comment. It was supposed to be 615. (Which was wrong anyway I had meant the line you mentioned 610, it’s just that both of those functions gave errors as I was commenting out that function) I commented out the whole replacegamemenu function and its call later on and the mod and the mod worked again. Then I restored it back to the latest, added CCSE and then the mod worked again. I imagine if you remove CCSE or disable it you’ll reproduce the same issues that others have been getting. Prior to this update CCSE I imagine must have been loading fine so not sure why this is happening now for us.
If you want to continue chatting about it I don’t mind but perhaps another place would be better?