Convert Pine (Tradingview) indicator into MQL4 expert

MQL4 Experts Convertir

Tâche terminée

Temps d'exécution 3 jours
Commentaires du client
He works very responsibly, very well.

Spécifications

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) )


Répondu

1
Développeur 1
Évaluation
(119)
Projets
127
41%
Arbitrage
3
33% / 67%
En retard
0
Gratuit
2
Développeur 2
Évaluation
(589)
Projets
1070
50%
Arbitrage
39
28% / 41%
En retard
49
5%
Gratuit
Publié : 1 article, 8 codes
3
Développeur 3
Évaluation
(564)
Projets
845
73%
Arbitrage
15
53% / 13%
En retard
193
23%
Gratuit
4
Développeur 4
Évaluation
(1125)
Projets
1813
61%
Arbitrage
14
64% / 7%
En retard
84
5%
Gratuit
5
Développeur 5
Évaluation
(88)
Projets
143
39%
Arbitrage
21
19% / 48%
En retard
30
21%
Gratuit
6
Développeur 6
Évaluation
(54)
Projets
53
17%
Arbitrage
7
0% / 100%
En retard
5
9%
Gratuit

Informations sur le projet

Budget
30 - 40 USD
Délais
de 1 à 3 jour(s)