user20081578
user20081578

Reputation: 21

Pine script to python Conversion

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

Answers (1)

AWalkmen
AWalkmen

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:

  1. Simple Moving Average
  2. Exponential Moving Average

Upvotes: 0

Related Questions