Converter estrategia do tradingView para metatrader

MQL5 Convertir

Spécifications

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

Répondu

1
Développeur 1
Évaluation
(83)
Projets
143
52%
Arbitrage
8
13% / 75%
En retard
22
15%
Gratuit
2
Développeur 2
Évaluation
(24)
Projets
34
9%
Arbitrage
3
33% / 0%
En retard
8
24%
Gratuit
3
Développeur 3
Évaluation
(11)
Projets
17
59%
Arbitrage
2
0% / 100%
En retard
2
12%
Gratuit
5
Développeur 5
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit
6
Développeur 6
Évaluation
(296)
Projets
475
40%
Arbitrage
105
40% / 24%
En retard
80
17%
Occupé
Publié : 2 codes

Informations sur le projet

Budget
50+ USD