Skip to main content

A package that can be used to convert from pine script to python

Project description

pyine

A simple package for the conversion of tradingview's .pine to python script.

Currently Supports

  • Variable Decleration a = 1
  • Dynamic Value Assignment a = b > c
  • If statements
  • Alert functions (will act as a print statement but will have full support in the future)
  • Comments

Warning The current version (1.1.1) will auto comment any strategy calls so it is advised that a study is used instead.

Usage

Pyine currently supports partial file conversion (good for simple pine script files) and the below indicators (based on their pine script equivelants)

Indicators

  • Simple Moving Average
  • Exponential Moving Average

Converter

from pyine import convert
_ = convert(filename)

Indicators

from pyine.indicators import *
ema = ema(close, period)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyine-1.1.1.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file pyine-1.1.1.tar.gz.

File metadata

  • Download URL: pyine-1.1.1.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.1

File hashes

Hashes for pyine-1.1.1.tar.gz
Algorithm Hash digest
SHA256 97b2164d52b377cf9f4dfc689f51f0b5a2913208b60a69d7d00260f9b310819e
MD5 d9ac2bd6f969e8ab11dde0ba33c69f53
BLAKE2b-256 4a2ff3c445d9576f1fa59f48862092d55fbe6e8921ef018451b9c9795e8a0715

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page