Pine Script Backtest And Python Extender

Ask Claude to write your strategy into TradingView Pine Script for a first backtest, then rewrite it in Python to backtest across your full watchlist.

Tradingstandardhumbled-trader
by AgentVoltv1.0.0Published 1y ago
Free to sign up · every skill included with AgentVolt Pro

About this skill


name: pinescript-backtest-python-extender description: Ask Claude to write your strategy into TradingView Pine Script for a first backtest, then rewrite it in Python to backtest across your full watchlist.

Pine Script Backtest And Python Extender

What This Does

The creator backtests his trend-join-long rules on MU and the Mag 7 in TradingView Pine, then hits the Pine limits and tells Claude to switch to Python to backtest across a 32-ticker watchlist over the last 30 days. Portfolio result: 54 percent win rate and a positive total P&L that Pine couldn't produce.

What You Get

  • Pine Script strategy from natural language
  • TradingView backtest metrics (P&L, drawdown, profit factor)
  • Python fallback for large watchlists
  • per-ticker P&L breakdown
  • top-10 winners table

Customize

  • watchlist: list of tickers
  • period: how many days back to test
  • timeframe: 5m, 15m, 1d
  • capital: starting equity
  • per_trade_risk: percent risked per trade

Sample Output

Backtest returns 14 trades on MU with total P&L of 1,200 dollars, profit factor 2.48, then Python rerun on 32 tickers returns 54 percent win rate over 30 days.

Target Audience

Systematic traders needing repeatable multi-ticker backtests

Source

https://youtube.com/watch?v=IqvnryFzZD4

SKILL.md preview

SKILL.md
---
name: pinescript-backtest-python-extender
description: Ask Claude to write your strategy into TradingView Pine Script for a first backtest, then rewrite it in Python to backtest across your full watchlist.
---

# Pine Script Backtest And Python Extender

## What This Does
The creator backtests his trend-join-long rules on MU and the Mag 7 in TradingView Pine, then hits the Pine limits and tells Claude to switch to Python to backtest across a 32-ticker watchlist over the last 30 days. Portfolio result: 54 percent win rate and a positive total P&L that Pine couldn't produce.

## What You Get
- Pine Script strategy from natural language

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill