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.2) 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.2.tar.gz
(2.7 kB
view details)
File details
Details for the file pyine-1.1.2.tar.gz.
File metadata
- Download URL: pyine-1.1.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ec845ef8841e1e02737e746e5d9e1320a920648586a2a80990d8e0e8fe44aaf
|
|
| MD5 |
e0bba4decbc874c88e9de715ab995d0b
|
|
| BLAKE2b-256 |
53a7dda19c795dbe024dfafef086d5fc1bb0c5647a0494cda4a99d872add828b
|