Specification

Some observations about the EA, it operates with two brokers, one fast and one slow.

SEE IMAGE 1 ( Levels buy/sell ) to identify the problem, when it counts data for example (1619.2 / 1626.6 pips) it gets out of control, and opens orders without stopping and arbitration does not actually occur, however:

When there is a small data reading in the form ( Levels buy/sell ) for example (-1.5 / -5.2 pips) SEE IMAGE 2 it operates normally, that is, it only opens an order when the difference is large, following the idea of arbitration.

The problem in general is the reading of data that changes the reading during the day, (1619.2 / 1626.6 pips) and (-1.5 / -5.2 pips)... that is the problem .

Files:

PNG
1.png
32.1 Kb
PNG
2.png
42.3 Kb

Responded

1
Developer 1
Rating
(295)
Projects
474
39%
Arbitration
103
41% / 23%
Overdue
79
17%
Busy
Published: 2 codes
2
Developer 2
Rating
(3)
Projects
4
0%
Arbitration
1
0% / 100%
Overdue
1
25%
Free
3
Developer 3
Rating
(45)
Projects
91
13%
Arbitration
34
26% / 59%
Overdue
37
41%
Free
4
Developer 4
Rating
(6)
Projects
8
0%
Arbitration
8
13% / 88%
Overdue
0
Free
Similar orders
Já tenho um código MQL5 com uma base do funcionamento. Basicamente o EA traça um canal na virada do dia (penso que utilizar horário seria melhor em razão da diferença entre corretoras), com base em um número x de candles, calcula e posiciona ordens stop com base em % do capital. Caso uma ordem aberta venha a stopar, o EA deve realizar uma virada de mão com base no mesmo canal, contudo recalculando o lote para que
//+------------------------------------------------------------------+ //| EA Cruzamento de Médias MT5 | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; //---- Inputs input int FastMAPeriod = 20; input int SlowMAPeriod = 50; input double LotSize = 0.01; input int StopLoss = 300; input int TakeProfit = 600; //----

Project information

Budget
30 - 100 USD