strategy-translator

Translate documented trading strategies into parameterized Python or Pine Script v5 code.

2|1|Updated Nov 17, 2025
One-click install
npx skills add https://github.com/xbklairith/kisune --skill strategy-translator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: strategy-translator
Source: https://github.com/xbklairith/kisune/tree/main/trading/skills/strategy-translator
Command: npx skills add https://github.com/xbklairith/kisune --skill strategy-translator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Converts strategy markdown into ready-to-run Python or Pine Script code for backtesting and deployment.

Core Features & Use Cases

  • Python Translation: Pandas-compatible, parameterized code.
  • Pine Script Translation: Pine Script v5 translation with inputs and plots.
  • Documentation: Docstrings and usage notes.

Quick Start

Provide a markdown strategy; choose Python or Pine Script output.

Frequently Asked Questions about strategy-translator

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

FAQPage Schema
How do I convert a trading strategy document into Python code for backtesting?

Strategy-translator converts markdown strategy documents into production-ready Python code compatible with backtesting frameworks like Backtrader. Provide your strategy description and receive parameterized, documented code with indicator calculations, entry/exit logic, and risk sizing built in.

Can I generate Pine Script v5 code from a strategy description?

Yes. Strategy-translator translates documented strategies directly to Pine Script v5 with inputs and plots configured. Output is ready for TradingView deployment alongside Python backtesting workflows.

What code quality standards does the translator enforce?

Generated code follows PEP 8 standards, includes comprehensive docstrings and type hints, implements robust error handling, and uses modular functions for indicators, entry/exit logic, and stop/target mechanics—no hardcoded values.

Do I need to write code myself or does the translator handle parameterization?

The translator generates fully parameterized code; all strategy inputs are exposed as configurable parameters rather than hardcoded. You adjust values without modifying the core logic.

What input format should my strategy documentation use?

Strategy-translator accepts markdown-formatted strategy documents describing rules, indicators, entry conditions, exits, and risk parameters. Markdown clarity directly improves code generation quality.

Can the same strategy code run on both Python backtesting frameworks and TradingView?

Strategy-translator generates separate Python and Pine Script outputs from a single strategy description. You maintain one strategy document and deploy across both platforms with consistent logic.