Skip to content
TORNLIFE More

[SCRIPT] Torn Stock Analyzer

Started by AeC3 [2883335] on in Tools & Userscripts.

62 replies · 1.31k views · thread synced · 3 days ago · View on torn.com
About this thread

Posts archived: 63 / 63 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
63
Discussion span
→
Authority score
59 / 100
Historical score
28 / 100
Story score
48 / 100
Engagement score
79 / 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.

AeC3 [2883335]

Torn Stock Analyzer v2.1.7 - Tampermonkey Userscript
Download: https://greasyfork.org/scripts/570460

Torn Stock Analyzer (TSA) — User Guide

 

  A userscript for the Torn stocks page that scores all

  35 stocks for buy signals, tracks your benefit blocks

  and swing trades, plans your next benefit-block

  purchase by ROI, and gives you one-click trade buttons

   that respect Torn's "1 click = 1 action" rule.

 

  ---

  Setup

 

  1. Install the script from Greasy Fork (search "Torn

  Stock Analyzer").

  2. Open the Torn stocks page. The first time, click

  the floating TSA button (bottom-right) and paste your

  Torn API key when asked. Stored locally in your

  browser only — never sent anywhere else.

  3. After a few refreshes the script builds up its own

  price-history cache so the scoring math gets sharper.

  Give it a day or two to fully calibrate.

 

  ---

  The Quick Trade bar

 

  A panel pinned to the top of the stocks page so you

  can buy and sell without scrolling.

 

  - Search box — type a stock acronym to pick it.

  - ▼ minimize — folds the panel down to a thin strip.

  - ✎ edit — change/add/remove the dollar-amount buttons

   (your custom presets).

  - 🔒 Benefit Lock (on by default) — when checked,

  sells will only touch your "extra" shares, never the

  ones locked into a benefit tier. Turn off if you want

  to sell everything.

 

  Two rows of dollar buttons — green for buy ▲, red for

  sell ▼ — with an ALL at the end of each row.

 

  - Buy $5M → buys $5M worth of the selected stock (or

  whatever you can afford if you don't have $5M —

  partial buy is fine).

  - Sell $5M → sells about $5M worth of shares (capped

  to what you actually own; respects Benefit Lock if

  on).

  - Buy ALL → spends every dollar you have on that

  stock.

  - Sell ALL → sells every share you own of that stock

  (still respecting Benefit Lock).

 

  Below the buttons, when relevant, you'll see a 💡

  yellow recommendation button suggesting the smartest

  tier-completion buy for you right now (one-click buys

  the exact shares needed). If you can't afford the full

   tier, it tells you "Need $X more" — partial buys

  don't unlock the benefit, so it won't fire a wasted

  trade.

 

  You can also toggle on a mini-chart with 1d / 3d / 7d

  / All timeframes if you want to eyeball a stock before

   pulling the trigger.

 

  How a trade actually fires

 

  To stay within Torn's scripting rules, every trade

  needs two clicks from you:

 

  1. First click on a dollar amount → the panel opens

  that stock's trade form on the page, fills in the

  share count, and clicks Buy/Sell so the page shows

  "Confirm Transaction".

  2. Click the same amount again → the panel clicks

  Confirm. Trade goes through.

 

  If you change your mind, just click a different amount

   or pick a different stock — the first click resets to

   the new choice.

 

  ---

  The TSA overlay (floating button)

 

  Click the TSA button in the bottom-right to open the

  analysis overlay. This is where the scoring and

  planning lives.

 

  🥇 Top 5 buy list

 

  The five highest-scoring stocks to buy right now,

  based on four indicators:

 

  1. Drop from weekly peak — how far the price has

  fallen versus its own weekly high (cheaper than usual

  = more interesting).

  2. Position in short-term range — where the price sits

   inside its last ~2 days' high/low (low end = better

  entry).

  3. Trend reversal — is the price actually rising right

   now? Last 30 min higher than the previous hour, etc.

  4. MACD — a momentum indicator. Best score when

  momentum has just flipped from down to up (a

  "crossover").

  5. RSI — bonus points if the stock is unusually

  oversold compared to its own RSI history.

 

  Each row shows:

  - Stock symbol + a small ↑/↓ arrow with the % move

  since the last refresh.

  - Two-word reason — the strongest things the score

  noticed.

  - Investor delta over 24 h — green if more investors

  are entering, red if leaving.

  - The score number.

  - A signal label (more on these below).

  - A 📌 pin button — pin a stock so it stays at the top

   even when other scores rise.

 

  The row's background colour tells you about your

  relationship with the stock:

  - 🟢 Green tint — you don't own any.

  - 🟡 Amber tint — you own some "swing" shares (extras

  you'd be willing to flip).

  - 🔵 Blue tint — you own a benefit-block tier in this

  stock (locked shares).

 

  Tap a row → expands a breakdown showing exactly how

  each indicator contributed to the score, plus a "BB

  width" bar (how volatile the stock has been).

 

  🔍 Watch list

 

  Stocks you already own with a moderate score (45–74) —

   not high enough for Top 5 but worth keeping an eye

  on. Hide it from settings if you don't care.

 

  💼 Swing trades

 

  Stocks you bought to flip for profit (anything you own

   beyond what's locked into a benefit tier).

 

  Each row shows your average buy price, current live

  price, how long you've held it, and total profit/loss

  in $ and %. The number is after Torn's 0.1% sell fee.

 

  You'll get an alert (toast + optional notification)

  when any swing trade hits:

  - 🟢 PROFIT — your profit target (set in settings,

  default ~5%).

  - 🔴 STOP LOSS — your stop-loss limit (set in

  settings).

 

  Tap a swing row → expands to show every separate buy

  you made of that stock as Block 1, Block 2, Block 3…

  with the date, shares, price, and per-block

  profit/loss.

 

  Tap a Block → sells exactly those shares (two-tap,

  like the Quick Trade bar). If you've already sold part

   of that lot, the click sells whatever you still own

  from it.

 

  🏛️ Benefit blocks

 

  Stocks where you hold a tier (T1, T2, T3…) for the

  periodic dividend (cash, items, or stat refills).

 

  These are tracked separately from swing trades because

   they're not meant to be flipped — they pay you on a

  schedule. The Benefit Lock on the Quick Trade bar

  protects them from accidental selling.

 

  📈 ROI Planner

 

  The big strategy section. It looks at:

  - Your cash + swing capital + armory funds.

  - Your current weekly income from the benefit blocks

  you already hold.

  - The prices of every possible benefit tier.

 

  …and tells you what to do next:

 

  - Next move — the highest-ROI tier you should aim for

  (its cost, how short you are, and an estimated

  days-to-afford countdown).

  - 🔗 Bridgebuilder — sometimes it's smarter to buy a

  small cheap tier first (more weekly income → reach the

   big target faster). The planner does the math and

  suggests the chain.

  - 💸 Sell candidates — if you own a low-ROI tier

  that's dragging, the planner may suggest swapping it

  for the better one.

  - Income — your current weekly income, broken down per

   stock with the actual reward name (e.g. "SYM (Drug

  Pack) $8M · TCT (Cash) $1M…").

 

  The 💡 button on the Quick Trade bar is the planner's

  top pick condensed into one click.

 

  ---

  Signal labels

 

  ┌───────────┬─────────────────────────────────────┐

  │ Label │ What it means │

  ├───────────┼─────────────────────────────────────┤

  │ │ Score ≥ 100, MACD just crossed │

  │ 🟡 STRONG │ over, price is actively rising │

  │ BUY │ right now (m30 > h1 > h2). │

  │ │ High-confidence entry. │

  ├───────────┼─────────────────────────────────────┤

  │ 🟢 BUY │ Score ≥ 75 with a confirmed │

  │ │ reversal. Solid setup. │

  ├───────────┼─────────────────────────────────────┤

  │ 🟠 │ Score ≥ 45. Interesting but not │

  │ CONSIDER │ fully confirmed yet — watch for a │

  │ │ clearer signal. │

  ├───────────┼─────────────────────────────────────┤

  │ ⚪ WAIT │ Score < 45. Nothing special right │

  │ │ now. │

  └───────────┴─────────────────────────────────────┘

 

  Heads up: even with great technicals, if the entry

  window has closed (price already rallied off its low,

  or above its weekly average, or RSI is overbought),

  the label automatically downgrades to CONSIDER. The

  score stays high so you can see the technical setup is

   there — but the label is telling you the timing's

  off. Don't chase it.

 

  ---

  Settings

  ---

  Settings

 

  Click the ⚙️ in the panel header.

 

  - Profit target / Stop loss % — drives the swing trade

   PROFIT/STOP LOSS alerts.

  - Auto-refresh — minutes between automatic data

  refreshes (0 = manual only).

  - Top 5 minimum score — raise to be pickier (e.g. 50 =

   only show stocks with strong setups).

  - Require positive investors — extra filter: only show

   stocks where the investor count is growing.

  - Show Watch list — toggle the owned-stocks-watching

  panel.

  - Theme — light / dark.

 

  ---

  What TSA never does (transparency)

 

  - Only talks to Torn's official API (api.torn.com) —

  never scrapes regular Torn pages, never fakes clicks

  anywhere except as the natural continuation of your

  click on a TSA button.

  - Reads the stocks page only when you have it open —

  never pulls data from background tabs.

  - Two-tap requirement for trades is deliberate: 1 of

  your clicks = 1 trade action, exactly what Torn's

  scripting rules require.

  external servers, no telemetry, no analytics.

  - No CAPTCHA bypass, no automation of

  jail/hospital/etc. — purely a stocks helper.

 

  If something feels off (wrong number, missing stock,

  weird recommendation), Send me a dm directly or shoot a message my way. 👍👍

 

  ---

  TL;DR for new users:

  1. Install + paste API key.

  2. Open the panel, look at the Top 5 for buy ideas.

  3. Use the Quick Trade bar for fast buys/sells with

  the dollar buttons.

  4. Use the ROI Planner to figure out which benefit

  tier to save up for next.

  5. Keep Benefit Lock on so you never accidentally sell

   your tier shares.

AeC3 [2883335]

You shouldnt have to do that 

 

For me it remember even though updates 

 

Il have a look into it 

 

Made some updates please let me know what version youre on 

C0NVICT [2208584]

I actually like this a lot. It's not too obstructive when it's collapsed to be annoying. And when it's opened up it's actually pretty useful. Like having a compressed tornsy right on the stock page. Nice job

AeC3 [2883335]

Exactly 

 

Good way to put it 

 

The graph do get pretty if used enough on same device 

 

Do you have any suggestions? Any improvements i might have missed 

BladeK93 [4081555]

I go into the stock market page and a big box will come up, and underneath a button that just says stocks, if I press that it’ll ask for my api key, everytime. 

very nice script though, everyone likes a graph

 

edit: I’m fully up to daye

AeC3 [2883335]

you can set that via settings so it show profit on swing trades 
 
swing trades turn green when you have profit 

I dont se the big need for a sell signal when you have the swing trades shown like this :) 


unless you have a really good plan for it ;) 

