[script] Smart Stock Vault | Tools & Userscripts | TORN

[script] Smart Stock Vault

​

    • Noobler [3661908]
    • Role: Civilian
    • Level: 58
    • Posts: 81
    • Karma: 79
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Thread created on 18:17:03 - 01/02/26 (7 months ago)
    |
    Last replied 10:28:25 - 04/09/26 (25 days ago)
    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.
    Smart Stock Vault panel

    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].

    Last edited by Noobler on 11:01:31 - 03/08/26 (1 month ago)
    • Noobler [3661908]
    • Role: Civilian
    • Level: 58
    • Posts: 81
    • Karma: 79
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:17:24 - 01/02/26 (7 months ago)
    Post link copied to clipboard Copy post link
    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.

    Last edited by Noobler on 12:27:43 - 02/08/26 (1 month ago)
    • Noobler [3661908]
    • Role: Civilian
    • Level: 58
    • Posts: 81
    • Karma: 79
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:20:54 - 01/02/26 (7 months ago)
    Post link copied to clipboard Copy post link
    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.
    Last edited by Noobler on 02:35:45 - 14/08/26 (1 month ago)
    • Peerr [4022798]
    • Role: Civilian
    • Level: 20
    • Posts: 9
    • Karma: 6
    • Last Action: 14 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 01:16:16 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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.

    9_4022798.png

    • Noobler [3661908]
    • Role: Civilian
    • Level: 58
    • Posts: 81
    • Karma: 79
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 01:51:55 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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.

    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.

    -jwtka5sGCc

    • AeC3 [2883335]
    • Role: Civilian
    • Level: 88
    • Posts: 244
    • Karma: 71
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 06:22:50 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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?

    • Noobler [3661908]
    • Role: Civilian
    • Level: 58
    • Posts: 81
    • Karma: 79
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:24:06 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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?

    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]
    • Role: Civilian
    • Level: 88
    • Posts: 244
    • Karma: 71
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:35:50 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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?

    Noobler [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?

    Yes i have lock block checked 

     

    • AeC3 [2883335]
    • Role: Civilian
    • Level: 88
    • Posts: 244
    • Karma: 71
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 16:37:14 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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 👍👍👍

    Last edited by AeC3 on 16:45:40 - 02/02/26 (7 months ago)
    • TheALFA [2869953]
    • Role: Civilian
    • Level: 62
    • Posts: 492
    • Karma: 179
    • Last Action: 20 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:40:21 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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

    • Noobler [3661908]
    • Role: Civilian
    • Level: 58
    • Posts: 81
    • Karma: 79
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:46:36 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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?

    Noobler [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]

    Yes i have lock block checked 

     

    i pushed an update that should fix this. 7.2.8

    • Noobler [3661908]
    • Role: Civilian
    • Level: 58
    • Posts: 81
    • Karma: 79
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 17:47:52 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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

    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?

    • Noobler [3661908]
    • Role: Civilian
    • Level: 58
    • Posts: 81
    • Karma: 79
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:04:13 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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.

    Last edited by Noobler on 18:06:29 - 02/02/26 (7 months ago)
    • TheALFA [2869953]
    • Role: Civilian
    • Level: 62
    • Posts: 492
    • Karma: 179
    • Last Action: 20 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 18:10:08 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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

    Noobler [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?

    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

    • AeC3 [2883335]
    • Role: Civilian
    • Level: 88
    • Posts: 244
    • Karma: 71
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 19:57:12 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    i "think" you can have 1 button to do all the buy and sell stuff BUT again 1 click = 1 action Like Lazy Crimes  has one button to do mutiple things 

    1 button smash is what i mean :)  (with a little delay maybe)

    • Noobler [3661908]
    • Role: Civilian
    • Level: 58
    • Posts: 81
    • Karma: 79
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 20:07:36 - 02/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    AeC3 [2883335]

    i "think" you can have 1 button to do all the buy and sell stuff BUT again 1 click = 1 action Like Lazy Crimes  has one button to do mutiple things 

    1 button smash is what i mean :)  (with a little delay maybe)

    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.

    • AeC3 [2883335]
    • Role: Civilian
    • Level: 88
    • Posts: 244
    • Karma: 71
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 05:57:22 - 03/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    when rebalancering it says to take Profit even tho the 0.1 % fee makes it a loss 

    • Noobler [3661908]
    • Role: Civilian
    • Level: 58
    • Posts: 81
    • Karma: 79
    • Last Action: 3 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 10:08:15 - 03/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    AeC3 [2883335]

    when rebalancering it says to take Profit even tho the 0.1 % fee makes it a loss 

    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.

    • AeC3 [2883335]
    • Role: Civilian
    • Level: 88
    • Posts: 244
    • Karma: 71
    • Last Action: 4 hours
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 15:47:13 - 03/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    AeC3 [2883335]

    when rebalancering it says to take Profit even tho the 0.1 % fee makes it a loss 

    Noobler [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.

    i see 

    • Overseer [2143302]
    • Role: Civilian
    • Level: 100
    • Posts: 6,224
    • Karma: 8,819
    • Last Action: 41 minutes
      • 0
    • Reason:
      Are you sure you want to report this post to staff?
      Cancel
    Posted on 02:50:55 - 13/02/26 (7 months ago)
    Post link copied to clipboard Copy post link

    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. 

    ZUhGbQA.jpeg
    zEULnMt.jpeg

    vOyX027.png

    Za1rw1M.png

     

    lnMjVlW.png

     

    PIkuMOl.png

     

    4qaqOzg.png

     

    RcFBxP2.png

     

    iFLDJDs.jpeg

    a9ebe6eee7461f49c8aa9f7cc75a6d31.png

    3vvLLBu.jpg

Reply
Thread Title: