Skip to content

About

Audit a signal channel's track record in your browser: wins, losses, unresolved and deleted signals by published rules.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

Signal record auditor

Is a signal channel's track record real? Drop in the channel's Telegram export or a CSV of its signals. The auditor pairs every signal with its follow-ups and counts what happened to each: wins, losses, breakeven trades, signals that never got an ending, and messages that were edited or deleted.

Open the auditor. It runs in your browser and uploads nothing: the page has no server, no cookies and no analytics. The same code runs as a command-line tool.

npx record-auditor result.json
npx record-auditor signals.csv --csv audit.csv

It counts by the rules on TradingSignalBot's How we count page, the rules TradingSignalBot's own record is counted by. That record goes through this auditor like anyone else's (see TradingSignalBot's own record).

What it counts

The rules are written at the top of src/audit.js. In short:

  1. A signal is its entry, stop and targets as first posted. An edit is counted and shown, never used.
  2. Hands off. The stop never moves and nothing is closed early. A channel that moves its stop or closes early is marked managed, and its result is what it posted.
  3. A signal ends at its last target, at its stop, or at the end of the tenth trading day after it (16:50 New York). Follow-ups after that are late and are not used. --hold <days> changes the limit; 10 is TradingSignalBot's.
  4. A target and then the stop is "Closed · TP1, then the stop", never a win. Held to the end, it lost the stop distance (R = -1).
  5. A message missing from a channel's run of ids was deleted. A follow-up that replies to a missing message is a deleted signal, and it is counted with whatever its follow-ups say.
  6. R is the result held to the end, measured in stop distances from the entry. Results are not totalled, because past signals do not tell you what the next one will do.
  7. Outcomes come from what the channel posted, not from prices. Where the channel says nothing, the auditor says so.

Outcomes

Outcome Meaning
Closed · all four targets The last target was reached
Closed · TP1 (2, 3), then the stop One or more targets, then the stop
Closed · stopped before TP1 The stop came before any target
Closed after ten days Neither target nor stop by the limit, so it closed at the market. The furthest target reached is named
Open Still running; the furthest target so far is named
Closed · out at the entry The stop was moved to the entry and was hit (managed)
Closed early The channel closed it at the market before the limit (managed)
Closed · TPn; the end not stated The close names the furthest target but not how the signal ended
Cancelled before entry A pending order was called off
No ending posted Past the limit with no ending posted

Each signal also gets a result held to the end: win, loss, breakeven, unknown (closed with no word on how), open, unresolved or cancelled.

Input

Telegram export (result.json)

  1. Open the channel in Telegram Desktop (the phone apps cannot export).
  2. Click ⋮, then Export chat history.
  3. Untick photos and files, set the format to Machine-readable JSON and pick the dates.

The auditor reads the message text (plain or with entities), reply_to_message_id, date_unixtime and edited_unixtime. In channels and supergroups, message ids run 1, 2, 3 for that chat alone, so a gap means a deleted message. In other chats the ids are shared across chats, so gaps are not read. A full export (chats.list) is accepted; the largest chat is used unless you pass --chat <name>.

Signals it recognises. A side (buy, sell, long, short, buy limit, sell stop...), a market (EURUSD, EUR/USD, #GBPUSD, GOLD, XAUUSD, US30, NAS100, BTC/USDT...), and a stop or a target with a price:

BUY EURUSD @ 1.0850          SELL GOLD 2410 SL 2422 TP 2390
SL 1.0810                    #GBPUSD SELL LIMIT 1.2700
TP1 1.0880                   Stop loss: 1.2750
TP2 1.0920                   Take profit: 1.2600

Follow-ups it recognises. TP1 hit, TP2 ✅, TP1 and TP2 hit, all targets hit, SL hit, stopped out, move SL to entry, stopped at breakeven, closed at 1.0890, +35 pips, order cancelled. A follow-up belongs to the signal it replies to (or to another follow-up of that signal). With no reply, it goes to the latest open signal on the market it names, and the table flags that match.

Message log CSV

A CSV with a text column is read like an export:

id,time,text,reply_to,edited

Signal table CSV

One row per signal, already paired with its outcome:

id,time,pair,side,entry,stop,stop_pips,tp1,tp2,tp3,outcome,targets_hit,closed_time,exit_price,exit_pips,edited,deleted

outcome is one of all_targets, stopped, time_limit, closed, breakeven, cancelled, open (or blank), or tpN for a target reached with nothing else said. A target and then the stop is stopped with targets_hit 1 (2, 3). Times are ISO 8601 (2026-10-07T11:30:00Z; with no zone, UTC is assumed) or Unix seconds. The file can use commas, semicolons or tabs.

See fixtures/ for one of each.

Output

A summary and one row per signal: posted, message id, market, side, entry, stop, targets, outcome, result held to the end, R, furthest target, end time and flags (edited, deleted, managed, no stop, matched by market, late follow-ups). The web app downloads that table as CSV. The CLI writes it with --csv out.csv and prints the whole report with --json.

As a library

import { auditFile, summaryLines, csvOf } from 'record-auditor';

const report = auditFile('result.json', text, { holdDays: 10 });
console.log(summaryLines(report).join('\n'));

It is ESM with no dependencies and runs in Node 18+ and in browsers. It also exports auditMessages, auditRows, classify, readMessage, RULES and the parsers.

TradingSignalBot's own record

node scripts/tsb-record.mjs path/to/record.json --write

This reads TradingSignalBot's record (the file tradingsignalbot.com's record is built from) in two ways and prints both:

  • As the record states it: one row per signal with its outcome (fixtures/tsb-record.csv, which the web app's "TradingSignalBot's own record" button loads).
  • As the channel posted it: the bot's signal message rebuilt from the levels, with each update as a reply (fixtures/tsb-messages.json). This is rebuilt, not a channel export, so it says nothing about deletions.

The two readings can differ, and the script says where. When a signal reaches a target and then its stop, the bot's closing message names the furthest target ("Closed. Furthest target hit: TP1") but does not say the stop came next. The record shows "TP1, then the stop". From the messages alone, the auditor counts it as "the end not stated", not as a win.

Develop

npm test          # node:test, no dependencies
npm run serve     # the web app on http://localhost:8090 (ES modules need http, not file://)

The web app is index.html, app.js and style.css at the root, importing src/. There is no build step. .github/workflows/pages.yml runs the tests and publishes the app to GitHub Pages on every push to main.

Not financial advice. An audit of a past record does not tell you what the next signal will do.


Part of the Forexia network: InterestRateDecision.com · Forexia Academy · TradingSignalBot · PropSim · OpenCharts

MIT licence.

About

Audit a signal channel's track record in your browser: wins, losses, unresolved and deleted signals by published rules.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages