ridetore.blogg.se

Bitburner stock market script
Bitburner stock market script







bitburner stock market script

It stays pinned to your game screen, but you can minimize it to temporarily hide it, and start/stop the script directly from it without needing to re-run commands or go back into the Active Scripts tab again!Įdit: Small bugfix. The Log window also has useful functions on it. Just run this on home and find the name you saved it under "home" on the Active Scripts tab. You can find a script's logs under the "Active Scripts" tab. Ns.print("SYM | InitReturn -> CurReturn | % change")Īwait ns.sleep(5 * 1000 * numCycles + 200) the Initial Return and the Current Return. Symbol, Initial Return, Current Return, The % change between 40% less forecasted return nowįunction pChange(ns, sym, oldNum, newNum))] forecasted return and the current return of the stock. Let expRetLossToSell = -0.4 // As a percent, the amount of change between the initial Let numCycles = 2 //Each cycle is 5 seconds Let commission = 100000 //Buy or sell commission I left it running overnight, and now I have 400t in hand, with a decent bit more still invested! Works great! let fracL = 0.1 //Fraction of assets to keep as cash in hand I started running this script when I had around 50b gold in-game. Also added a few QOL improvements to the script's logs in how it's output. This also weighs every stock against it's own profitability, and not just against the most profitable stock at the time, so we can make a lot more income investing in every single profitable stock, and then selling them off when they are no longer profitable. So the script would continue to try and purchase stocks even when none were available on the market, and slow down production significantly. Additionally, there were checks missing for the number of stocks available to purchase. Once a stock loses a specific amount of profitability after owning it, then we sell it. I added a few new systems in place to check how profitable stock is when you initially purchased it, versus how profitable it is currently. Some of the main issues were outdated references to ns.stock and some logic flaws. This is an updated version of the script found here.









Bitburner stock market script