News loss-prevention signal directly inside TradingView. Auto-detects the current pair,
shows a draggable CLEAR/BLOCKED badge on the chart, and fires desktop warnings before blackouts.
- Open Chrome and go to
chrome://extensions - Enable Developer mode (top-right toggle)
- Click Load unpacked
- Select the
fnewsteer-extension/folder - The FNEWSTEER icon appears in your Chrome toolbar
- Click the extension icon → click ⚙ (settings)
- Set your API URL — the address of your running FNEWSTEER FastAPI backend
- Set your API Key — must match
FNEWSTEER_API_KEYin the FastAPI.env - Click TEST CONNECTION to verify
- Click SAVE SETTINGS
The extension will start polling immediately and the icon badge will turn green/amber.
Open any chart on tradingview.com. The extension reads document.title via a
MutationObserver — when you switch charts the pair updates automatically, no interaction needed.
A draggable badge appears on every TradingView page:
- CLEAR (green pulse) — safe to trade
- BLOCKED (amber pulse) — news blackout active, shows countdown to clear
- Drag it anywhere on the screen so it doesn't obscure your chart
The toolbar icon shows a colored badge at all times:
- 🟢
●— safe to trade - 🟠
!— blackout active - ⚫
?— connecting or API offline
Fires a browser notification N minutes before each blackout window opens. N is configurable in Settings (default: 5 minutes). Test with the TEST NOTIFICATION button in Settings.
Click the icon to open the popup:
- Full CLEAR/BLOCKED signal with countdown ticker
- Quick-select buttons for 8 major pairs
- Custom pair input
- Multi-pair watchlist — add pairs to monitor all at once
Add up to any number of pairs to the watchlist. The background worker checks all of them on every 30-second poll and shows CLEAR/BLOCKED per pair in the popup.
- API URL + Key (with show/hide toggle)
- Blackout window override (minutes) — overrides smart defaults
- Include Medium impact toggle
- Notification warning lead time (configurable minutes)
manifest.json Permissions, entry points (MV3)
background.js Service worker: polling, notifications, icon badge, state
content.js TradingView: pair detection + floating badge
popup/
popup.html/css/js Main popup UI
settings/
settings.html/css/js Settings page
icons/
icon-{16,48,128}.png Extension icons (replace with your own design)
| Direction | Message type | Payload |
|---|---|---|
| content → background | TV_PAIR_DETECTED |
{ pair } |
| popup → background | SET_PAIR |
{ pair } |
| popup → background | GET_STATE |
— |
| popup → background | UPDATE_WATCHLIST |
{ pairs } |
| popup → background | FORCE_POLL |
— |
| background → all | FNEWSTEER_STATE |
full state object |
- Chrome
alarmsAPI fires every 30 seconds - On each alarm: check primary pair, check watchlist pairs, check notification thresholds
- State stored in
chrome.storage.sessionfor fast popup reads
See GitHub Releases to download a packaged version.
- First public release
- All core features: auto-detect pair, floating badge, watchlist, desktop notifications, settings
- Download
fnewsteer-v1.0.0.zipand unzip it - Go to
chrome://extensions - Enable Developer mode
- Click Load unpacked → select the unzipped folder