Skip to content
TORNLIFE More

[script] Smart Stock Vault

Started by Faids [3661908] on in Tools & Userscripts.

97 replies · 2.55k views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 98 / 98 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
98
Discussion span
→
Authority score
40 / 100
Historical score
37 / 100
Story score
55 / 100
Engagement score
84 / 100

People posting, likes and official posts are not counted for this thread yet: on threads longer than one page they come from a periodic pass over the archive, which has not covered it.

Most-liked replies

Mentioned in this thread

TheALFA [2869953] ×2 Faids [3661908] ×2

Faids [3661908]

Smart Stock Vault v10.2.12

Stock portfolio tool for Torn: vault protection, P&L, block progress, and swing trading. Same Smart UI family as Gym and Racing.

[image: imgur.cxtbin.com]

Download: Greasy Fork - Smart Stock Vault

Features

Smart series UI

  • Panel and modals match the Smart series look (same family as Smart Gym)
  • Cleaner layout, colors, buttons, and settings
  • Built-in charting removed (smaller script; signals and analysis still work)

Module visibility

  • Settings → Modules: show or hide Portfolio P&L, Gamble, Swing Trading, and Vault Stocks
  • Hidden modules are not loaded
  • Each section remembers expanded/collapsed state

Minimal Mode

  • Settings → Vault: show only Vault Spread, Rebalance, Withdraw, Lock Blocks, and Smart Mode
  • Hides P&L, Swing, Daily Income, and the stock breakdown
  • Uses Torn's normal stock list for portfolio view

Multi-stock vault

  • Multi-stock portfolio with block tier protection
  • Lock/unlock individual stocks from vault operations (🔒)
  • Vault Stocks: allocation %, dip/RSI, BUY/SELL/HOLD badges, Quick Buy/Sell

Vault operations

  • Vault Spread: put cash into vault stocks
  • Rebalance: rebalance allocations
  • Analyze: refresh vault stock signals (hidden in Minimal Mode)
  • Withdraw: pull cash out with several strategies
  • Quick Buy/Sell: trade from the vault list (one click per trade)

Deposit strategies

  • Swing Strategy (default): same signal inputs as swing scan
  • RSI Weighted: prefer oversold names
  • Equal: split evenly
  • Dip Weighted: prefer stocks that are down
  • ROI Priority: weight by benefit ROI

Withdrawal strategies

  • Proportional (default): same % from each stock
  • Loose First: sell above benefit thresholds first
  • Swing Strategy: weight by signal (worse signals sell more). Respects Lock Blocks and swing-protected shares; caps each stock per run
  • Worst ROI: sell lowest ROI first
  • Best Performers: take profits from stocks that are up

Protection

  • Lock Blocks: keep benefit-tier shares off the sell path for withdraw/rebalance
  • Exclude locked blocks from Total Vault Value (Settings → Protection): with Lock Blocks on, total value counts loose + swing-protected only
  • Per-stock 🔒: skip that stock for spread/withdraw/rebalance
  • Swing position protection: active swing shares are treated as protected for vault sells
  • Smart Mode: skip SELL / TAKE PROFIT names when spreading/rebalancing

Portfolio P&L

  • Syncs buys/sells from Torn API logs
  • Realized and unrealized P&L (FIFO), sell fees
  • Period filters and full transaction history
  • Needs a Full Access API key

Swing trading

  • Track positions with target and stop (% or $)
  • Add Position: track owned shares, buy with cash (amounts like 100k), or track + buy more
  • Close Position: optional market sell (on by default), partial close, exit reason, fee/P&L
  • Signals on position cards (with age; stale after 30 min)
  • Merge into an existing position, undo full close (tracking-only closes)
  • Journal and performance stats
  • Signals scan vault stocks only (same list as Settings → Vault)

Block progress

Icons on each vault stock:

  • Gray: no block yet
  • Teal: has a tier, more available
  • Yellow: near next tier (80%+)
  • Green pulse: can afford next tier
  • Solid green: max tier

Gamble module

  • Cash above Deposit; available withdraw value above Withdraw
  • Preset deposit/withdraw amounts and Panic deposit
  • Target stock from your vault list

Settings

  • API: key and validate
  • Vault: stocks, strategies, keep amount, Minimal Mode
  • Modules: show/hide main sections
  • Protection: Lock Blocks, Smart Mode, exclude locked blocks from total value
  • Advanced: bank ROI rates, clear analysis cache

Amounts in the UI show as whole dollars (no cents). Form inputs and bank APR still allow decimals where needed.

How to use

Setup

  1. Open the Torn Stock Market page
  2. Open Settings (gear)
  3. API: paste your Torn API key
  4. Vault: pick stocks and strategies
  5. Modules: hide what you don't use (optional)
  6. Turn on Minimal Mode if you only want deposit/withdraw

Day to day

  • Vault Spread: amount or blank for all cash
  • Analyze: refresh vault signals (when not in Minimal Mode)
  • Withdraw / Rebalance as needed

Blocks

  • Block icon (▣) next to the lock on each stock
  • Click for Quick Block → buy with cash or rebalance (one click per trade)

P&L

  1. Expand Portfolio P&L
  2. Full Sync for history
  3. Use period filters / History

