Preciso converter robô de profitchart para mt5

指定

quero converter esse codigo de profitchart para metatrader 5


     a estrategia é para mini indice: sempre que o preço cai 1.60% em relação a maxima do dia ele compra e sempre que sobre 1.60% em realação a minima ele vende 
alvo para compra é de 900 e stop de 250
alvo para venda é de 1800 e stop de 100 


input
  variaçao(1.60);
var
  numa,c,v,op,b               : integer;
  alvoxx,stopxx,max,min,varic : float;
  compra,venda                : boolean;
begin
  max := highD(0);
  min := lowD(0);
  varic := (variaçao / 100) + 1;
  //definindo as condições de compra e venda
  compra := (close < max / varic);
  venda := (close > min * varic);
  //fazendo o código da estratégia
  if (IsBought = false) and (iSSold = false) and (time < 1650) and (op = 0) then
    begin
      b:=0;
      numa := 0;
      if (compra) and (c = 0) then
        BuyAtMarket;
      if (venda) and (v = 0) then
        SellShortAtMarket;
    end;
  if (IsBought) then
    begin
      c := 1;
      v := 0;
      op := 1;
      numa := numa + 1;
      alvoxx := BuyPrice + 900;
      stopxx := BuyPrice - 250;
      if (close>buyprice+649) then b:=1;
      //alvo
      selltocoverLimit(alvoxx);
      //stop
      if (b=0) then
      selltocoverstop(stopxx,stopxx - 1000);
      if (b=1  ) then
      selltocoverstop(buyprice,buyprice - 1000);
    end;
  if (isSold = true) then
    begin
      c := 0;
      v := 1;
      op := 1;
      numa := numa + 1;
      alvoxx := SellPrice - 1800;
      stopxx := SellPrice + 100;
      //alvo
      buytocoverLimit(alvoxx);
      if (close<sellprice-649) then b:=1;
      //stop
      if (b = 0) then
        buytocoverstop(stopxx,stopxx + 1000);
      if (b = 1) then
        buytocoverstop(sellprice,sellprice + 1000);
    end;
  if (time > 1700) then
    begin
      c := 0;
      v := 0;
      op := 0;
      ClosePosition;
    end;
  plot(max);
  plot2(min);
end;

反馈

1
开发者 1
等级
(2)
项目
6
33%
仲裁
0
逾期
2
33%
空闲
2
开发者 2
等级
项目
0
0%
仲裁
0
逾期
0
空闲
3
开发者 3
等级
(542)
项目
624
33%
仲裁
39
36% / 49%
逾期
11
2%
繁忙
4
开发者 4
等级
(11)
项目
17
59%
仲裁
2
0% / 100%
逾期
2
12%
空闲
5
开发者 5
等级
(1)
项目
1
0%
仲裁
0
逾期
0
空闲
6
开发者 6
等级
(295)
项目
471
39%
仲裁
102
40% / 24%
逾期
78
17%
繁忙
发布者: 2 代码
7
开发者 7
等级
(1)
项目
1
100%
仲裁
1
0% / 100%
逾期
0
工作中
8
开发者 8
等级
项目
0
0%
仲裁
0
逾期
0
空闲
9
开发者 9
等级
(3)
项目
3
67%
仲裁
0
逾期
0
空闲
相似订单
I need to modify the CURRENCY indicator to allow viewing the same currency on different timeframes simultaneously, overlaid on the same chart. Insert the same currency multiple times into the indicator. Example: USD D1 USD H4 USD H1 USD M30 USD M15 USD M5 Display all these curves on the same chart, each representing the currency's slope on a different timeframe. Customizable settings for each line, including: Color

项目信息

预算
30+ USD
截止日期
 1  7 天