Convert Pine (Tradingview) indicator into MQL4 expert

MQL4 Experts Conversão

Trabalho concluído

Tempo de execução 3 dias
Comentário do cliente
He works very responsibly, very well.

Termos de Referência

I have a Tradingview's pine script that I would like to be translated into an expert advisor for MT4.

I want it to be translated to an expert to be used as a robot.

- i want to be able to control all the inputs

- i want to be able to control the lot size

- i want to be able to control the risks

//@version=3
///////////////////////////IMPROVED///////////////////////////////////////
// a very simple but very reliable strategy, works best on Heiken Ashi charts
//Heiken Ashi Candle close crossing over 20 period SMA
//Added more safety. 
//Continuation trades added
//////////////////////////////////////////////////////////////////////////

strategy("Heiken_Ashi_SMA20_Close_Crossover", overlay=true)



longCondition = crossover(close, sma(close, 20))  or (crossover(close,close[1]) and close>sma(close, 20))
if (longCondition)
    strategy.entry("Long", strategy.long)
strategy.close("Long",when=crossunder(close,close[1]) and low<sma(close, 20) )

shortCondition = crossunder(close, sma(close, 20)) or (crossunder(close,close[1]) and close<sma(close, 20))
if (shortCondition)
    strategy.entry("Short",strategy.short)
strategy.close("Short",when=crossover(close,close[1]) and high>sma(close, 20) )


Respondido

1
Desenvolvedor 1
Classificação
(119)
Projetos
127
41%
Arbitragem
3
33% / 67%
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(589)
Projetos
1070
50%
Arbitragem
39
28% / 41%
Expirado
49
5%
Livre
Publicou: 1 artigo, 8 códigos
3
Desenvolvedor 3
Classificação
(564)
Projetos
845
73%
Arbitragem
15
53% / 13%
Expirado
193
23%
Livre
4
Desenvolvedor 4
Classificação
(1125)
Projetos
1813
61%
Arbitragem
14
64% / 7%
Expirado
84
5%
Livre
5
Desenvolvedor 5
Classificação
(88)
Projetos
143
39%
Arbitragem
21
19% / 48%
Expirado
30
21%
Livre
6
Desenvolvedor 6
Classificação
(54)
Projetos
53
17%
Arbitragem
7
0% / 100%
Expirado
5
9%
Livre

Informações sobre o projeto

Orçamento
30 - 40 USD
Prazo
de 1 para 3 dias