Smart Stock Vault

Secure stock vault with Portfolio P&L, Block Progress, Swing Trading, Gamble Module, Visual Charts. Modules, lazy charts. Mobile optimized.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
Noobler
Усталяванняў за дзень
1
Усяго ўсталяванняў
474
Рэйтынг
1 0 0
Версія
9.1.0
Створаны
01.02.2026
Абноўлены
17.03.2026
Памер
456.4 КБ
Ліцэнзія
MIT
Ужываецца на

own

Smart Stock Vault v9.1.0

A stock portfolio management tool for Torn.com with vault protection, P&L tracking, block progress tracking, and swing trading.

Credits

Original Script: Stock Manager & Advisor by TheALFA [2869953]
Fork & Enhancements: Noobler [3661908]

This script is a fork of TheALFA's Stock Manager & Advisor. Core vault, rebalancing, and advisor functionality is from the original author.


Features

Module Visibility (v9.1.0)

  • Settings → Modules – Show or hide sections: Portfolio P&L, Gamble, Swing Trading, Vault Stocks. Hidden modules are not rendered (faster load).
  • Persistent open/closed state – All four modules remember whether they were expanded or collapsed (saved across refresh and vault re-renders).

Minimal Mode

  • Minimal Mode – In Settings → Vault, enable to show only Vault Spread, Rebalance, Withdraw, and options (Lock Blocks, Smart Mode)
  • Hides P&L, Swing Trading, Daily Income, and stock breakdown
  • Uses Torn's default stock display for portfolio view
  • For users who mainly deposit and withdraw

Multi-Stock Vault

  • Configure your portfolio with multiple stocks
  • Automatic block tier protection
  • Lock/unlock individual stocks from operations
  • Vault Stocks – Collapsible "📋 Vault Stocks" section (vault breakdown) with expand/collapse like other modules
  • Visual breakdown with allocation percentages and signals (dip %, RSI, BUY/SELL/HOLD badges)

Smart Vault Operations

  • Vault Spread – Distribute cash across vault stocks
  • Rebalance – Rebalance portfolio allocations
  • Analyze – Refresh signals on Vault Stocks (hidden in Minimal Mode)
  • Withdraw – Withdrawal with multiple strategies
  • Quick Buy/Sell – Modals for one-button trading with real-time calculations (each trade requires a button click to execute)

Deposit Strategies

  • Swing Strategy (Default) – Matches swing scan logic (RSI, Bollinger, S/R, momentum, SMA, ADX, volume)
  • RSI Weighted – Prioritize oversold stocks (RSI < 30)
  • Equal – Split evenly across all vault stocks
  • Dip Weighted – Prioritize stocks that are down
  • ROI Priority – Allocate based on benefit ROI

Withdrawal Strategies

  • Proportional (Default) – Sell equal percentage from each stock
  • Loose First – Sell shares above benefit thresholds first
  • Swing Strategy – Spreads withdrawal over all vault stocks (keeps vault balanced), weighted by swing signal: worst signals (SELL, TAKE PROFIT) get a larger share, best signals a smaller share. Runs analysis first, then distributes by weight. Respects Lock Blocks and swing-protected shares. Caps each stock at 50% of loose (or tier) per withdrawal so you don't dump full positions.
  • Worst ROI – Sell from lowest ROI stocks first
  • Best Performers – Take profits from stocks that are up

Protection Features

  • Lock Blocks – Protect benefit tier shares from being sold
  • Exclude locked blocks from Total Vault Value – (Settings → Protection) When enabled, displayed total counts only loose + swing-protected value; locked block shares are excluded from the total.
  • Individual stock locking
  • Swing trade position protection
  • Smart Mode – Skip overvalued stocks when spreading/rebalancing

Portfolio P&L Tracking

  • Syncs transaction history from Torn's API logs
  • Realized P&L – Profit/loss from completed sales
  • Unrealized P&L – Current value vs cost basis (FIFO cost basis)
  • Fee Tracking – Total 0.1% sell fees paid
  • Period Filters – Day, Week, Month, YTD, Year, All Time
  • Transaction History – Browse all buy/sell transactions
  • Portfolio P&L Chart – Equity curve over time with period filters

