Preciso converter robô de profitchart para mt5 baseado no Atr e volatilidade com stop e gain móvel

MQL5 Experts Converting

Specification

Input

Alvo(1.15);
Stop(0.90);
HoraInicio(920);
HoraFim(1700);
HoraFechamento(1740);


Var

Vol, sAtr : Float;

Inicio

  sAtr := StopAtr(2, 20, 0)|0|;
  Vol := AvgTrueRange(10, 0); 

  Se (IsBought) entao
    Inicio
      SellToCoverLimit(BuyPrice+(Vol*Alvo)); 
      SellToCoverStop(BuyPrice-(Vol*Stop), BuyPrice-(Vol*Stop)-100); 
    Fim;

  Se (IsSold) entao
    Inicio
      BuyToCoverLimit(SellPrice-(Vol*Alvo));
      BuyToCoverStop(SellPrice+(Vol*Stop), SellPrice+(Vol*Stop)+100);
    Fim;

  Se (HasPosition = False) e (Time >= HoraInicio) e (Time < HoraFim) entao
    Inicio
      Se (Minima > sAtr) entao
        BuyLimit(sAtr);

      Se (Maxima < sAtr) entao
        SellShortLimit(sAtr);
    Fim;

  Se (Time > HoraFechamento) entao ClosePosition;
Fim;








Responded

1
Developer 1
Rating
(2)
Projects
6
33%
Arbitration
0
Overdue
2
33%
Free
2
Developer 2
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(1)
Projects
1
100%
Arbitration
1
0% / 100%
Overdue
0
Working
4
Developer 4
Rating
(206)
Projects
333
35%
Arbitration
66
12% / 58%
Overdue
87
26%
Free
5
Developer 5
Rating
(11)
Projects
17
59%
Arbitration
2
0% / 100%
Overdue
2
12%
Free
6
Developer 6
Rating
(294)
Projects
470
39%
Arbitration
102
40% / 24%
Overdue
78
17%
Busy
Published: 2 codes

Project information

Budget
30 - 50 USD