A package that can be used to convert from pine script to python
Project description
pyne
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.0) 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
Release history Release notifications | RSS feed
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.0.tar.gz
(5.8 kB
view details)
File details
Details for the file pyine-1.1.0.tar.gz
.
File metadata
- Download URL: pyine-1.1.0.tar.gz
- Upload date:
- Size: 5.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f573c3765a9deb01cc0fe0b743644468976a73eee3687b13f8a534591e58a73 |
|
MD5 | 0011a73144e1980269634f1e3522f8b1 |
|
BLAKE2b-256 | 6ab578b6c1568ebb025531821f6c4c1368f9b0d8f0b4aefba00beea5901a1f21 |