AeC3 [2883335]

Changelog — v2.1.7 → v2.2.3

v2.2.3

Fix: Bridgebuilder now only shows bridges you can afford now + max 2 soonest "later" bridges that actually save days toward Next Move

v2.2.2

Bridgebuilder chain: Now shows multiple bridges instead of one — all you can afford now (✓ Buy now), plus the next soonest ones that save days (in ~Xd · saves Yd)

v2.2.1

Fix: Dividend countdown in ROI Planner now correctly calculated from frequency - progress (Torn API does not expose dividend.next)

v2.2.0

7 new features:

RSI as 5th score indicator — Torn-calibrated via percentile against the stock's own history (not generic 30/70 thresholds). Max 20p

Bollinger Band width — Volatility context in the breakdown panel (Squeeze / Low / Normal / Active / High volatility)

Repeat price alerts — 🔁 toggle: alert stays active after it fires

Quick Trade entry slippage — Saves intent price on buy, shows warning if actual avg_price deviates ≥0.5%

Gap-to-next-signal hint — "Gap to BUY: 33p — needs stronger drop OR MACD crossover" in the breakdown panel

Dividend countdown — ROI Planner shows "next Xd" on owned benefit rows, turns yellow at ≤1 day

Swipe-to-close on mobile — Swipe down from header closes the overlay

