whatisgithub

What is log-chrome?

kuidream/log-chrome — explained in plain English

Analysis updated 2026-05-18

16TypeScriptAudience · generalComplexity · 3/5Setup · moderate

In one sentence

A Chrome extension that computes trading indicators like Sharpe ratio and drawdown from live TradingView candlestick data, shown in a Side Panel.

Mindmap

mindmap
  root((repo))
    What it does
      Reads TradingView candles
      Computes trading indicators
    Tech stack
      TypeScript
      React
      Chrome Side Panel API
    Use cases
      Track chart risk metrics
      Watch a symbol list
      Spot indicator deterioration
    Audience
      Traders
      TradingView users
      Chrome extension devs

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Watch Sharpe ratio, Sortino ratio, and drawdown for a stock or asset while charting it on TradingView.

USE CASE 2

Keep a personal watchlist of symbols with cached risk indicators from past chart visits.

USE CASE 3

Get an alert inside the side panel when a tracked symbol's indicators start to worsen.

USE CASE 4

Switch the analysis window to look at a shorter or longer historical period.

What is it built with?

TypeScriptReactChrome ExtensionNode.jsMV3

How does it compare?

kuidream/log-chromeachrefelouafi/basicproceduralbuildingacoyfellow/tuiport
Stars161616
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity3/53/54/5
Audiencegeneraldeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Node.js 18+ to build and Chrome 114+ for the Side Panel API.

No license is stated in the project, so usage rights are unclear.

So what is it?

This project is a Chrome browser extension for people who trade or watch markets on TradingView charts. It computes quantitative indicators from real-time candlestick data and shows the results in a Chrome Side Panel next to the chart, so a trader can see the numbers without leaving the page. The extension intercepts TradingView's WebSocket data stream to pull out open, high, low, close, and volume candlestick data, then calculates the Sharpe ratio, Sortino ratio, an exponential regression fit with its R squared and growth rate, maximum time to recovery, and maximum drawdown. These are combined into a single confidence score. The analysis window is configurable, defaulting to the most recent 180 days. The side panel also shows a small price chart with the fitted exponential curve, a manually managed watchlist that caches indicators whenever a chart is opened, and configurable alerts for when an indicator worsens, though alerts only appear inside the panel itself, not as system notifications. The interface can switch between Chinese and English. Under the hood, a script injected into the page intercepts the raw WebSocket messages, a content script running in an isolated context parses the candlestick data and identifies which symbol is being viewed, and a background service worker calculates the indicators and manages stored settings before pushing updated state to the React based side panel UI. The developer notes several real limits: it can only read data for the chart currently open in the browser, so it cannot scan several symbols at once, the watchlist only reflects symbols the user has actually opened before, and its numbers are cached rather than pushed live, symbol detection depends partly on TradingView's page structure and may need updating if TradingView changes its layout, and no notification is sent if the side panel is closed. Requirements are Node.js 18 or higher for building it and Chrome 114 or higher to run it, since it needs the Side Panel API. No license is stated in the project.

Copy-paste prompts

Prompt 1
Help me install this Chrome extension in developer mode and connect it to a TradingView chart.
Prompt 2
Explain what the Sharpe ratio, Sortino ratio, and max drawdown numbers shown in this extension actually mean.
Prompt 3
Walk me through how the WebSocket interception and content script pipeline in this extension works.
Prompt 4
Help me add a new DOM selector so symbol detection keeps working after a TradingView update.

Frequently asked questions

What is log-chrome?

A Chrome extension that computes trading indicators like Sharpe ratio and drawdown from live TradingView candlestick data, shown in a Side Panel.

What language is log-chrome written in?

Mainly TypeScript. The stack also includes TypeScript, React, Chrome Extension.

What license does log-chrome use?

No license is stated in the project, so usage rights are unclear.

How hard is log-chrome to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is log-chrome for?

Mainly general.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.