# Convert a mean reverting ea from python to MQL5

## Specification

Hi,

I am looking for someone to convert this strategy in Python to MQL5: QuantConnect.com - Embedded Backtest Results

The idea behind it is that, if you get two pairs of instruments that move in a similar direction (such as Gold and Silver), they will tend to revert to a mean that can be estimated using the Ornstein-Uhlenbeck Process. It is then used to maximize a log function.

There is a tutorial for it here:  Tutorials - Strategy Library - Optimal Pairs Trading - QuantConnect.com

And the paper for the strategy is here: 1411.5062.pdf (arxiv.org)

A video with an explanation is here: ATC Workshop 7: Optimal Pairs Trading with Ornstein-Uhlenbeck modeling (1.5x speed rec.) - YouTube

1. Estimate Ornstein-Uhlenbeck (OU) Coefficients (theta, mu, sigma)

1. Note for paper: Theta- long-term mean, mu is the force pulling our values back to theta, sigma is noise

2. Solve the Optimal Stopping problem, which gives us the best prices to buy and sell. This way we can buy low sell high

1. b = optimal value at which we sell, d = optimal value at which we buy

2. b > d, so we can buy low sell high

3. Buy at the optimal entry, and sell at the optimal exit"

## Responded

1
Developer 1
Rating
5
(62)
Projects
63
22%
Arbitration
0
Overdue
4
6%
Free
2
Developer 2
Rating
4.72
(96)
Projects
108
6%
Arbitration
22
32% / 32%
Overdue
5
5%
Busy
3
Developer 3
Rating
5
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
4
Developer 4
Rating
4.98
(45)
Projects
58
28%
Arbitration
2
0% / 0%
Overdue
0
Free
5
Developer 5
Rating
5
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Working
Similar orders
I want to create an MT5 EA capable of calculating pivot points for the next day, setting Sell and Buy Limit orders for 2 pairs: AUDJPY and EURUSD in the Pivot Line (PP). As a default value, the SL = 5 pips after the R1 or S1 line, and the TP = 2 pips before the R1 or S1 line. Image attached showing an example. 5 simple conditions: Sell/Buy limit orders must be set every day, between 22:00 and 23:45. Since it is the
Hello. The "overall subject" has something to do with fast fourier transform. If you understand that subject? - Then i would like to have a quote from you - if you were to develop an indicator for the Currency/forex market on the MT4 platform? (I have the necessary information, a picture of how it should look and can it explain how it should work (but only to some extend) - (I must say, that there might be "a lot" of
Hello, i have a trading E.A but would love to modify it to better specifications for better entries. I want to increase it's pip-step. Kindly let me know if you can do this job. Thank you
Pido de su apoyo 30 - 50 USD
Decidi subir los parametros mas esenciales de mi encargo en las imagenes, para usar este espacio de otra forma., Es una estrategia muy simple, una ves desglosados los conceptos, aqueyos con experiencia en analisis tecnico y Fibonacci me daran la razon en esto., hay mas parametros y filtros de entrada, tiempo y gestion riesgo/beneficio, tambien faltan los parametros de las herramientas, cosas que compartire con el
I like to implement Deep learning classification script in Python to MetaTrader 5. But it is not really clear for me what is possible and what is not. Is it possible to develop a python script and run on MetaTrader 5? I have found two article which is about MT5 with python integration. Please have a look: https://www.mql5.com/en/docs/integration/python_metatrader5
THIS IS EA for forex market for three pairs: EUR/USD, GBP/USD, USD /JPY. It uses stochastic indicator and moving average. Thy system must be automatically designed to escape emotions people usually use. When I tested it by automatically entering and exiting positions, it showed great results. Especially in trending markets. In ranges it shows good results as long as they are 10 peeps width. It is scalping system on
A simple EA based on Bollinger Bands and Price Action. that side needs to automatically move the trading position back to the starting point when 1/2 of the trading volume has met the requirements (TP), open new positions when the first requirement is not met ... PA used is the typical basic form
The screenshots below have all the details for how I want the robot developed.its linear regression channel robot with hedging techniques.. it's basically using H meaning hours and M minutes
Hi, I need an help to solve 2 or 3 bugs in my EA. - The functions close sells (TPs & SLs) have a bug, but the function to close buys seems well (it decrease the TPs and SLs when closing the sells); - Conditions of Zigzag, verifying the two existent and a new condition; - The EA has general configurations for all 21 pairs and I need to individualize some of them per pair (arrays); Each pair have this configurations
I like to run Robust linear regression on EURUSD and USDCHF tick data on MT5 terminal as a python scripts. https://www.statsmodels.org/stable/examples/notebooks/generated/robust_models_0.html I like to plot the regression residuals and the slopve value of the regression. I like to execute market buy and sell orders based on the regression residuals

### Project information

Budget
200 - 500 USD
For the developer
180 - 450 USD

Placed orders1
Arbitrage count0