Swing Trading Module

  • Active Position Tracker – Track entries with target/stop-loss
  • Target & stop in % or $ – Add and Edit Position: set target and stop as percent or dollar (unit selector); no manual conversion needed.
  • Partial close – Close Position modal: "Shares to close" (default full). Close part of a position; the rest stays open. Undo close only for full closes.
  • Visual Charts – Candlestick charts with entry marker, target/stop lines, SMA & Bollinger overlays
  • Signals on Position Cards – BUY/SELL/TAKE PROFIT badges with signal age; stale indicator after 30 min
  • Merge into Existing – Add shares to existing positions without duplicates (weighted-average calculator)
  • Undo Close – 15-second undo after closing a position (full close only)
  • Close Position Modal – Styled modal with P&L, fee, exit reason (Manual/Target/Stopped), and optional shares to close for partial close
  • Notes & Tags – Notes and tags (swing, scalp, mistake, lesson, etc.) on positions and journal entries
  • Edit/Delete Journal – Edit or delete completed journal entries
  • Signal Scanner – Analyze stocks using RSI, Bollinger Bands, S/R, momentum, SMA, ADX, volume
  • Trade Journal – Log completed trades with P&L
  • Performance Stats – Win rate, average P&L, holding period
  • Position Protection – Swing trade shares protected from vault withdrawals

Block Progress Tracking

  • Block Icons – Status indicators:
    • Gray – No block owned yet
    • Teal – Has block tier, more tiers available
    • Yellow – Close to next tier (80%+)
    • Green Pulsing – Can afford to complete next tier
    • Solid Green – Maximum tier reached
  • Progress Bars – Progress to next tier
  • Quick Block Modal – One-button purchase to complete a block tier (each trade requires a button click)
  • Rebalance into Block – Sell loose shares from other stocks to fund block completion
  • Daily Income Display – Total daily income from blocks and bank

Gamble Module

  • Deposit/withdraw cash to a target stock for quick trading
  • Expand/collapse state is saved (same as other modules); no separate "Always open" option
  • Preset amounts and Panic withdraw

Unified Settings

  • API Tab – Configure and validate your API key
  • Vault Tab – Select stocks, strategies, keep amount, Minimal Mode
  • Modules Tab – Show/hide Portfolio P&L, Gamble, Swing Trading, Vault Stocks
  • Protection Tab – Lock Blocks, Smart Mode, Exclude locked blocks from Total Vault Value, excluded stocks
  • Advanced Tab – Bank ROI rates, cache management

How to Use

Initial Setup

  1. Go to the Torn Stock Market page
  2. Click Settings
  3. API tab: enter your Torn API key
  4. Vault tab: select vault stocks and strategies
  5. Modules tab (optional): hide sections you don't use
  6. Enable Minimal Mode if you only want deposit/withdraw controls

Daily Operations

  • Vault Spread – Enter amount (or leave blank to use all cash) and click to distribute
  • Analyze – Click to refresh signals on Vault Stocks (when not in Minimal Mode)
  • Withdraw – Enter amount and click; choose strategy (e.g. Swing Strategy to sell more from worst-signal stocks while keeping the vault balanced)
  • Rebalance – Click to rebalance your portfolio

Minimal Mode

  • In Settings → Vault, enable Minimal Mode
  • Shows only Vault Spread, Rebalance, Withdraw, Lock Blocks, and Smart Mode
  • Use Torn's default stock display for portfolio view

Block Progress

  • Each stock row shows a block icon (▣) next to the lock
  • Green pulsing icon – Can afford to complete the next tier
  • Yellow icon – Close (80%+) to next tier
  • Click a block icon to open the Quick Block modal
  • Use Buy with Cash or Rebalance – each trade requires a button click to execute

P&L Tracking

  1. Expand 📊 Portfolio P&L
  2. Click Full Sync to fetch transaction history
  3. Use period filters for different timeframes
  4. Click History for transaction details
  5. Click Chart for portfolio value over time

Note: Full Access API key required for P&L tracking.

Swing Trading

  1. Expand 📈 Swing Trading
  2. Signals tab → Scan All Stocks
  3. Track Position on signals or add manually via + Add Position (target/stop in % or $)
  4. Positions tab – Monitor active trades; click Chart for candlestick view; Refresh signals for prices and signals; close full or partial via Close Position
  5. Journal tab – View and edit completed trades

Requirements

  • Torn API key (configure in Settings)
  • Full Access API key required for P&L tracking and transaction history

Support

Having issues? Questions?

  • Check the browser console for errors
  • Ensure your API key is valid and has Full Access for P&L features
  • Try clearing cache via Settings → Advanced → Clear Analysis Cache

License

This script is provided as-is for the Torn community. Original work by TheALFA [2869953], enhancements by Noobler [3661908].