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

MQL5 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 17 gün

İş Gereklilikleri

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


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(13)
Projeler
16
13%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
1
6%
Yüklendi
Yayınlandı: 1 kod
2
Geliştirici 2
Derecelendirme
(18)
Projeler
29
31%
Arabuluculuk
8
50% / 25%
Süresi dolmuş
4
14%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(15)
Projeler
34
24%
Arabuluculuk
3
0% / 33%
Süresi dolmuş
2
6%
Çalışıyor
Benzer siparişler
I need a professional MT5 Expert Advisor coded based on a Smart Money Concept strategy that uses the sweep of the Asia high/low, followed by a break of structure (BOS), and an entry on the fair value gap (FVG). Strategy Parameters: - Timeframe: M5 - Pairs: EURUSD, GBPJPY, XAUUSD - Trading hours: - London: 07:30–09:30 (London time) - New York: 12:30–15:00 (London time) - Entry Logic: 1. Sweep of Asia high/low 2
i have an ea that works as a pair with an indicator i created. i want to add an adaptive moving average as a higher timeframe filter. i want the AMA/DEMA to function as the free indicator on mt5 does and works where when price is above the AMA on the higher timeframe only buy trades would be taken on the timeframe selected for trading and vice versa. if both filters can be implemented then i would need it to function
Confirmation: Look for confirmation of spike signals through the appearance of buy arrows on the chart, indicating opportune moments to enter long positions. Risk Management: Implement proper risk management strategies, including setting stop-loss orders and profit targets, to manage trades effectively. Compatibility: The Boom1000 Spike Indicator is compatible with MetaTrader 5 platforms, providing seamless
We are looking to develop a fully automated arbitrage trading software for MetaTrader 5 (MT5) that can detect and execute arbitrage opportunities between Gold on MCX (India) and COMEX (International) . The system will operate using two separate MT5 terminals/accounts — one connected to an Indian broker for MCX and the other to an international broker for COMEX. If you have already built a similar system for arbitrage
I need to create an Ea which depends on alerts on indicator which i bought from mql market. i want to create EA based on the Alerts which it creates. i dont have the source code of the indicator. i cant buy you the indicator. its 45$ so i cant buy you that either. contact me if you can analyse that indicator in mql website by downloading that demo version and come to a conclusion. Fractal Model | Buy Trading
Hello expert developers, I have a strategy I would like to implement ML bot to trader forex pairs on Ctrader trading platform. Anyone is an expert in this field should kindly bid for detailed information of the project
I wanna use Sierra study price ovelay to overlay in the 6 tick renko chart tha way I can use Sierra chat syntax in the study to execute, I prefer Sierra chat syntax instead of overlays study directly in input settings What I mean is sierra chart syntax only no 4 study overlay🚫 I wanna use Sierra chart syntax only to trigger trade. I have tried everything to make it work but it doesn't that the chartbook with
I need an EA that will trade correlation between EURUSD and USDCHF and if possible , should have an input for other pairs. How will it open trades: When it opens a buy on EURUSD, it will also automatically open a sell on USDCHF vice versa. If it opens a Buy on USDCHF, it will automatically open a Sell on EURUSD. I will send you a custom MA indicator for you to assist you. INPUTS Magic number Timeframe Currency pair
I am looking for an experienced MQL5 developer to create a professional-grade EA for a Copytrade system. ✅ Strategy Overview: Trade only major forex pairs (e.g., EURUSD, GBPUSD) Medium-risk trend-following logic Target: 0.5–1.0 lots/day per account (for copytrade commission accumulation) Clients deposit $500–$1,000 and add funds monthly (DCA concept) 📈 EA Logic Includes: Entry: when EMA50 > EMA200 (buy), confirmed
I need a simple expert advisor to buy or sell lots in a given distance. 1. What’s the strategy? - No strategy. Just the ability to: Buy or Sell; 2. What pair/timeframe? - No matter, need to buy or sell in a given distance. 3. Lot size, SL, TP, trailing stop? - to choose manually a lot size starting from 0.01 and higher till 10. I want to insert the trailing stop and Take profit level manually 4. Any special

Proje bilgisi

Bütçe
70+ USD
Geliştirici için
63 USD
Son teslim tarihi
to 1 gün