Cookie Clicker

Cookie Clicker

127 ratings
AutoStockAdvisor
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.797 KB
16 Jun @ 2:58pm
17 Oct @ 7:33am
5 Change Notes ( view )

Subscribe to download
AutoStockAdvisor

Description
This mod doesn’t disable Steam achievements.
Includes:

Auto-Trade
Automatically buys and sells based on your settings

Buy when:
-stock is active
-you own zero shares
-either price ≤ 50% of resting value and market phase is not “falling”
OR price < $2

Sell when:
-you own shares
-price ≥ 125% of resting value
-market phase is not “rising”

Visible BUY/SELL advice

-BUY indicator shows when above buy criteria are met

-SELL indicator shows when above sell criteria are met

Phase tracking

-Displays current market phase: Stable, Slowly Rising/Falling, Rapidly Rising/Falling, Fluctuating

Extra info
-Resting value (average price)
-All‑time Minimum & Maximum values*
-Duration of current phase in market ticks (1 tick = 60 sec)

*Min/Max values are tracked from mod load and reset on game reload or market reset.

Settings menu
-Toggle on/off:
-Auto‑trade
-BUY/SELL advice
-Phase tracking
-Extra info
-Notifications

How it works
Buy logic
Buys when the stock dips low enough—either under half its average while not in a falling phase, or ultra‑cheap (<$2).

Sell logic
Sells when stocks climb high enough (≥125% of average) and aren’t in a rising phase.

Remember: Cookie Clicker’s stock market is unpredictable, so profits aren’t guaranteed—and hey, code can have bugs, too!
29 Comments
Eeeeel 15 Oct @ 11:29am 
at line 145 (don't have to fix line 148) change M.buyGood(good, 1e6) to 1e5 and check the return value(false when failed to buy) to fix 'not buying' problem since it's what 'buy max' button set to
and for suggestion, at line 46 change to
M.getGoodMaxStock(M.goodsById[good]) - good.stock > 0
to buy more

"Cookie"
Plokmatic Tan 7 Oct @ 7:50pm 
i'm saying that stock banking is most hands-on, this just makes it easy
Plokmatic Tan 7 Oct @ 7:50pm 
this is the main most hands-on cookie method, buy buy buy!
sheetsdeathboy 7 Aug @ 5:14pm 
i hav no friends
Ricky Schabusiness 7 Aug @ 5:10pm 
how do you change the options, all i have is feature on off in settings
Capusta_Uchiha 23 Jul @ 9:58am 
It looks like it only buys when there is enough money to buy maximum amount at once. I can't define it exactly(

Also, can you add that autotrader would buy additional shares up to the maximum if I already have these shares and other conditions are met? It would be great if it keeps buying until it reaches storage maximum or conditions stop being met. Maybe also button to toggle this function
WolfGame  [author] 22 Jul @ 1:54pm 
idk why it's not working, for me it works fine.

It works when the game is minimalized
Capusta_Uchiha 22 Jul @ 10:21am 
I think autopurchase is not working(
After purchase notification appears, stock does not appear in my bank storage.

Also a question - does autotrader work if you minimize game?
WolfGame  [author] 21 Jul @ 9:26am 
thanks for the suggestion, I wanted to add this for a long time but I didn't know how, so thanks for the solution and after some thought, the old logic will bring higher earnings in the long run, but the new proposed logic will make small and large earnings in the short and long run.

Consider it changed in few minutes
Eeeeel 21 Jul @ 6:46am 
I think shouldBuy(good, M) doesn't work as intended,
good.val < M.getRestingVal() * 0.5 &&
... && // down phase checks
good.val < 5
//because the previous code
//1. does not buy in falling phase even when they are already pretty low (like $1)
//2. does not buy when stock is under 50% resting because of the last good.val < 5

needs to be changed as
(good.val < M.getRestingVal() * 0.5 &&
(...phase checks) ||
good.val < 5)

also, Cookie