Python Execution Bot for Corn Calendar Spread on B3

Python 专家 Python

工作已完成

执行时间4 天
客户反馈
Aligned expectations, good communication, excellent work.

指定

📄 Job Description:

I have a validated calendar spread strategy (e.g., CCMU25 - CCMX25) for Brazilian corn futures, with logic already implemented in Python.

I now need a robust Python script (not MQL5) that connects to MetaTrader 5, handles order book depth (DOM) for both legs, and executes the spread precisely. The bot must also send status updates and position events to a Discord channel, and perform periodic checks for trading conditions.


✅ Objectives:

Build a Python bot that:

  • Connects to MetaTrader 5 (MT5).

  • Retrieves and processes the order book (DOM) for both spread legs.

  • Validates liquidity and spread thresholds before placing any order.

  • Executes coordinated trades (e.g., buy CCMU25 / sell CCMX25 – 1 lot each) only if both sides are tradable.

  • Prevents execution mismatches (avoids overexposure or “encilhamento”).

  • Monitors execution status and dynamically adjusts the second leg according to a defined trading logic:

    • If the first leg fills, modify the second leg’s order price (e.g., improve or chase) within a defined slippage limit.

    • If execution fails beyond the threshold, cancel or rollback position.

  • Sends key information to Discord, such as:

    • New signal detected (entry)

    • Orders sent

    • Position opened

    • Position closed

    • Errors or warnings (e.g., low liquidity)

  • Performs periodic checks (e.g., every X seconds/minutes) to scan for new signals and manage existing positions.


💵 Deliverables:

  • Fully functional .py script including:

    • DOM reading

    • Spread logic validation

    • Coordinated order execution

    • Execution monitoring & dynamic adjustment

    • Discord integration

    • Periodic signal scan loop

  • Well-documented, with examples for testing


💬 Notes:

  • I will provide the signal logic. Your focus will be execution, position management, and communication.

  • Priority is on realistic execution logic that considers order book conditions and avoids risks common in low-liquidity markets.

  • Script must run on Windows with MetaTrader 5 installed.


反馈

1
开发者 1
等级
(7)
项目
12
17%
仲裁
12
17% / 50%
逾期
3
25%
空闲
发布者: 8 文章
2
开发者 2
等级
(9)
项目
18
39%
仲裁
6
0% / 33%
逾期
3
17%
已载入
3
开发者 3
等级
(294)
项目
469
39%
仲裁
100
41% / 23%
逾期
77
16%
已载入
发布者: 2 代码
4
开发者 4
等级
(98)
项目
106
28%
仲裁
3
33% / 33%
逾期
2
2%
工作中
5
开发者 5
等级
(246)
项目
253
30%
仲裁
0
逾期
3
1%
空闲
发布者: 2 代码
6
开发者 6
等级
(45)
项目
46
24%
仲裁
34
9% / 85%
逾期
10
22%
空闲
相似订单
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 /

项目信息

预算
50 - 100 USD