Full Access API key required.

Swing

  1. Expand Swing Trading
  2. Signals → Scan (vault stocks)
  3. Track from a signal or + Add Position (track / buy / both)
  4. Positions: monitor; Close Position to sell and/or close tracking
  5. Journal: finished trades

Requirements

  • Torn API key in Settings
  • Full Access key for P&L / transaction history

Other Smart scripts

Smart Racing · Smart Panic

Support

  • Check the browser console
  • Confirm the API key (Full Access for P&L)
  • Settings → Advanced → Clear Analysis Cache if signals look stuck

Forum thread: Smart Stock Vault

Credits

Originally based on Stock Manager & Advisor by TheALFA [2869953].

License

Provided as-is for the Torn community. Noobler [3661908].

Mentions: Faids [3661908] · TheALFA [2869953] · [script] Smart Racing · [script] Smart Stock Vault

Faids [3661908]

Support

If you are having issues with the script, use this thread for support requests. Include console logs from your browser if there are any errors (F12 → Console). I cannot diagnose script-not-loading issues without logs.

Faids [3661908]

Roadmap

  • Torn light theme support (all smart series scripts)

 

Ongoing issues

  • Rebalance when there are no undervalued stocks wants to buy for money amount from stored locked blocks. Strange bug, fix in next release.
Peerr [4022798]

awesome script! if possible, i hope you make signals and smart suggestions save. that way we dont need to load it everytime we open stocks.

Faids [3661908]

It is coming in the next version. I am going to allow buying from the swing signals and making different strategies (aggressive, conservative, momentum, etc.) The signals for existing trades will update so the user knows when it is time to sell/buy/hold.

[image: imgur.cxtbin.com]

AeC3 [2883335]

When rebalancering it seems like it wanna rebalance the whole Portfolio not just the "extra" cash stored in stocks 

I dont wanna touch what i already have in active blocks just the "extra cash"

Is that possible?

Faids [3661908]

do you have Lock Blocks checked? I just tried and the rebalance isn't touching any locked condition for me (blocks, stock lock or swing trade). I did find a slight sync issue with the check box but it shouldn't create this problem. If you did have the lock blocks checked, were your blocks existing when you installed the script or purchased with the script?

AeC3 [2883335]

Vault spread seems like its against TOS since it is 1 Action for buying more than 1 Stock 

I dont wanna get banned 

Im not gonna use this until clarified by staff or fixed for 1 click to 1 Action 

 

Rebalancering should include stocks where profit is bigger than the 0.1 fee or a set % you could set in settings 

Im Sorry its looks cool tho 👍👍👍

TheALFA [2869953]

I like the idea great work 

I was looking for a way to get historical data to work on trade assistant now I can do it thanks to ur improvement to the script 

 

The distribution thingy I haven't tried it yet but if it does multiple actions for 1 click then it's against TOS

Faids [3661908]

hrm, ill look at it, it certainly does it all in 1 motion didnt realize it was against TOS just thought websockets were an issue. What if I did buttons next to each stock for the buy/sell like you do in advisor?

Faids [3661908]

v7.2.9

Changed

Manual Trading Execution - Converted all automated multi-trade features to manual button-based execution for TOS compliance:

  • Rebalance Modal: Replaced single "Execute Rebalance" button with individual "Sell" and "Buy" buttons for each trade
  • Vault Spread Modal: Replaced single "Execute Spread" button with individual "Buy" buttons for each allocation
  • Smart Withdraw Modal: Replaced single "Execute Withdrawal" button with individual "Sell" buttons for each stock
  • Quick Block Rebalance: Replaced automated rebalance with manual sell buttons and buy button that enables when sufficient cash is available
  • Users still get all the smart planning/calculation benefits, but must manually click each button to execute trades
  • Progress tracking shows X/Y trades completed for each modal
  • Button states: pending → executing → completed/failed with visual feedback
  • Modals remain open so users can execute all trades in one session

 

---

 

This was done very quickly to put the script back into TOS. I will need to test all of the functions again but quick glance looks like it is working.

TheALFA [2869953]

You can do so this is why I made. A drop down to select the stock 

And in the advisor I could have made it that when u click invest it will automatically sell wrong placed stock and buy the correct one , but to go around that I made mini sell button for each so it will be 1 click 1 action

Faids [3661908]

I put the single smash button into the next version, it works well but clicking it 35 times it definitely a downgrade from my automated method :(

 

Working on smarter swing trade strategies and buying directly from the signals. Signals will carry on to the swing trade and live trades screens so the user knows when the signal changes to sell and can sell or buy more.

Working through some balancing issues where I don't have enough money to buy if the price changed too much during the process. Going to create a cushion for the user's cash, bringing it to 0 every time with price fluctuations isn't feasible.

Faids [3661908]

take profit is a "signal" that the stock is moving away from the buy status and should be removed from the portfolio (sell if you have it). I'll word them differently so it isn't confusing but a stock can go into a "sell" status even if you are at a loss or not actually in profit since the market is what controls the signal, not the trader's money.

Overseer [2143302]

Could we get the ability to manage the journal entries? I didn't realize it'd be better to edit the existing position after merging a new purchase, so have some skewed stats in there.