Secure MT4 EA and Python (Server) Communication Setup

MQL4 Asesores Expertos Sripts Python PHP

Tarea técnica

Develop a system where a MetaTrader 4 (MT4) Expert Advisor (EA) securely connects to our server, listens for trading commands, and executes them only if the account number in the command matches the MT4 account. The account number is retrieved from a MySQL database for security verification.

System Requirements:

MT4 EA Development:

  • The EA should connect to our server and continuously listen for incoming messages.
  • Upon receiving a message, the EA should verify if the account number in the message matches the MT4 account number.
  • If the account numbers match, the EA executes the trading command; otherwise, it ignores the command.
  • The EA must process all data dynamically, without hardcoded values.

Server-Side Setup:

  • A Python script on our server will retrieve the AccountNumber from a MySQL database and send trading commands to multiple MT4 clients, including the account number.
  • The server must maintain active connections with all MT4 clients.
  • Ensure secure communication using SSL/TLS, preferably via a domain with Cloudflare or a secure IP connection.

Database Structure (MySQL):

  • Table Name: forex

Table Structure:

Column Name Data Type Description
ID INT Primary Key, auto-increment
Username VARCHAR(50) The username of the MT4 client
AccountNumber VARCHAR(50) The MT4 account number for the client
Platform VARCHAR(10) The trading platform, e.g., 'MT4'


Security and Reliability:

  • Use SSL/TLS for secure communication between the server and MT4 EAs.
  • Implement error handling and automatic reconnection for reliability in case of disconnection.
  • The account number from the database must match the MT4 account for the command to be executed, ensuring an additional layer of security.

Scalability:

  • The system should support multiple MT4 clients on different networks or machines.
  • Design the solution to be scalable for future expansion.

Example Command from Python Server:

ACCOUNT: 12345678 COMMAND: OPEN SYMBOL: EURUSD ORDER_TYPE: BUY LOTS: 0.1 PRICE: 1.1050 STOP_LOSS: 1.1000 TAKE_PROFIT: 1.1100

Technology Stack:

  • MT4 EA: Developed in MQL4.
  • Server-Side: Python
  • Database: MySQL to retrieve the account number for command verification.


Han respondido

1
Desarrollador 1
Evaluación
(177)
Proyectos
237
45%
Arbitraje
17
82% / 12%
Caducado
35
15%
Trabajando
2
Desarrollador 2
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Trabaja
3
Desarrollador 3
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
4
Desarrollador 4
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(378)
Proyectos
401
31%
Arbitraje
63
19% / 68%
Caducado
51
13%
Trabajando
Solicitudes similares
Using 3 MA’s, Bollinger Bands and price action, I need an EA made for mt4 and mt5 (preferably) should have good knowledge of forex, risk management and candle stick patterns, and how to incorporate them in the codes. I need a very efficient code. * For the price, I just out anything there, but if you can do it I’ll pay the negotiated price*
Objective: Develop an Expert Advisor (EA) that integrates MetaTrader4/5 with the Binance platform for automated trading on both spot and futures markets. Deliverables: Trading Robot (EA) : Build an EA that functions on both MetaTrader4/5 (MT4/MT5) and Binance (Spot & Futures Trading) platforms. The EA should facilitate automated trading on both platforms simultaneously. Source Code : Provide complete and
Hello, same as title. I do not care about the drawdown I just need a trading strategy that can do 100% return per month return, simple as that. It would be nice if it can be automated into a bot/EA. Most important is the return of at least 100% per month!!! The strategy you provide need to be tested and work fine and have been doing well in the live market by you or someone for a long time. To be clear again - I need
Build this Expert Advisor (EA) 1. Risk Management Risk per Trade : The EA will calculate the lot size based on the risk percentage (1-2% of the account balance). This will be a customizable input. Stop Loss & Trailing Stop : The EA will place a stop loss at a defined level (based on strategy parameters like ATR, recent support/resistance, etc.) and will implement a trailing stop to lock in profits as the trade moves
Build mql5 EA and connection to python file , need mql5 and python skills , need to be able to know how connect MT5 EA to python file and have had experience doing it before. PLEASE no-one respond to this job request if you do NOT have very good experience doing this type of thing. My time and money has already been wasted with other devs (not devs from mql5.com) So please do not apply if you do not have very good
I need an expert advisor based on MACD and MA signals. It must have check and handling of trade operations errors. The main criteria for opening and closing positions: ◇Both Main and Signal direction must be shown by Arrows which is going to be for buy and sell positions
I need an expert to help me with adding more features to my existing mt4 EA I think the addition I want added to this EA is fairly simple--but I don't really understand how programming works, Contact me for a long term work, This is not the only project, I will explain the features in the inbox, Let me know if you can do it
**Project Title:** Development of a Complex High-Performance EA for Step Index **Project Overview:** I need an advanced Expert Advisor (EA) for trading the Step Index on MetaTrader 5. The EA should use multiple indicators and advanced risk management techniques to enhance profitability and manage risks effectively. **Trading Strategy Details:** Indicators: - 50-period EMA - 200-period EMA - RSI with 14 periods - MACD
1st Scenario: 4-Candle Setup (Breakout and Retest) Step 1: Breakout Candle: The price breaks above the EMA 50. Step 2: Retest Candle: After the breakout, look for a bearish (red) candle that touches the EMA. Step 3: Entry Candle: Identify a bullish (green) candle that closes above the EMA. Step 4: Trade Candle: Enter the trade when the price crosses 2 pips above the high of the bullish entry candle. RSI Confirmation
required a bot based on ict ,smc technique order blocks fvg liqidity voids liquidity sweep break of structure eqal low and equal high momentup setup trend recogonsation kkldnvksldnvksdnvlkdsnvlkdsnvlksndlkvnsdklvnlskdvnlksdnvsdvmsldkmv lksdnvlksnl knsdkl nsdlkv sdlkv mslkn vlskdm lksm ,v njdfnv lkjdfnvlkmfsn lfn kdfm vfmmvlkmvlksdmv

Información sobre el proyecto

Presupuesto
99+ USD

Cliente

(3)
Encargos realizados5
Número de arbitrajes0