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

İş Gereklilikleri

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;








Yanıtlandı

1
Geliştirici 1
Derecelendirme
(2)
Projeler
6
33%
Arabuluculuk
0
Süresi dolmuş
2
33%
Serbest
2
Geliştirici 2
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
3
Geliştirici 3
Derecelendirme
(1)
Projeler
1
100%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
0
Çalışıyor
4
Geliştirici 4
Derecelendirme
(206)
Projeler
333
35%
Arabuluculuk
66
12% / 58%
Süresi dolmuş
87
26%
Serbest
5
Geliştirici 5
Derecelendirme
(11)
Projeler
17
59%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
2
12%
Serbest
6
Geliştirici 6
Derecelendirme
(294)
Projeler
470
39%
Arabuluculuk
102
40% / 24%
Süresi dolmuş
78
17%
Meşgul
Yayınlandı: 2 kod

Proje bilgisi

Bütçe
30 - 50 USD