AI Agent Audited 89 TradingView Scripts: 33 Are Not Tradeable, and There Is No Clean 'Yes'
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.
AI-processed from Habr AI; edited by Hamidun News
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.
- Dec 1, 2026Running Opus 5.5 on low first cut the cost of a solved task from $0.29 to $0.17
- Dec 1, 202622 AI Agents Reviewed the Code and Missed a Bug a Human Found in 3 Minutes
- Dec 1, 2026Senior engineers adopt AI agents more slowly, but their expertise is getting more expensive: 36% at Yandex code with them daily
- Dec 1, 2026AI Council cut its share of the Claude Code token bill in half, and the total bill by 15%
Key Questions Answered
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.
What are the key details on 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.
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.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
