Convert a Tradingview (Pine script) trading Indicator to python

Job ID: 37887184

Budget: $10 – $30 USD

I am seeking a Python expert who can convert trading indicators from Pine to Python.
The script can be access on tradingview using this link :

https://www.tradingview.com/script/uiwRnGlw/

The pine script is as follows:


indicator('Darvas Box Buy Sell', overlay=true)
boxp = input.int(defval=5, title='Length', minval=1, maxval=500)
LL = ta.lowest(low, boxp)
k1 = ta.highest(high, boxp)
k2 = ta.highest(high, boxp - 1)
k3 = ta.highest(high, boxp - 2)
NH = ta.valuewhen(high > k1[1], high, 0)
box1 = k3 < k2
TopBox = ta.valuewhen(ta.barssince(high > k1[1]) == boxp - 2 and box1, NH, 0)
BottomBox = ta.valuewhen(ta.barssince(high > k1[1]) == boxp - 2 and box1, LL, 0)


Note:
I have tried partially implementing and attached the Python code (refer to the attached file - freelancer_v4.py) you should use to code the logic. For source data, I have attached a pickled data frame (refer to the attached file - daily_reliance). Please keep the Python code and pickled data frame in a single folder and use PyCharm.

The timeline for the project is flexible.

Required Skills and Experience:
* Expertise in Python and Pine scripting languages.
* Familiarity with TradingView indicators.
Related categories: Python Pine Script