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
Оценка
(10)
Проекты
12
0%
Арбитраж
0
Просрочено
1
8%
Загружен
2
Разработчик 2
Оценка
(14)
Проекты
22
23%
Арбитраж
7
43% / 29%
Просрочено
3
14%
Загружен
3
Разработчик 3
Оценка
(10)
Проекты
25
28%
Арбитраж
1
0% / 0%
Просрочено
1
4%
Загружен
Похожие заказы
I am looking to develop an automated trading bot based on a strategy involving the crossing of four Simple Moving Averages (SMA). The bot should be capable of entering trades based on this strategy. Additionally, I would like to incorporate some custom diversions tailored for NinjaTrader
Seeking an experienced MQL5 developer to create a sophisticated Expert Advisor focused on harmonic pattern trading . The EA will be designed to identify and trade based on popular harmonic patterns in the forex market. Entry and Exit Logic: Develop smart entry and exit rules based on pattern completions and price action confirmations. Risk Management: Incorporate adjustable risk-per-trade settings and position sizing
preciso de um robô com duas médias móveis, uma exponencial high e uma exponencial low. preciso também ter a opção de utilizar e todos os tempos gráficos e alterar os parâmetros das médias. entrada de compra será feita quando um candle de alta romper e fechar a cima da média high e fechará a posição quando um candle de baixa romper e fechar a baixo da média low. a venda será feita quando o candle de baixa romper e
Description - An expert advisor(s), placing sell trades in EUR/USD, based on the close price of the previous two candles, as shown in the figure below. The trades would be made in the 5 minute, 1 hour, and 1 day timeframes. In the 5 minute and 1 hour timeframes the market orders would be placed at the start of a new candle, at specific times EST. The order would be cancelled at the close of that candle, i.e after 5
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

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

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