--- language: - en - ru license: mit configs: - config_name: reports default: true data_files: - split: train path: "content/*/data/*/result_reports.jsonl" - config_name: best data_files: - split: train path: "content/*/data/*/result_best.jsonl" - config_name: tracks data_files: - split: train path: "content/*/data/*/result_tracks.jsonl" - config_name: ideas data_files: - split: train path: "content/*/assets/tv-ideas.normalize.jsonl" tags: - finance - time-series - crypto - bitcoin - trading-signals - social-signals - tradingview - backtest - grid-search - risk-management - parameter-sweep - analyst-evaluation - signal-quality - drawdown - sharpe-ratio - look-ahead-bias pretty_name: "TradingView Analyst Grading via Risk-Management Grid Sweep (2021–2026)" size_categories: - 100M/ assets/tv-ideas.normalize.jsonl # input: TradingView posts index..mjs # one-symbol run data// result.json # per-symbol summary result_reports.jsonl # 21,280 points × metrics + trades result_best.jsonl # winners by 4 criteria result_tracks.jsonl # (rule × author): hitRate ``` **67 months** (`jan_2021` … `jul_2026`), **11 symbols**, 2,503 files, 63 GB. | Symbol | Months | Symbol | Months | |---|---|---|---| | BTCUSDT | 67 | ZECUSDT | 30 | | ETHUSDT | 66 | POLUSDT | 16 | | DOGEUSDT | 66 | PENGUUSDT | 16 | | SOLUSDT | 59 | HYPEUSDT | 12 | | TRXUSDT | 42 | PUMPUSDT | 3 | | NEARUSDT | 37 | | | ### `result_reports.jsonl` — the core One line per grid point (~2 GB per symbol-month). ```json { "point": {"hardStopPercent": 7.5, "trailingTakePercent": 1.5, "holdMinutes": 15840, "profitLockPercent": 2}, "skippedBusy": 71, "totalPnlPercent": 146.16, "avgPnlPercent": 0.40, "winRate": 0.70, "profitFactor": 1.58, "maxSeriesDrawdownPercent": 87.62, "calmarRatio": 24.35, "recoveryFactor": 1.67, "avgHoldMinutes": 4620.18, "p95HoldMinutes": 15840, "p99HoldMinutes": 15840, "sharpe": 1.86, "sortino": 3.46, "exitReasons": {"hard_stop": 14, "trailing_take": 69, "profit_lock": 228, "time_expired": 37, "data_truncated": 16}, "tradesList": [ /* ideaId, author, direction, exitReason, pnlPercent, … */ ] } ``` `tradesList` gives attribution down to the individual post: who wrote it, when the entry happened, why the exit fired, how much was lost or made. ### `result_tracks.jsonl` — author track records One line per **(rule × author)**, where the rule is the point's own four levels. Exactly `21,280 × author_count` lines (5,000,800 for `jul_2026/BTCUSDT`). ```json {"holdMinutes": 1440, "profitLockPercent": 1, "hardStopPercent": 1, "trailingTakePercent": 0.5, "author": "BitCoinGuide", "ideas": 8, "hits": 6, "hitRate": 0.75} ``` This is raw material with no thresholds and no ban list: the engine trades **every** author and merely reports the track. Who counts as noise is the consumer's call. ### `result_best.jsonl` Winners by four criteria: `sharpe`, `sortino`, `pnl`, `recovery`. Different criteria pick different points — the Sharpe optimum and the PnL optimum are not the same thing. ## What the data shows On `jul_2026/BTCUSDT` (739 posts → 435 directional after deduplication): ``` grid points: 21,280 losing points: 13,398 (63 %) sharpe: −6.19 … +1.86 totalPnl: −445 % … +201 % winRate: 0.12 … 0.89 ``` Exit reasons across the whole grid: | Reason | Share | |---|---| | `profit_lock` | 37.2 % | | `trailing_take` | 22.0 % | | `time_expired` | 20.7 % | | `hard_stop` | 18.1 % | | `data_truncated` | 1.9 % | **63 % of configurations are unprofitable on the very same set of calls.** The worst point (stop 1 %, trailing 0.5 %, lock 1 %, 2 days) yields −166 % and a Sharpe of −6.19; the best (stop 7.5 %, trailing 1.5 %, lock 2 %, 11 days) yields +146 % and a Sharpe of +1.86. That is the measurement: an analyst is not "profitable" or "unprofitable" in a vacuum — they are profitable within a specific risk corridor, and the dataset shows which one. Dependence on the hold window for the same symbol: | Hold | `skippedBusy` (avg) | `hitRate` | |---|---|---| | 1 day | 16.1 | 0.343 | | 7 days | 59.8 | 0.470 | | 14 days | 70.2 | 0.464 | `hitRate` plateaus by day 7. Holding longer does not improve the call — it only freezes the money. ## Run methodology 1. **Filtering and deduplication.** Ideas are selected by symbol, `NEUTRAL` is dropped, then anti-flood: at most one post per `author + direction` per 8 hours. A repeated opinion is not new evidence — it is discarded entirely and does not inflate the author's track. Example: 1,077 ideas in the file → 739 for BTCUSDT → 449 directional → **435**. 2. **Idea profile.** One asynchronous forward pass over 1-minute candles from the minute after publication, capped by the grid's **longest** hold (14 days). MFE / MAE, whale-shakeout depth and the median move are computed. Candles are **never re-iterated** per grid point — the outcomes of all 21,280 points are derived from the profile arithmetically. 3. **Per-author slot.** Each author owns a single slot: while their position is open, their new posts are absorbed (`skippedBusy`, `absorbedIdeas`). Authors **never collide** — another author's position does not occupy the slot. The slot is held until the trade's *actual* exit, not for the full `holdMinutes`: that axis is only the upper bound, and a `hard_stop`, `profit_lock` or `trailing_take` releases the slot earlier. So `skippedBusy` is driven by all four levels of the point at once, not by `holdMinutes` alone — on `jul_2026/BTCUSDT` the 20160-minute step (stop 4 %) absorbs 43 ideas with a longest actual hold of 13,298 minutes, while the 15840-minute step (stop 7.5 %) absorbs 71. 4. **Honesty contracts.** Entry at the `open` of the next minute; exits against candle wicks (`high` / `low`), never `close`; the stop wins an ambiguous candle; trailing and lock arm only from **previous**-candle peaks; fee and slippage on both legs. 5. **Invariants.** Every point is checked: PnL not below the hard-stop floor, `trailing_take` cannot lock a loss, `profit_lock` cannot fill below its own level, exit not before entry. A violation raises — it never silently corrupts the data. Sharpe and Sortino are **time-based**: computed over daily equity increments on a window shared by every grid point, idle days included. As a result the same PnL harvested through rare chunky exits scores worse than the same PnL through frequent short trades — frozen capital is penalised. ## Limitations These matter — read before use. - **Author tracks are a whole-month summary, not a point-in-time signal.** Every individual trade is strictly forward-looking: the profile is built from the minute after publication onward, and a hit is decided by the chronology from entry. Nothing in `result_reports.jsonl` peeks into its own future. But `result_tracks.jsonl` aggregates an author's `hitRate` over **all** of their ideas in the month at once, later posts included. Using that `hitRate` as an entry filter on trades from the *same* month injects lookahead that is not present in the data. The engine deliberately ships the raw track and applies no ban list — every author is traded (364 trades + 71 `skippedBusy` = all 435 directional ideas, 235 of 235 authors). Rolling-window discipline is the consumer's job. - **The grid's last steps are biased.** A profile requires 14 days of forward candles; near the edge of history there is not enough data. On `jul_2026/BTCUSDT`, `truncatedCount` = 199 of 435 (46 %), and the observation total drops on the 12–14-day steps (80,040 → 76,560). The `hitRate` decline at 14 days is the data edge, not deteriorating calls. **Do not compare the 14-day step against the short ones directly.** - **A month bounds the ideas, not the candles — so consecutive months overlap.** Every idea gets its full forward horizon regardless of frame boundaries: a post from the 30th is simulated on candles well into the next month and is still booked in the month it *opened* in. On `jun_2026/BTCUSDT` at the winning point, 106 of 253 trades (42 %) exit in July, the last one on **Jul 7** from an entry on **Jun 30 18:40**. There are no cut-off artifacts at month edges — but the runs are *not* disjoint periods. Do not sum monthly PnL as independent intervals: the first ~14 days of every month are covered twice, once by the previous month's open positions and once by its own ideas. The daily-bucket window for Sharpe/Sortino likewise extends past the month end (it runs to the last `outcomeKnownAt`). - **`Infinity` → `null` in JSON.** `sortino`, `profitFactor`, `calmarRatio` and `recoveryFactor` are infinite on loss-free series, and `JSON.stringify` writes `null`. Read that as "no denominator", not as a missing value. - **`hitRate` requires a sample-size filter.** Values of 0.00 and 1.00 in `tracks` are typically authors with one or two ideas. Without a threshold on `ideas` the ranking is meaningless. - **The per-author slot is a grading device, not a portfolio model.** Each author is simulated in isolation with a single slot, so what you read is "following one guru's signals," not a real book. A live investor holds positions from several authors at once, and this dataset deliberately does not model that: authors never interact, there is no shared capital, no global exposure cap, no cross-author netting. Isolation is what makes the per-author numbers comparable — the moment authors shared a pool, an author's `hitRate` would depend on who else happened to post that week. Portfolio construction is the next stage, not this one (see below). - **Symbol coverage is uneven** (67 months for BTCUSDT down to 3 for PUMPUSDT). Aggregating across all symbols unweighted skews towards BTC. - **The simulator picks candidates; it does not replace the engine.** Parameters found via the grid must be validated by a real backtest. ## Usage ```python from datasets import load_dataset # risk-management grid (default) reports = load_dataset("tripolskypetr/trading-entries", "reports", split="train") # author track records tracks = load_dataset("tripolskypetr/trading-entries", "tracks", split="train") # source posts ideas = load_dataset("tripolskypetr/trading-entries", "ideas", split="train") ``` `result_reports.jsonl` runs about 2 GB per symbol-month because of `tradesList`. To analyse the grid itself, strip the field with a stream: ```bash jq -c 'del(.tradesList)' result_reports.jsonl > grid.jsonl ``` Reproducing a run takes `backtest-kit` + `ccxt`; the entry point is `content//index..mjs`. ### Walk-forward: pin one month's winner, re-run it on the next The limitation above says an author's `hitRate` must not be applied inside the month it was measured on. Here is how to avoid that: take the grid point and the author from month **N**, freeze the grid to that single point, and feed the ideas of month **N+1**. Because `gridAxes` merges per-axis and *a single-value list freezes an axis*, a four-single-value override collapses the 21,280-point sweep into exactly one out-of-sample evaluation. ```js import { addExchangeSchema, addSimulatorSchema, Simulator } from "backtest-kit"; import { readFileSync } from "fs"; import { singleshot } from "functools-kit"; import ccxt from "ccxt"; const SYMBOL = "BTCUSDT"; // ── TRAIN (jun_2026): winner by sharpe + the author to test ─────────────── // taken from content/jun_2026/data/BTCUSDT/result_best.jsonl const TRAINED_POINT = { hardStopPercent: 8.5, trailingTakePercent: 2, holdMinutes: 20160, // 14 days profitLockPercent: 5, }; // from content/jun_2026/data/BTCUSDT/result_tracks.jsonl at that same point const AUTHOR = "TradingShot"; // train: ideas 15, hits 14, hitRate 0.93 const getExchange = singleshot(async () => { const exchange = new ccxt.binance({ options: { defaultType: "spot", adjustForTimeDifference: true }, enableRateLimit: true, timeout: 15000, }); await exchange.loadMarkets(); return exchange; }); addExchangeSchema({ exchangeName: "ccxt_cached", getCandles: async (symbol, interval, since, limit) => { const exchange = await getExchange(); const candles = await exchange.fetchOHLCV(symbol, interval, since.getTime(), limit); return candles.map(([timestamp, open, high, low, close, volume]) => ({ timestamp, open, high, low, close, volume, })); }, }); // Freezing every axis to one value turns the sweep into a single point: // the trade rule is now fixed by the TRAINING month and cannot be re-fitted. addSimulatorSchema({ simulatorName: "walk_forward", exchangeName: "ccxt_cached", gridAxes: { hardStopPercent: [TRAINED_POINT.hardStopPercent], trailingTakePercent: [TRAINED_POINT.trailingTakePercent], holdMinutes: [TRAINED_POINT.holdMinutes], profitLockPercent: [TRAINED_POINT.profitLockPercent], }, }); // ── TEST (jul_2026): the NEXT month's ideas, unseen by the training ─────── const ideas = readFileSync("./content/jul_2026/assets/tv-ideas.normalize.jsonl", "utf-8") .split("\n") .filter(Boolean) .map((line) => JSON.parse(line)) // swap the sample: keep only the author selected on the training month .filter((idea) => idea.author === AUTHOR); const result = await Simulator.run({ symbol: SYMBOL, simulatorName: "walk_forward", ideas, }); // exactly one point in the grid -> exactly one report const [report] = result.reports.reports; const [track] = result.reports.tracks; console.log("out-of-sample:", { author: AUTHOR, point: report.point, hitRate: track.hitRate, // compare against the training hitRate ideas: track.ideas, totalPnlPercent: report.totalPnlPercent, winRate: report.winRate, exitReasons: report.exitReasons, }); ``` To reproduce the numbers without running anything, the same comparison is already in the dataset — read the identical point out of both months' `result_tracks.jsonl`: ```bash POINT='.hardStopPercent==8.5 and .trailingTakePercent==2 and .holdMinutes==20160 and .profitLockPercent==5' for M in jun_2026 jul_2026; do echo -n "$M: " jq -c "select($POINT) | select(.author==\"TradingShot\")" \ content/$M/data/BTCUSDT/result_tracks.jsonl done ``` What that point actually shows for the winner of `jun_2026` — and why the limitation matters: | Author | Train `jun_2026` | Test `jul_2026` | | |---|---|---|---| | `TradingShot` | 14/15 = **0.93** | 2/8 = **0.25** | collapses out of sample | | `BitCoinGuide` | 8/11 = **0.73** | 8/8 = **1.00** | holds up | | `MasterAnanda` | 10/17 = **0.59** | 7/7 = **1.00** | holds up | | `ExpertTraderASK` | 10/13 = **0.77** | 3/7 = **0.43** | degrades | The best in-sample author is the one that fell apart hardest. Selecting authors by a `hitRate` measured on the same month would have picked `TradingShot` — which is precisely the lookahead the dataset refuses to bake in. ## License MIT. The source posts belong to their authors on TradingView; only metadata (id, author, direction, title, link) and derived metrics are stored here.