---
id: 18845
lang: en
title: "AI Agent Audited 89 TradingView Scripts: 33 Are Not Tradeable, and There Is No Clean 'Yes'"
published_at: "2026-12-01 16:28:47"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1114636/?utm_campaign=1114636&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18845"
categories: ["research", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# AI Agent Audited 89 TradingView Scripts: 33 Are Not Tradeable, and There Is No Clean 'Yes'

> **Краткая суть (BLUF):** Attractive charts and likes on TradingView do not guarantee that a script is tradeable. An AI agent ran 89 scripts through a Python port of the platform: 33 are not tradeable, 38 received a 'no' (they lost money or failed to beat random entries), and 17 are 'unknown'. The single 'yes' became 'unknown' because of its drawdown. Verify strategies against real alerts, not the author's backtest.  • 33 of 89 scripts cannot be traded: their signals depend on ticks or lookahead • The strategy was compared against 1,000 random entries: the 59th percentile is not an edge • The only 'yes': profitable on 7 of 10 markets, but the drawdown exceeded the limit

TradingView hosts hundreds of thousands of indicators and trading strategies, each with likes, an appealing equity curve, and a confident description. But the central question goes unanswered: if you trade these signals on a real market, will you make money? The author of the pine2profit project handed the verification to an autonomous AI agent and ran 89 scripts through it. The result: 33 scripts produce signals that are not tradeable at all, 38 received a 'no' verdict (they lost money or failed to beat random entries), and 17 are 'unknown'. The single 'yes', after a drawdown check (the depth of the fall in account equity), also became 'unknown'. In other words, a good-looking chart on the platform says almost nothing about whether you can make money with it.

## Why this became possible in 2025

Checking by hand takes a long time: one idea eats an evening, a hundred ideas take months, and the list of popular scripts changes in the meantime. According to the author, when tens of thousands of algorithms are run, more than 99% turn out to be useless, and the few that pass the filter are not always the most popular.

Previously, Pine Script scripts, the language of TradingView, could not be run outside the platform. In 2025 they could be compiled into Python code that runs locally and step by step, candle by candle, with behavior close to TradingView. That made it possible to hand the verification to an agent.

The pipeline has three tools:

- **pine2pyne**: a transpiler from Pine Script versions 4, 5, and 6 to Python. It runs locally, without API keys or cloud services. The command is: `python3 -m pine2pyne strategy.pine -o strategy.py`.
- **PyneCore**: a runtime environment. It processes the Python code candle by candle and reproduces TradingView's mechanics: time series, var state, broker emulation, and the strategy functions.
- **pine2profit**: an npm package with a static site, a local server, and a data validator. It computes and changes nothing; it only displays results.

The agent has no code of its own. The whole process is described in the PLAN.md file: the order of steps, the calculation formulas, and the data requirements for the site. In essence, it is a detailed instruction that the AI follows step by step.

## Four stages of verification

**A. What the script does.** The agent determines which signals the indicator emits, whether alerts can be set on them, whether the signals repaint after the fact, and how often they appear. If there are no trading signals, the script receives the status not tradeable, and its returns are not examined further. Thirty-three of the 89 scripts stopped at this stage.

**B. From signal to trade.** The agent writes the rules in Pine strategy() format: entries, exits, execution on the next candle, commissions, and slippage. For ready-made strategies, it compares the Strategy Tester report with what would happen when trading on real alerts.

**C. Returns.** A notional account of $10,000 over a 12-month period. The same rule is then run on ten markets and compared with 1,000 random entry variants using the same holding time. If a strategy sits only at the 59th percentile, a pretty curve is not enough to claim an edge: random entries performed almost as well.

**D. Verdict.** YES, NO, or UNKNOWN, with a brief explanation and the conditions under which the conclusion could change.

## What came out

Of the 89 scripts:

- **33 are not tradeable.** Their signals depend on varip tick data or on request.security with lookahead. Among them are popular indicators that look convincing on a chart but whose signals cannot be traded.
- **38 received NO.** They either lost money or failed to beat random entries. Many show a positive result in the author's Strategy Tester but a negative one when trading on alerts. The cause is often execution on the next candle, commissions, and slippage.
- **17 received UNKNOWN.** There were too few trades over the year, or the outcome depended entirely on a parameter the author left to the user.
- **1 received YES, but its final verdict is still UNKNOWN.** The strategy was profitable on seven of ten markets and reached the 93rd percentile against random entries, but it did not pass the set drawdown limit.

## What's next, and the limitations

The initial check is only half the process. The second half is paper trading: a log of virtual trades kept after each audit. For each script, the conditions for review are fixed in advance. For example, if after three months the result is worse than −$650, the NO status stands; if after six months profit exceeds $1,300 and at least four months are positive, the check is repeated.

The limitations are obvious: a sample of 89 scripts is small, a test on a single year of data is sensitive to the market regime, and the transpiler only approximates TradingView's behavior. For a practitioner, the takeaway is simple: do not trust the backtest in a script's description. First establish whether the script's signals can be traded at all, then account for commissions and next-candle execution, and compare the result with random entries. The approach itself is also useful for other agentic tasks: one instruction file, local tools, and a strict verdict format.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1114636/?utm_campaign=1114636&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18845
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