AeC3 [2883335]

Changelog — v2.2.4 → v2.3.0

v2.3.0

Fixed: swing trade block rows now disappear immediately after confirming a sell (optimistic removal — no longer waits for Torn API to propagate)

v2.2.9

Added: individual swing trade blocks (Block 1, Block 2, etc.) are now tappable

First tap shows red confirmation state: "▲ Tap again to confirm · SELL X SYM · Block N"

Auto-resets after 4 seconds if not confirmed

Second tap executes the sell directly from the overlay — no Quick Trade bar involved

Benefit block rows are not tappable

v2.2.8

Added: price history stats in overlay footer — e.g. "Storage: 42 KB · 43 stocks · 72h hist"

Lets you see at a glance whether RSI and Bollinger Band have enough data to be reliable

v2.2.7

Added: expand caret (▶ / ▼) next to score on each stock row

Makes it clear the row is tappable to reveal the score breakdown

v2.2.6

Fixed: bridgebuilder "later" candidates incorrectly excluded bridges that were not bought in the "now" phase — filter now checks against actual bought bridges instead of original capital

v2.2.5

Fixed: overlay position switching to left-side positions caused the Stocks button to stretch across the full screen width — now uses auto instead of empty string to correctly override the stylesheet

v2.2.4

Added: overlay position setting in Settings — dropdown to choose Bottom right / Bottom left / Top right / Top left for both the Stocks button and overlay panel

Position is applied immediately on save and on page load

AeC3 [2883335]

10:13:22 - 11/04/26 Someone anonymously sent $1 to you with the message: did u ask staff about u r script??

Yes i did 

v2.1.7 has been approved 

Everything made since then has been improvements and ui mostly 

I cant get staff to look at all the changes i make on a daily basis since that would take too much of their time

I was told get it more finished before asking to have it looked over again