First CoIntegration Tests in Python second if criterias are met then execution in MT5

Python Experts Integração Python

Trabalho concluído

Tempo de execução 2 dias
Comentário do cliente
Great. Does the job as expected. Fast done.

Termos de Referência

Hello,


I want a cointegration test running in Python with either MT5 or IQfeed data where I have control over the settings and second where I can filter the results, so I can choose which pairs should be run on MT5 for execution.

Cryptowizard has already done a lot of work here if you are familiar with that website or youtube channel. There is a cointegration function on Python, so nothing to reinvent again here.


But I must choose the following settings to be tested. Length in number of bars to lookback period where the cointegration test is applied. (like 7 to 60 bars for example). Second, the deviation from the mean of 2 currency pairs (so 1.70 to 2.10).

Third a time exit in bars (2 to 10 bars for example). Then Profit Target exit in standard deviation (like Zero = 0 to 0.50 e.g.). And I need to choose the symbol set of currency pairs and the timeframe (1 hour, 5 minute, 4 hours bars for example), and lenght of time to go through (like test it on 1 years data or 1 month data and so on).


For the currency pairs data, it should be either MT5 from (IC Markets best) or from IQfeed data where I have a subscription. For example AUDUSD can be obtained from MT5 too, but to get USDAUD as pair you need to 1/AUDUSD on MT5 or just take USDAUD.COMP as symbol in IQfeed. IQfeed should be integrated because it has clean data.


Then if all pairs are in combination tested (this can take some time). Then I need to filter the results. I need total net profit, number of trades, max. Drawdown, Profit Factor, max. loss on worst trade, win rate of all trades. And maybe if it is possible to do a In sample versus Out-of-sample backtest so I can see how long it worked in the future within the past. As optional feature here.


Last the chosen pair combination from Python should be executed on MT5 Terminal. Here you need to be aware that all the deviations are calculated in percentage from its mean, so the US Dollar value for any pairs combination must be the same. So for all USDXXX pairs it is 1 lot = $100k in value but for GBPUSD as example you need to divide 1 lot here through the quote of GBPUSD so you get something ca. 0.8 lot for the same $100k value. Because 1 pair means 1 long $100k value and 1 short $100k value too. And there should be kind of manual and user interface where I can put in the settings and then after cointegration test within Python (it has a built-in cointegration test) I should make the filtering from the user interface and able to mark the pairs combination which I want to be executed in realtime to MT5 Terminal.


If you are interested to do this project could you little bit describe yourself and how you would do this project so I can get a better impression. Thanks.

------

1. Ingest and collect historical data

2. Calculate cointegration

3. Ability to backtest and sort results

4. Monitor data live and update results

5. Generate signals or code for MT5


Respondido

1
Desenvolvedor 1
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
2
Desenvolvedor 2
Classificação
(31)
Projetos
56
21%
Arbitragem
12
67% / 8%
Expirado
2
4%
Livre
3
Desenvolvedor 3
Classificação
(119)
Projetos
169
38%
Arbitragem
9
78% / 22%
Expirado
15
9%
Livre
4
Desenvolvedor 4
Classificação
(246)
Projetos
253
30%
Arbitragem
0
Expirado
3
1%
Livre
Publicou: 2 códigos
Pedidos semelhantes
I have an issue with my ninja script and i would like you to help me straighten things I wanted to create an indicator and i have the source code already but i am getting compiling errors on my NinjaTrader And i tried fixing the error it still same I sent 3 images here for you to understand the errors and i would like to ask if you can help me fix it so i can go ahead and compile my source code. Thanks
Good day, I would like to build an automated trading system for Ninjatrader using 2 MACD, a Supertrend, and a moving average indicator. I want the option to adjust the indicator settings, the ability to trade at three different times, and the option to receive alerts. I want to get an idea of what that will cost me. It will enter trades on all blue take one contract out at a fixed point, move the stop to break even
"Hello! I am an experienced programmer specializing in automated trading software for MetaTrader 4 (MQL4) and MetaTrader 5 (MQL5). My goal is to help traders turn their manual strategies into fully automated robots (Expert Advisors) and custom indicators. My services include: Developing Expert Advisors (EA) from scratch based on your strategy. Creating Custom Indicators and Scripts. Modifying existing EAs (adding
I have a simple strategy that need coding on tradingview Strategy using high low at seleted time and when breakout to entry buy sell. Everything will be explained on private
I am looking for an experienced MQL5 developer to modify and enhance my existing Expert Advisor, "Gold Levels Trader". The current version has a low win rate (~30%) and issues with ATR-based Stop Loss execution. I want to replace the current "pips drop/rise" logic with Fibonacci Retracement levels for entry signals, implement a Daily Drawdown Limit , and add Pending Orders functionality
I want developer who know how to create bot which immediately transfer specific crypto coin deposit to one crypto address to another specific address in just a second,, if you know about this then only comment on this post
So the things we need in algorithm of mql5 language EA in mt5 1. Depending on timeframe it can recognise the previous swing high and low 2. Timeframe is 5m,15m,1h,4h 3. It can recognise the basic Market bias that is market is bullish or bearish we can identify using (ema,rsi,basic smc bias,ict bias structure mapping) or use anything to find bias structure 4. EA should have option to change timeframe and change risk
require the development of a high-speed, fully automated trading Expert Advisor (EA) for MetaTrader 5 , optimized for live trading on both Deriv and Exness . The EA must be designed for fast execution, low latency, and reliability on real-money accounts , with full compatibility across broker-specific contract specifications, tick sizes, tick values, pricing formats, and volume rules. It should automatically detect
# Copyright 2025, MetaQuotes Ltd. # https://www.mql5.com import importlib . util mt5_spec = importlib . util . find_spec ( "MetaTrader5" ) if mt5_spec is None : mt5 = None else : import MetaTrader5 as mt5 # pyright: ignore[reportMissingImports] def main (): if mt5 is None : print ( "MetaTrader5 module not available" ) return print ( 'Python executable:' , __import__ ( 'sys' ).executable) ok = mt5
Scope of Work Develop 15 individual Expert Advisors (MT4 and/or MT5) Each EA will have: Unique trade logic and execution rules Configurable inputs (risk %, lot size, TP/SL, filters, sessions, etc.) Clean, modular, well-commented code Error-free compilation Backtest-ready functionality Core Features (Across EAs) Market & pending order execution Risk-based position sizing Time/session filters Trade limits (per day /

Informações sobre o projeto

Orçamento
150+ USD
Prazo
de 1 para 20 dias