pine-script

Translate Python backtest strategies into Pine Script v6 files.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill pine-script-daddyelonmusk69
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pine-script
Source: https://github.com/DaddyElonMusk69/motis-agent/tree/main/skills/finance/pine-script
Command: npx skills add https://github.com/DaddyElonMusk69/motis-agent --skill pine-script-daddyelonmusk69

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Converts Python-based backtest strategies into TradingView Pine Script v6 or generates Pine Script from natural-language descriptions, automating cross-language translation for backtests and strategy ideas.

Core Features & Use Cases

  • Backtest export: translate a Python strategy to a Pine Script v6 strategy compatible with TradingView.
  • Description-to-script: generate Pine Script directly from user-provided strategy descriptions.
  • Output workflow: writes the resulting script to artifacts/strategy.pine for easy retrieval and testing.

Quick Start

Describe your trading idea or paste a Python backtest module, and the skill will output a Pine Script v6 strategy.

Frequently Asked Questions about pine-script

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a Python backtest strategy to TradingView Pine Script?

You can generate Pine Script v6 strategies from natural-language descriptions by providing your trading idea. The skill translates the text into compliant Pine Script v6 syntax and writes the output to artifacts/strategy.pine.

Can I use natural language to generate a TradingView strategy?

Yes, you can generate TradingView strategies from natural-language descriptions. Simply describe your trading idea, and the skill creates a Pine Script v6 strategy, writing the resulting code to artifacts/strategy.pine for retrieval and testing.

Does the generated Pine Script enforce v6 syntax for TradingView?

Yes, the generated Pine Script strictly enforces v6 syntax. The skill uses a standard template to ensure translated Python logic or natural-language descriptions are fully compatible with TradingView's current scripting engine.

What is the best way to migrate Python trading logic to TradingView?

The best way to migrate Python trading logic to TradingView is using an automated translation skill that enforces Pine Script v6 syntax. It maps your Python backtest module into a standard template, outputting a ready-to-run strategy file.

Where does the converted Pine Script strategy get saved?

The converted Pine Script strategy gets saved to artifacts/strategy.pine. This output workflow ensures the translated Python logic or generated strategy is easily retrieved for testing on TradingView.

Do I need to manually fix syntax when translating Python backtests to Pine Script?

You do not need to manually fix syntax when translating Python backtests to Pine Script. The skill automatically enforces Pine Script v6 syntax and applies a standard template to generate ready-to-run code.