I run several freqtrade bots on futures, mostly with the
NostalgiaForInfinity (NFI) strategy. FreqUI, the web UI built into
freqtrade, is good at what it does, but my day kept turning into the same three questions:
- Is every bot up, and is anything close to liquidation?
- Why didn't the bot take that move?
- How does the whole book look, not just one bot?
Answering them meant switching between bots, reading logs and doing sums in my head. So I built
NFIForge, a self-hosted dashboard that sits next to the bots and answers them on
one screen, including on a phone.
It works with any freqtrade bot and any strategy. If the bot runs NFI, it shows a few NFI-specific things on top.
What it shows
Every bot gets its own tab with its status, equity, today's P&L and a card per open trade, with the distance to
liquidation on each card.
The pages I use most:
- Risk & exposure: margin used, real leverage, distance to liquidation, and what the open book does if every coin moves ±5 to 30 %.
- Signal radar: every pair's entry signals per candle and what happened to each one. Traded, blocked (already in a trade on that pair, all slots full, pair locked, a guard cancelled it, not enough balance, order never filled) or not taken.
- Analytics: profit over time, a daily calendar, breakdowns by entry tag, exit reason and pair, and an MFE / MAE scatter (how far each trade went for and against you before it closed).
- Funding per trade and over any range of closed trades, which adds up on futures.
- Notifications: bot down or stuck, close to liquidation, drawdown, disk or RAM, container restarted.
NostalgiaForInfinity extras
NFI adds to a trade as it moves (grinding) and stores its own data on each trade. For NFI bots, NFIForge shows:
- the grind levels on each trade card and in the trade inspector: how many adds, at what price, how many coins each level still holds
- NFI's custom trade data in the trade inspector
- the reason NFI logged when it cancelled an entry, on the signal radar
How it works
NFIForge talks to each bot through freqtrade's REST API, the same one FreqUI uses. You give it each bot's API address,
username and password, and nothing on the bot changes.
The backend is Python (FastAPI). It polls each bot and pushes live state to the browser over one websocket. The
frontend is Vue with ECharts and lightweight-charts. NFIForge keeps its own SQLite file for the things freqtrade
doesn't store: equity snapshots over time, notifications, server history and accounts.
A few things took more thought than I expected.
Signal radar. Freqtrade doesn't keep a history of signals that didn't trade. After each new candle, NFIForge asks
the bot for the last few candles of every pair, records the signal and guard columns, and matches them against the
bot's log lines to find the reason a signal didn't turn into a trade. That costs about 2 seconds of requests per 100
pairs, so it's off by default per bot.
Logs. Freqtrade's API only holds the last 1000 log lines. NFIForge keeps them from the moment it starts, so the
radar and the logs page still have the reason after the bot has moved on.
Phone alerts. Alerts use standard web push, so they reach a phone with the app closed, without a third-party
service holding your data. Payloads are encrypted for the phone, and the push services only see encrypted bytes.
Read-only by default
A dashboard for trading bots is an easy target, so I kept it boring:
- It's read-only towards the bots. Trade actions (enter, add, exit) exist but are off unless you switch them on in the config and per bot.
- It listens on 127.0.0.1 by default. Tailscale is the suggested way in from a phone.
- The Docker container is read-only, drops all Linux capabilities, and has no Docker socket and no host files.
- Viewer accounts see percentages and counts, not balances.
Try it
With Docker:
git clone https://github.com/baxr6/NFIForge.git cd NFIForge ./install.sh Or with pipx:
pipx install nfiforge nfiforge init The installer asks for each bot's API login and tests it before saving. Each bot needs freqtrade's api_server turned
on, which it already is if FreqUI works for it.
The docs cover every page, and the screenshots use a demo bot with made-up
trades. It's MIT licensed. Issues and pull requests are welcome, and I'd like to hear what you check first when a live
bot drifts from its backtest.

