Requesting the development of a Correlation Pairs Trading Hedge EA for MT5

MQL5 Experts

Job finished

Execution time 17 days

Specification

### EA Description:

**Overview:**
The EA opens orders when there is a divergence between symbols with very high or low correlation.
For example, if a divergence occurs and EURUSD declines more than GBPUSD, the EA will open a Buy order for EURUSD and a Sell order for GBPUSD.
The correlation values are calculated based on the timeframe of the open chart, and the EA should calculate for all symbols (both major and minor forex pairs) from a single chart.
The chart should display a correlation matrix, and the correlation value at the time of order entry should be displayed in the chart comments.

**Settings:**

1. **Number of Candles for Correlation Calculation:**
   - If set to 200, the EA will use the last 200 candles of the open chart’s timeframe to calculate the correlation values.

2-1. **Positive Correlation Threshold:**
   - Example: If set to 80, the EA will consider pairs like EURUSD and GBPUSD, with a correlation coefficient of 93, as fulfilling the condition.

2-2. **Negative Correlation Threshold:**
   - Example: If set to -80, the EA will consider pairs like AUDUSD and EURAUD, with a correlation coefficient of -85, as fulfilling the condition.

2-3. **Correlation Difference Threshold:**
   - Example: If set to 10, the EA will open orders if the correlation between EURUSD and GBPUSD drops from +93 to +83, or if the correlation between AUDUSD and EURAUD increases from -85 to -75.

3. **Maximum Number of Groups:**
   - Example: If set to 3, the EA can handle up to 3 groups of trades. A group consists of two symbols, such as EURUSD and GBPUSD, with the same magic number. Additional pairs like AUDUSD and EURAUD would form a second group. Therefore, if set to 3, the maximum number of groups is 3.

4. **Magic Number:**
   - If not automatically assigned in the MQL source code, please include this setting.

5. **Starting Lot Size:**
   - Example: If set to 0.01, the EA will start with a lot size of 0.01.

6. **Averaging Interval:**
   - Example: If set to 300, the EA will open averaging orders when the combined loss of a group reaches -300 USD.
    For instance, if EURUSD (Buy) and GBPUSD (Sell) together reach -300 USD, the EA will open additional Buy and Sell orders for EURUSD and GBPUSD respectively at a fixed lot size defined in the settings.

7. **Close TP (Take Profit):**
   - Example: If set to 10, the EA will close all orders in a group when the combined profit reaches 10 USD.

8. **Auto Lot Settings:**
    8-1 **Auto Lot (true/false):** If true, auto lot sizing is applied.
    8-2 **Auto Lot Step:** Example: If set to 2000, the lot size increases automatically every 2000 USD.
    8-3 **Auto Lot Size:** Example: If set to 0.01, the lot size increases by 0.01 for every step defined.

**Order Execution:**

- Based on the settings from 2-1 to 2-3, if the correlation exceeds or falls below the set values, and the correlation difference threshold is met, the EA will open orders.
  For example, if EURUSD declines more than GBPUSD, the EA will place a Buy order on EURUSD and a Sell order on GBPUSD.

**Process:**

- Example: If EURUSD (Buy) and GBPUSD (Sell) are open and the combined loss exceeds the threshold set in setting 6, the EA will open additional averaging or pyramiding orders as defined.

**Order Closure:**

- Based on setting 7, the EA will close all orders in a group when the combined profit in USD reaches the specified value.

**Additional Features:**

- Include prefix and suffix settings if necessary.
- The chart should display the correlation value at the time of order entry.
- The chart should also show a correlation matrix for all forex symbols.
- The EA must do the symbol correlation coefficient matching itself. So it must be 100% automatic trading.
- The image is an example. This is just an example image showing which symbol is buying and which symbol is selling when a difference in interval occurs.

**Notes:**

- As I am new to MT5, your assistance with backtesting is appreciated. I am proficient with MT4, but I have chosen MT5 for its backtesting capabilities, which will expedite the development process.


Responded

1
Developer 1
Rating
(10)
Projects
12
0%
Arbitration
0
Overdue
1
8%
Loaded
2
Developer 2
Rating
(14)
Projects
22
23%
Arbitration
7
43% / 29%
Overdue
3
14%
Loaded
3
Developer 3
Rating
(10)
Projects
25
28%
Arbitration
1
0% / 0%
Overdue
1
4%
Loaded
Similar orders
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
Develop a simple trading robot from rainbow oscillator Additional features Include timeframe specification in rainbow oscillator trailing features moving average filter TP (true/false) SL (true/false) Fixed lot Risk percentage Percentage profit lock
Hi, I have an indicator from my friend, I want to copy it to my own Traidingview or MT5 can you do that for me. Here is the link
I need a dashboard that shows my various accounts that shows balance, equity, number of trades open, drawdown and some more information. I want to use it to monitor my accounts in one screen or chart. If there is anyone who can do it please show me the screenshot of your sample
Hi, I need a robot, which wil get instructions to trade in 3 symbols at the same time based on few parameters and calculations. Example: There is 1 symbol called Gold-Near and the rate for it is 1000-1002 If i specify that when the rate reaches 1050, it should sell 1 lot Upon execution it will have to sell 1 lot of cme gold, buy 3 lots of mcx gold and buy currently (lots will be based on calculation). All the
Trading bot 300+ USD
We need bot that trades when medium and low impact news hits It will release pending order both directions few min prior to news impact And will have certain risk management strategy attached Example If Monday and Tuesday news successful clears profits It will reduce risk for next news events until new week starts each week message on tg: Dstatewealthtrading NOTE: 4 YAERS OF EXPERIENCE UPWORD, YOU MUST BE A
Estou a procura de um programador que faça um robo que automatize as análises feitas por ele nas ondas de Elliot e que faça entradas precisas com proteções das mesmas e com proteções também ajustáveis para não entrar em noticias de 2 ou 3 estrelas, e que seja para o mercado B3 Mini Indice ou Mini Dolar
Sosso 30+ USD
I would like to order an automated robot to the job for me as I have no clue on whatsoever the trading is about. The bot should be able to do it's job, everything for me and it providing the best services for one to use
are you aware of the Monday Range Strategy? https://www.youtube.com/watch?v=7B_yBBFx6z8 5pm EST time sunday - monday 5pm est and it has to be on the H1 chart , minimum 1:2 Risk to reward and break even function after 1:1
Strategy: 1. Identify strong supply and demand levels. Draw them in the chart in green and red. In Tradingview: Market Structure Break & Order Block by EmreKb von EmreKb --> Strong demand and supply area refer to picture below (Buy and Sell Zones). There must be a strong demand / supply zone on a higher time frame in order for the set up to be valid. The time frame can be selected in the settings. E.g. "Higher Time

Project information

Budget
70+ USD
For the developer
63 USD
Deadline
to 1 day(s)