SwingFish Helper: moving to json

for years the SwingFish Helper reported my trading status the same way: one line of text. Waiting for Trade [+0.318% | 10.4R] or ° Active Positions [-0.024%], and that was it.

it worked. the tradingroom, the status box on this site, the Apple Watch, all of them took that line and showed it. but every single one of them had to read it. cut out whatever is inside the brackets, guess the status from the words, hope nobody changes the wording. that’s not data, that’s a screenshot made of letters.

this upgrade is very long overdue: the helper now writes actual data.

Download the new SwingFish Helper

what the helper writes now

  • you can still use both version there is a seperate json file location setting

next to the text file (which stays, the overlay works as before), the helper writes a proper JSON file, every second while positions or orders are open, otherwise once per bar:

  • Running – true while the cBot runs. stopping it writes false, so “stopped on purpose” and “crashed” are finally two different things.
  • Today – the PnL of the day, plus the highest and the lowest point the day has reached.
  • Current – the result of the open positions, the activity text, and every position and pending order as a list with symbol, side and volume.
  • Overlay – which overlay settings are active, so whoever reads the file can rebuild exactly the text you would see.
  • updated – a timestamp of the last write.

numbers are written the same on every computer no matter the language settings, and the file is written to a temporary file first and then swapped in. the webserver never sees a half written file again.

how it looks on my side

my own setup collects this together with other status data (servers, network and so on) into one internal status API. this is what it hands out for cTrader, a few seconds ago, short JPN225 on a slightly red day:
{
"generated": "2026-11-25T04:36:13Z",
"ok": true,
"sources": {
"ctrader": {
"ok": true,
"stale": false,
"updated": "2026-11-25T04:36:13Z",
"updatedU": 1795581373,
"age": 0,
"ttl": 0,
"error": null,
"data": {
"raw": "° Active Positions [-0.044%]nSell JPN225",
"status": "active",
"pnl": "-0.044%",
"display": {
"text": "° Active Positions [-0.044%]nSell JPN225",
"li": "<ul><li>° Active Positions [-0.044%]nSell JPN225</li></ul>"
},
"today": {
"gain": -0.0442,
"max_gain": 0.0083,
"max_loss": -0.0619
},
"current_gain": 0.007,
"positions": [
{
"symbol": "JPN225",
"side": "Sell",
"volume": -22
}
],
"orders": [],
"overlay": {
"active": true,
"pnl": true,
"wifemode": false
},
"bot_updatedU": 1795581373,
"bot_age": 0,
"error": null
},
"action": {
"effect": "a9",
"ok": true,
"at": "2026-11-25T04:06:07Z",
"error": null,
"gain": -0.0047
}
}
}
}

  • status – active (positions or orders open), waiting (running, nothing open), idle (bot stopped) or offline (the trading computer can’t be reached at all). no more guessing from words.
  • raw / pnl / display – the good old text, rebuilt from the data. every existing page keeps working without knowing anything changed.
  • today – the day: gain is where it is now, max_gain the best and max_loss the worst point of the day.
  • current_gain – the open position. in this example the position itself is slightly green (+0.007%) while the day is red.
  • positions / orders – one entry per symbol instead of a line of text.
  • action – what my automation did with it (more about that below).

and yes, there is a wifemode. some traders have a LaMetric clock in the living room, and with wife mode the overlay shows the better of the two numbers: if the day is red but the open position is green, the clock shows the position. the numbers are the same, it’s purely a visual thing (and a running gag from years ago). the data always has the real values, so nothing downstream gets fooled by it.

where it shows

  • swingfish.trade – the tradingroom and the landing page still show the live status text, now coming from the data.
  • this site – the status box in the side menu knows the difference between “the bot is not running” (waiting for cTrader) and “the trading computer is off” (currently off the charts).
  • my desk lamp – the $10 LED tiles turn red on a losing day and green on a winning one. this uses the real value of the day, so wife mode can’t paint a red day green. it only switches when the colour actually changes, not every minute.
  • my admin dashboard – the status button changes colour by state and shows the position and the day next to the text.

what you can do with it

the obvious part: anything that can read JSON can now use your trading status without parsing text. a shortcut on the Apple Watch, a smart home routine, a Stream Deck button, a Discord bot. take status to know what’s going on, take the numbers to do math.

the less obvious part: statistics. since the file has real numbers and a timestamp, you can simply pull it on a schedule and store it, and you get a timeline of your trading day without touching cTrader at all.
pulling is not the only way either: the SwingFish Helper can also push the data to a server, if you’d rather have the trading computer deliver than have something polling it.

the numbers nobody shows you

here is the part I care about most. almost every platform, prop firm dashboard and trading journal shows you one number per trade or per day: the result. +0.4%, nice, next.

but the result alone tells you very little about how you traded. two days that both end at +0.4% can look completely different:

  • one went straight up and was closed.
  • the other went -0.6% first, came all the way back, ran to +1.2%, and then you gave two thirds of it back because you didn’t want to exit.

same PnL, completely different trader. that’s exactly what max_gain and max_loss are for, and they are almost always ignored, despite being extremely important.

in my own statistics I use them to build a proper exposure chart: not just where the day ended, but how it got there.

  • how much drawdown happened before the profit was taken – the distance from the lowest point to the close. if that number is regularly bigger than what I end up making, my entries are early or my stops are too wide.
  • how much profit I left on the table – the distance from the highest point to the close. if that one is big, the problem isn’t the analysis, it’s me being hesitant to exit.

both numbers are uncomfortable, and that’s the point. a PnL chart makes you feel good or bad, an exposure chart tells you what to fix.

get it

the new version is available for download on the SwingFish website. update the cBot, enable the statistics file as before (see the Apple Watch post for the setup with XAMPP), and the new JSON is there. the text overlay keeps working exactly as before, so nothing breaks while you switch your things over.

SwingFish Helper

if you build something with the data (a widget, a journal, a chart), let me know. I’m curious what other people do with it.