Reputation: 21
I've been trying to convert the following Pinescript to Python without much success. I want to convert the below pine script code to python can someone plz help me out.
avg= ema(abs(x - x[1]), t)
smoothrng = ema(avrng, wper) * m
Upvotes: 2
Views: 11811
Reputation: 31
In this article you can find the usage of pyine package with this source code:
Converter
from pyine import convert
_ = convert(filename)
Indicators
from pyine.indicators import *
ema = ema(close, period)
Available Indicators:
Upvotes: 0