Convert a mean reverting ea from python to MQL5

Şartname

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


"STEPS FOR TRADING:

  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"


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(258)
Projeler
265
29%
Arabuluculuk
0
Süresi dolmuş
3
1%
Serbest
Yayınlandı: 2 kod
2
Geliştirici 2
Derecelendirme
(174)
Projeler
199
12%
Arabuluculuk
38
37% / 34%
Süresi dolmuş
5
3%
Çalışıyor
Yayınlandı: 2 kod
3
Geliştirici 3
Derecelendirme
(3)
Projeler
4
0%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
1
25%
Serbest
4
Geliştirici 4
Derecelendirme
(51)
Projeler
66
30%
Arabuluculuk
2
0% / 0%
Süresi dolmuş
0
Serbest
5
Geliştirici 5
Derecelendirme
(1)
Projeler
1
0%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
0
Serbest
Benzer siparişler
Prepare expert for xauusd live chart [ expert is not executing trades on xauusd ] . Deletion and cleaning code . Trailing Stop Rule to follow the given method . Live Chart Only
MT5 EA Developer for Structured ICT/SMC Market Logic Requirements Specification: I need an MT5 Expert Advisor only in MQL5. No indicator, no script, no DLL, and no external API. The EA must be built on a rule-based ICT/SMC-style framework with objective, backtestable logic. I am not looking for social-media-style ICT/SMC interpretation. I need a developer who can convert trading concepts into clear coding rules. The
Szukam doświadczonego programisty do stworzenia dedykowanego doradcy eksperckiego (EA) do tradingu. Programista powinien posiadać solidną wiedzę z zakresu MT5, logiki strategii, wskaźników, zarządzania ryzykiem i backtestingu. Doświadczenie w tworzeniu niezawodnych i profesjonalnych robotów handlowych będzie dodatkowym atutem. Proszę o kontakt, jeśli zrealizowałeś już podobne projekty. wszystkie szczeguły podam w
I’m looking for an experienced MetaTrader 4 (MT4) developer to analyze, repair, and live-test an existing .EX4 Expert Advisor. Project Details Existing file: GannMadeEasy_pro.ex4 Platform: MetaTrader 4 Issue: EA is not loading properly on charts in newer MT4 builds Goal: Make the EA fully functional and compatible with current MT4 versions Requirements The developer must: Analyze the existing EX4 file Identify
I need an experience programmer on news based EA, the EA will be able to fetch or return both historical and current calendar data and implore them into trading, The rest EA details will be communicated in the chat section
Need a Profitable with a good trading system or strategy. would test the product first Looking for a professional MT5 Expert Advisor based on smart strategies. The EA should include session filters, risk management, trailing stop, multi-pair support, and low drawdown protection. I need a consistent, high-probability automated trading system optimized for long-term profitability and funded account compliance
Junior EA 30+ USD
1. EA for MT5, hedging allowed. 2. Entry: 50 EMA crosses 200 EMA on H1. Buy on bullish cross, sell on bearish. 3. SL: 100 pips, TP: 200 pips. No trailing stop. 4. Lot size: 0.01 fixed. Max 3 trades at once. 5. Trade only 08:00-18:00 GMT. No trades if spread > 20 points. 6. Inputs: EMA periods, SL, TP, lot size, start/end time
looking for a highly experienced mql5 developer to build a professional trading ea based on multi timeframe top down analysis and market structure concepts the system should combine higher timeframe context with lower timeframe execution and provide both precise logic and clean visual representation on chart ⸻ core requirements • implementation of multi timeframe logic higher timeframe bias combined with lower
I am looking for an experienced MQL4/MQL5 developer to build a custom MT4 indicator from scratch or cracking my ex4 file that i provide to you. I already have an existing indicator (EX4) which produces highly accurate buy/sell signals. I want a similar indicator developed based on its observable behavior and signal structure. my existing indicator is pc id protected so you have to do PC ID security bypass and source
OBJETIVO Criar um Expert Advisor MT5 profissional para XAUUSD focado em: Consistência Baixo drawdown Scalping profissional Proteção da conta Crescimento sustentável Compatibilidade com conta micro e prop firms NÃO utilizar: Martingale Grid Hedge agressivo Recovery system Multiplicação de lotes após perda --- ATIVO XAUUSD apenas --- TIMEFRAMES Timeframe principal M5 Confirmação tendência M15 Confirmação macro opcional

Proje bilgisi

Bütçe
200 - 500 USD