Converter um código do Tradingview para Mt5

İş tamamlandı

Tamamlanma süresi: 5 dakika
Geliştirici tarafından geri bildirim
Thank you!
Müşteri tarafından geri bildirim
Um profissional altamente capacitado, o melhor programador que já contratei até hoje. Pode contratar os serviços dele sem medo algum porque ele é muito bom e muito rápido para fazer os trabalhos.

İş Gereklilikleri

Converter o código de um indicador do Tradingview para rodar no MT5

O indicador tem código aberto e se chama Ut Bot Alerts (QuantNomad)

Aqui está o código que copiei do Tradingview:


//@version=4
study(title="UT Bot Alerts", overlay = true)

// Inputs
a = input(1,     title = "Key Vaule. 'This changes the sensitivity'")
c = input(10,    title = "ATR Period")
h = input(false, title = "Signals from Heikin Ashi Candles")

xATR  = atr(c)
nLoss = a * xATR

src = h ? security(heikinashi(syminfo.tickerid), timeframe.period, close, lookahead = false) : close

xATRTrailingStop = 0.0
xATRTrailingStop := iff(src > nz(xATRTrailingStop[1], 0) and src[1] > nz(xATRTrailingStop[1], 0), max(nz(xATRTrailingStop[1]), src - nLoss),
   iff(src < nz(xATRTrailingStop[1], 0) and src[1] < nz(xATRTrailingStop[1], 0), min(nz(xATRTrailingStop[1]), src + nLoss),
   iff(src > nz(xATRTrailingStop[1], 0), src - nLoss, src + nLoss)))
 
pos = 0  
pos :=   iff(src[1] < nz(xATRTrailingStop[1], 0) and src > nz(xATRTrailingStop[1], 0), 1,
   iff(src[1] > nz(xATRTrailingStop[1], 0) and src < nz(xATRTrailingStop[1], 0), -1, nz(pos[1], 0)))
   
xcolor = pos == -1 ? color.red: pos == 1 ? color.green : color.blue

ema   = ema(src,1)
above = crossover(ema, xATRTrailingStop)
below = crossover(xATRTrailingStop, ema)

buy  = src > xATRTrailingStop and above
sell = src < xATRTrailingStop and below

barbuy  = src > xATRTrailingStop
barsell = src < xATRTrailingStop

plotshape(buy,  title = "Buy",  text = 'Buy',  style = shape.labelup,   location = location.belowbar, color= color.green, textcolor = color.white, transp = 0, size = size.tiny)
plotshape(sell, title = "Sell", text = 'Sell', style = shape.labeldown, location = location.abovebar, color= color.red,   textcolor = color.white, transp = 0, size = size.tiny)

barcolor(barbuy  ? color.green : na)
barcolor(barsell ? color.red   : na)

alertcondition(buy,  "UT Long",  "UT Long")
alertcondition(sell, "UT Short", "UT Short")


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
2
Geliştirici 2
Derecelendirme
(23)
Projeler
29
14%
Arabuluculuk
3
0% / 67%
Süresi dolmuş
3
10%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(539)
Projeler
618
33%
Arabuluculuk
35
37% / 49%
Süresi dolmuş
10
2%
Meşgul
4
Geliştirici 4
Derecelendirme
(574)
Projeler
945
47%
Arabuluculuk
309
58% / 27%
Süresi dolmuş
125
13%
Serbest

Proje bilgisi

Bütçe
30 - 50 USD
Son teslim tarihi
from 2 to 5 gün