Convert TradingView Indicator to MQ4

MQL4 Dönüştürme

İş tamamlandı

Tamamlanma süresi: 2 gün
Geliştirici tarafından geri bildirim
Extremely helpful and understanding client. very considerate!
Müşteri tarafından geri bildirim
Great Work! One of my best Developer.

Şartname

Pivot Point High Low Indicator

The Script is written in “Pine” (a TradingView Script Language). I would like to convert it to MetaQuotes Language 4 (MQL4).


Here is the " Pine" Script:

//@version=3

//

// Pivot Points High Low

 

study(title="Pivot Points High Low Extension", shorttitle="Pivots", overlay=true)


pvtLenL       = input(5, minval=1, title="Pivot Length Left Hand Side")

pvtLenR       = input(3, minval=1, title="Pivot Length Right Hand Side")


maxLvlLen     = 0


// Get High and Low Pivot Points

pvthi_ = pivothigh(high, pvtLenL, pvtLenR)

pvtlo_ = pivotlow(low, pvtLenL, pvtLenR)


// Force Pivot completion before plotting.

pvthi = pvthi_[0]

pvtlo = pvtlo_[0]


// Count How many candles for current Pivot Level, If new reset.

counthi = barssince(not na(pvthi))

countlo = barssince(not na(pvtlo))

 

pvthis = fixnan(pvthi)

pvtlos = fixnan(pvtlo)

hipc = change(pvthis) != 0 ? na : red

lopc = change(pvtlos) != 0 ? na : green


plot((maxLvlLen == 0 or counthi < maxLvlLen) ? pvthis : na, color=hipc, transp=0, linewidth=1, offset=-pvtLenR, title="Top Levels")

plot((maxLvlLen == 0 or countlo < maxLvlLen) ? pvtlos : na, color=lopc, transp=0, linewidth=1, offset=-pvtLenR, title="Bottom Levels")

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(219)
Projeler
370
42%
Arabuluculuk
145
17% / 41%
Süresi dolmuş
124
34%
Serbest
Yayınlandı: 38 kod

Proje bilgisi

Bütçe
30 - 50 USD
Son teslim tarihi
to 1 gün