Pine Script β†’ Python

in Seconds

Use your Pine Script outside of TradingView

Pine Script
β†’
//@version=6
strategy("BarUpDn Strategy", overlay=true,
         default_qty_type = strategy.percent_of_equity,
         default_qty_value = 10)

maxIdLossPcnt = input.float(1, "Max Intraday Loss(%)")

strategy.risk.max_intraday_loss(maxIdLossPcnt,
     strategy.percent_of_equity)

if (close > open and open > close[1])
    strategy.entry("BarUp", strategy.long)

if (close < open and open < close[1])
    strategy.entry("BarDn", strategy.short)
"""
@pyne
"""
from pynecore.lib import close, input, open, script, strategy


@script.strategy('BarUpDn Strategy', overlay=True, default_qty_type=strategy.percent_of_equity, default_qty_value=10)
def main(
    maxIdLossPcnt=input.float(1, 'Max Intraday Loss(%)')
):
    strategy.risk.max_intraday_loss(maxIdLossPcnt, strategy.percent_of_equity)
    if close > open and open > close[1]:
        strategy.entry('BarUp', strategy.long)
    if close < open and open < close[1]:
        strategy.entry('BarDn', strategy.short)

Once Upon a Pine

Once upon a time, in the depths of the Forest of Bits, during the Age of Code, there lived a language. A secret, yet magical tongue, which could only be summoned from a single tower. There, the arcane coders forged their patterns, conjuring the spirits of price and time β€” and every spark born of this language was bound to that place.
But one day... the story continues…

Who is PyneSys For?

🧠

Developers

Use with your own backtesting system. No more limitations of the TradingView environment.

πŸ€–

Bot Creators

Run automated strategies in your own environment. Full control over execution and parameters.

πŸ“Š

Pine Script Users

Break free from TradingView's limitations. Run your strategies anywhere Python works.

"Convert, Test, Run β€” in your own environment."

How It Works

1

Upload Your Pine Script

Simply upload your Pine Script code through our web interface or API.

Upload Pine Script
2

We Convert to PyneCore (Python)

Our system translates your Pine Script to Python code that uses our PyneCore library. Generated code is human readable. You can use and develop it easily.

Convert to Python
3

Run on Your Machine

Execute the generated Python code locally or on your own server. PyneCore allows you to run your compiled scripts easily with its friendly CLI.

Run on Your Machine
4

Use API for Seamless Integration

Integrate with our API using your personal key for automated workflows. PyneCore can run your scripts directly from the CLI if you have PyneSys API key.

API Integration

Try It For Free

Not ready to subscribe yet?
Convert up to 3 scripts for free via our Discord server.

Discord Bot Preview
Join Our Discord

Pricing Plans

Choose the plan that fits your needs. All plans include API access.

🌱 Seed

$5 / month

Perfect for individuals who want to support open-source PyneCore development while getting access to the basic Pine Script to Python conversion.

  • 5 script conversions per day
  • 1 script conversion per hour
  • 1 API key

🌿 Sprout

$10 / month

Ideal for traders and developers who need regular conversion services for personal projects.

  • 30 script conversions per day
  • 5 script conversions per hour
  • 2 API keys

🌲 Grower

$20 / month

For serious traders and developers who need more frequent conversions and multiple API keys.

  • 100 script conversions per day
  • 60 script conversions per hour
  • 5 API keys

🌳 Forest

$30 / month

Our premium plan for professional traders and development teams who need high-volume conversions.

  • 300 script conversions per day
  • 120 script conversions per hour
  • 10 API keys

Plan Comparison

SeedSproutGrowerForest
Price$5$10$20$30
Daily Limit530100300
Hourly Limit1560120
API Keys12510

API & CLI Integration

Seamlessly integrate PyneSys into your workflow with our API and CLI tools.

# 1st download some data
pyne data download ccxt --symbol "BYBIT:BTC/USDT:USDT"

# then run your script
pyne run simple_ma.pine ccxt_BYBIT_BTC_USDT_USDT_1D.ohlcv

If your Pine Script code changes, our API automatically converts and runs the updated version.

Key Features

  • Automatic code update detection
  • Personal API keys for secure access
  • Command-line interface for easy integration
  • Custom webhook support

Data Handling & Security

πŸ”’ Script Privacy

We only cache your scripts for conversion purposes. They are never shared with third parties without your permission.

πŸ‘€ User Data

User account management is handled securely through Logto authentication.

πŸ’³ Payment Security

All payment processing is handled by Stripe with bank-level security standards.

πŸ”‘ API Security

API keys can be revoked at any time. All connections are secured with HTTPS.

Join Our Community

Connect with other traders, developers, and the PyneSys team.

Frequently Asked Questions

No. We love TradingView and use it as a guide and development platform. Our system is not meant to replace it, but to complement it. TradingView is the best place to develop and test your Pine Script code β€” we help transform it into executable Python code.

It automatically transforms your Pine Script code into Python-compatible "Pyne" code. This Pyne code can be run in an open-source system called PyneCore, which preserves Pine semantics but in Python form.

Not necessarily. The converter is currently available through an API. You can use it through our web interface or with the PyneCore CLI. The CLI automatically communicates with the API and converts the code if it's not already in the cache.

With the PyneCore system, it can run on any platform: Linux, macOS, Windows. The system requires Python 3.11+ and doesn't use cumbersome external dependencies.

Pine Script is a TradingView trademark. We're not copying or reverse-engineering it, but building an independent system that is functionally compatible with it. This means the same logic and behavior applies, but in Python language, with full control and customizability.