Python Execution Bot for Corn Calendar Spread on B3

Python Asesores Expertos Python

Trabajo finalizado

Plazo de ejecución 4 días
Comentario del Cliente
Aligned expectations, good communication, excellent work.

Tarea técnica

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


Han respondido

1
Desarrollador 1
Evaluación
(7)
Proyectos
12
17%
Arbitraje
12
17% / 50%
Caducado
3
25%
Trabaja
Ha publicado: 21 artículos
2
Desarrollador 2
Evaluación
(10)
Proyectos
19
42%
Arbitraje
6
0% / 50%
Caducado
3
16%
Trabaja
3
Desarrollador 3
Evaluación
(295)
Proyectos
473
40%
Arbitraje
103
41% / 23%
Caducado
78
16%
Ocupado
Ha publicado: 2 ejemplos
4
Desarrollador 4
Evaluación
(135)
Proyectos
144
39%
Arbitraje
3
33% / 33%
Caducado
1
1%
Trabaja
5
Desarrollador 5
Evaluación
(252)
Proyectos
258
30%
Arbitraje
0
Caducado
3
1%
Libre
Ha publicado: 2 ejemplos
6
Desarrollador 6
Evaluación
(45)
Proyectos
46
24%
Arbitraje
34
9% / 85%
Caducado
10
22%
Libre
Solicitudes similares
The indicator a bit inverted. But it doesn’t matter to me as long as the winrate make sense for investment. For brief details regarding the indicator. What should have been a sell, i inverted it into buy with sl and tp swapped(only change the name of sl and tp for visualisation , but the code still on right tp and sl) . And in script ive inverted the signal command code. But the trouble is the tp and sl cant be
Hello, I want a grid trading bot for the Gate.io crypto exchange. I currently have a working grid bot written in MQL5, and I want a similar bot implemented in Python. The MQL5 bot can be translated, but the codebase is large and it was not designed to be easily ported to Python. Therefore, I prefer that the final Python bot preserves the same core grid logic, but is implemented cleanly in Python rather than doing a
Please explain all the details, including the entry and exit conditions . Refine signal trigger execution . Optimize live chart performance . Ensure stable and clean code structure : Stable and clean code is important . Otherwise its a mess . Apply with as much accurate structure you foresee . requests for details of the project will be ignored
Phahla fx boto 30+ USD
99.99% signal accuracy 10-15 trades distribution all currency trade and meta AI assistance on loss[advice] stop and start robot cyber security firewall protection activation code: 20060605TLP20 Please create a trading bot with any logo with the name elevation
Refine signal trigger execution . Optimize live chart performance . Ensure stable and clean code structure : Stable and clean code is important . Otherwise its a mess . Apply with as much accurate structure you foresee
Here is what I’m looking for: • Signal source: On-chain wallet address monitoring. I want to copy trade high win-rate meme coin wallets (smart money / profitable traders), not Telegram signals. • Market: Crypto (primarily meme coins). • Execution speed: Very important — I want as close to sub-second execution as possible. Low latency is a top priority. • Infrastructure: I’m open to self-hosted VPS or cloud setup if
This post is subject to developers response . Edit the post as you like . May be with me you can make a come back . So , , , Shift calculations . More to the calculation then you can comprehend is known . What else comes to your mind
I’m hiring an experienced MQL5 developer to finish and fix an existing project (NOT building from scratch). I have: An existing MT5 EA (.mq5 + .ex5) that is based on my TradingView logic A TradingView indicator version used for signals/alerts The EA works but has logic/consistency issues and needs improvements + cleanup Goal Make the EA reliable and consistent: Ensure entries/exits match the intended logic Fix
The indicator a bit inverted. But it doesn’t matter to me as long as the winrate make sense for investment. For brief details regarding the indicator. What should have been a sell, i inverted it into buy with sl and tp swapped(only change the name of sl and tp for visualisation , but the code still on right tp and sl) . And in script ive inverted the signal command code. But the trouble is the tp and sl cant be
Ai robot 30 - 50 USD
1️⃣ System Architecture An AI robot typically consists of the following subsystems: 🔹 1. Perception Layer Collects environmental data using: RGB / Depth cameras LiDAR Ultrasonic sensors IMUs (Inertial Measurement Units) Microphones Data is processed using: Computer Vision (e.g., object detection, SLAM) Signal processing Sensor fusion algorithms 🔹 2. Cognition / Intelligence Layer Implements AI models such as

Información sobre el proyecto

Presupuesto
50 - 100 USD