2

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 
Lakmi
  • 1,379
  • 3
  • 16
  • 27
user20081578
  • 21
  • 1
  • 3

1 Answers1

1

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
AWalkmen
  • 33
  • 5