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

MQL5 Эксперты

Работа завершена

Время выполнения 17 дней

Техническое задание

### 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.


Файлы:

Откликнулись

1
Разработчик 1
Оценка
(13)
Проекты
18
11%
Арбитраж
4
50% / 50%
Просрочено
1
6%
Работает
Опубликовал: 1 пример
2
Разработчик 2
Оценка
(19)
Проекты
31
32%
Арбитраж
8
50% / 25%
Просрочено
3
10%
Работает
3
Разработчик 3
Оценка
(16)
Проекты
35
23%
Арбитраж
4
0% / 50%
Просрочено
2
6%
Работает
Похожие заказы
I need a custom MT5 Expert Advisor + small backend bridge. The EA must: trade ONLY pending orders (BUY STOP / SELL STOP) support dual-trigger logic (one cancels the other) support fixed SL/TP, time-decay cancel, TP1 → BE communicate with a backend via HTTP (WebRequest) The backend: receives market snapshots from MT5 calls OpenAI API returns a structured JSON signal (numbers only) No strategy design needed – logic and
hello I want Semi EA developer who knows deep about martingale ,program and understand the market . MQL5 → Freelance → Search Keywords: Semi EA , Trade Manager , Manual Trade EA DM 3–5 devs directly Upwork Search: MT5 trade manager Invite only (private job) Telegram Groups: MQL5 Developers MT4 MT5 Coders
Hi I would like to create an ea that close order when: 1.The price touch the middle trend line(true/false option) 2.close buy order when trend line color change to red. Close sell order when trend line color change to blue. (True /false option)
Trade idea to EA 30 - 200 USD
MT5 Expert Advisor needed for this strategy. The strategy will be focused around the POC on a Market Profile type of chart (Option to change look-back time OR MP chart for Weekly/Monthly/Yearly) to determine price levels with a lot of liquidity (consolidation). I want an option to sell at XX distance above the POC, to then be able to TP at POC. I want the option to buy at XX distance below the POC to trade it back up
Hello, I would like to work with a developer that has successfully done this before. The First deliverable will be a strategic roadmap with estimated costs with the Second deliverable Phase Two coding, test and deployment. The goal is to deploy into Prop Firm Challenges (FTMO) and manage funded accounts. Price listed is for Phase One only. Requirements of the roadmap / finished project are as follows: 1. An EA (or
Ninjatrader bot 100+ USD
Description: I’m looking for an experienced NinjaTrader developer to create a custom trading bot based on my 5-minute Opening Range Breakout/Breakdown (ORB) strategy and integrate it with an existing Pine Script bot. Project Scope: Step 1: Develop the ORB strategy on NinjaTrader: Entry: LONG if first 15-min candle closes ≥ OR_high + 0.5; SHORT if ≤ OR_low - 0.5 Stop Loss: LONG → OR_low - 1.5; SHORT → OR_high + 1.5
hello i need a ready made bot for future What’s the rate for your bot And what’s the rate for my add ons to the bot ? Can I try your demo on sim for a week? Because if you have one I’ll just use that an manually trade when I want to my way because my strategy involves My bot Ict and smart money concept Orb Indicators Like this
I need a developer for a trading robot that works on my phone. The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one
News Futures 50 - 55 USD
Modification of EA with breaking news on vertical line futures data and entry with PA and strength meter alerts. Sell signal: when price forms shooting star or up fractal on lower time frame 15M, when the low of closed candle in higher timeframe 1hr is not lower than the open of previous candle in the higher timeframe and strength meter or CSI or 3 bidratio steps for pi soft aligns . Alerts for currency strength
I am looking to hire a senior MQL5 developer for a serious AI-driven trading system . This project is NOT indicator-based, grid-based, or martingale-based. 👉 All trade decisions (ENTRY & EXIT) will be generated 100% by Claude AI 👉 The MT5 EA will act strictly as an execution, risk-control, and trade-management layer 🧠 System Overview Claude AI generates: BUY / SELL / CLOSE / HOLD signals Timing and direction

Информация о проекте

Бюджет
70+ USD
Сроки выполнения
до 1 дн.