終了

Convert tradingview script into python indicator

I need to convert a tradingview script into python ! To use it as indicator and backtests on Price chart.

Here IS the script:

//@version=3

strategy("Pivot Reversal Strategy", overlay=true)

// === BACKTEST RANGE ===

FromMonth = input(defval = 2, title = "From Month", minval = 1)

FromDay = input(defval = 1, title = "From Day", minval = 1)

FromYear = input(defval = 2018, title = "From Year", minval = 2014)

ToMonth = input(defval = 1, title = "To Month", minval = 1)

ToDay = input(defval = 1, title = "To Day", minval = 1)

ToYear = input(defval = 9999, title = "To Year", minval = 2014)

leftBars = input(4)

rightBars = input(2)

swh = pivothigh(leftBars, rightBars)

swl = pivotlow(leftBars, rightBars)

swh_cond = not na(swh)

hprice = 0.0

hprice := swh_cond ? swh : hprice[1]

le = false

le := swh_cond ? true : (le[1] and high > hprice ? false : le[1])

if (le)

[login to view URL]("PivRevLE", [login to view URL], comment="PivRevLE", stop=hprice + [login to view URL], when= (time > timestamp(FromYear, FromMonth, FromDay, 00, 00)) and (time < timestamp(ToYear, ToMonth, ToDay, 23, 59)))

swl_cond = not na(swl)

lprice = 0.0

lprice := swl_cond ? swl : lprice[1]

se = false

se := swl_cond ? true : (se[1] and low < lprice ? false : se[1])

if (se)

[login to view URL]("PivRevSE", [login to view URL], comment="PivRevSE", stop=lprice - [login to view URL], when= (time > timestamp(FromYear, FromMonth, FromDay, 00, 00)) and (time < timestamp(ToYear, ToMonth, ToDay, 23, 59)))

//plot([login to view URL], title="equity", color=red, linewidth=2, style=areabr)

スキル: パイソン, ソフトウェアアーキテクチャ, ウェブ記事のスクラップ

さらに表示: pdf convert txt script, convert asp script php script, convert mysql script oracle, tradingview scripts, pine script strategy, pine script crossover, how to use tradingview scripts, pine script plot, pine script security, convert pine to python, tradingview fisher transform, convert php script perl, convert action script, convert simple java python, convert java script online, video upload convert php script, online convert flv script, script python convert resize, convert php script python, convert powershell script python

採用者について:
( 7件のレビュー ) Vitry sur seine, France

プロジェクトID: #18131315

3人のフリーランサーが、このジョブに平均€41で入札しています

adeelpirzada

Hi, there i have done scrapping almost on Half of Worldwide web including eCommerce giants(Amazon,eBay,craigslist) News Feed, Social media websites, API's. I develop my own tools based on client requirements with Multi もっと

€55 EUR 1日以内
(24件のレビュー)
5.8
mikeitexpert

Dear Employer, I have extensive experience in developing Python scripts for variety of applications ranging from trading algorithms, machine learning, data mining, web application, mobile application development etc. もっと

€24 EUR 3日以内
(35件のレビュー)
4.9
alexey105

I found your job posting and I think I'd be a great fit. I am a full stack developer with extensive experience in Python, Pandas, PySpark, Enterprise Java, and JavaScript. I'm confident in your plan! I'm working in もっと

€44 EUR 1日以内
(0件のレビュー)
0.0