Translate this Pine Script (Tradingview) indicator to MQL4

Lavoro terminato

Tempo di esecuzione 4 ore
Feedback del cliente
Fast and good
Feedback del dipendente
Everything is fine. Thanks!

Specifiche

Hello. Simple job, just translate this Pine Script code to MQL4. It is a 200EMA special indicator, that does not appear in the chart when the market is in a range, filtering bad entries for my trend following Expert Advisor. It does that when the price crosses it a certain number of times in a certain time. The red color means a downtrend and the green an uptrend.


The purpose of the indicator is when not showing on the chart, new entries should not be made. I want to use this indicator on my Expert Advisor. It need to be translated exactly in its essence. 


tudy(title="Trading Rush Moving Average", shorttitle="TR EMA", overlay=true, resolution="")

len = 200

src = close

ema1 = ema(src, len)

maColor = if(close[5] > ema1[5] and close[10] > ema1[10] and close[15] > ema1[15] and close[20] > ema1[20] and close[30] > ema1[30] and close[40] > ema1[40] and close[50] > ema1[50] and close > ema1)


    [URL='http://color.green/']color.green[/URL]

else if(close[5] < ema1[5] and close[10] < ema1[10] and close[15] < ema1[15] and close[20] < ema1[20] and close[30] < ema1[30] and close[40] < ema1[40] and close[50] < ema1[50] and close < ema1)


    [URL='http://color.red/']color.red[/URL]

else


    [URL='https://color.new/']color.new[/URL](color.white, 100)

plot(ema1, title="TR EMA", color=maColor, linewidth=4)


Con risposta

1
Sviluppatore 1
Valutazioni
(250)
Progetti
460
26%
Arbitraggio
140
20% / 59%
In ritardo
100
22%
In elaborazione
2
Sviluppatore 2
Valutazioni
(848)
Progetti
1450
72%
Arbitraggio
121
28% / 47%
In ritardo
356
25%
Caricato
Pubblicati: 3 articoli
3
Sviluppatore 3
Valutazioni
(574)
Progetti
945
47%
Arbitraggio
309
58% / 27%
In ritardo
125
13%
Gratuito
4
Sviluppatore 4
Valutazioni
(296)
Progetti
475
40%
Arbitraggio
105
40% / 24%
In ritardo
80
17%
Occupato
Pubblicati: 2 codici
Ordini simili
Robo de elite 40 - 100 USD
seu Robô de Elite: Precisão: Filtros RSI e Price Action. Rentabilidade: Lote dinâmico baseado no capital (Compound Interest). Automação 24h: Filtro de horário para evitar spreads altos. Satisfação: Dashboard interativo com "Botão de Pânico"

Informazioni sul progetto

Budget
30+ USD