Converter estrategia do tradingView para metatrader

MQL5 Dönüştürme

İş Gereklilikleri

Olá, vi esse código no tradingView e gostaria de converter para o metatrader

Esse código eh baseado no cruzamento de medias moveis, porem o a referencia delas eh outro tempo gráfico.

exemplo, to no grafico de 1m, mas nele ta plotado a media de 5 periodos referente ao timeframe de 30m

Espero que tenha conseguido ser claro

ema5=ema(close, 5)
ema2=ema(close, 2)
 
demaFast =  security(tickerid, "30", 2 * ema5 - ema(ema5, 5)  )

plotchar((2 * ema5 - ema(ema5, 5)), "d", "", location = location.top)
plotchar(demaFast, "fast", "", location = location.top)

demaSlow  = security(tickerid,"30", 2 * ema2 - ema(ema2, 2)  )
plotchar(demaSlow, "slow", "", location = location.top)

buy = crossover(demaSlow, demaFast)
sell = crossunder(demaSlow, demaFast)
strategy.entry("BUY", strategy.long, 1, when = buy)
strategy.entry("SELL", strategy.short, 1, when = sell )


atte Lucas Andrey

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(83)
Projeler
143
52%
Arabuluculuk
8
13% / 75%
Süresi dolmuş
22
15%
Serbest
2
Geliştirici 2
Derecelendirme
(24)
Projeler
34
9%
Arabuluculuk
3
33% / 0%
Süresi dolmuş
8
24%
Serbest
3
Geliştirici 3
Derecelendirme
(11)
Projeler
17
59%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
2
12%
Serbest
5
Geliştirici 5
Derecelendirme
(574)
Projeler
945
47%
Arabuluculuk
309
58% / 27%
Süresi dolmuş
125
13%
Serbest
6
Geliştirici 6
Derecelendirme
(296)
Projeler
475
40%
Arabuluculuk
105
40% / 24%
Süresi dolmuş
80
17%
Meşgul
Yayınlandı: 2 kod

Proje bilgisi

Bütçe
50+ USD