Secure MT4 EA and Python (Server) Communication Setup

MQL4 전문가 스크립트 Python PHP

명시

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.


응답함

1
개발자 1
등급
(177)
프로젝트
237
45%
중재
17
82% / 12%
기한 초과
35
15%
로드됨
2
개발자 2
등급
프로젝트
0
0%
중재
0
기한 초과
0
작업중
3
개발자 3
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
4
개발자 4
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
5
개발자 5
등급
(378)
프로젝트
401
31%
중재
63
19% / 68%
기한 초과
51
13%
로드됨
비슷한 주문
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*
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
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
Hft live account 30 - 200 USD
i need a high frequency trading (hft) expert advisor, that can be used to trade on demo and live accounts icmarket and 8cap. The EA has to be highly profitable, giving daily profit. If a test version is available, please send, to foster a faster transaction. like the ones that pass prop firm and demo but adjustment where it work on live with low latency
CPI ROBOKING 30+ USD
*Strategy: CPI-Based Trading* *Instruments:* XAUUSD (Gold), UsTech100 (Nasdaq 100), USDJPY *CPI Release:* 1. *Higher-than-expected CPI:* - XAUUSD: SELL (Gold prices may drop due to potential rate hike) - UsTech100: SELL (Tech stocks may drop due to potential rate hike) - USDJPY: BUY (USD may strengthen due to potential rate hike) 2. *Meets or lower-than-expected CPI:* - XAUUSD: BUY (Gold prices may rise due
Create mt4 ea 50+ USD
To convert the provided MT4 indicator script into an Expert Advisor (EA) and implement prompt functionality for user input, we need to modify the code to handle external parameters and provide a user-friendly interface. Below is the EA code that incorporates prompts for user inputs
I WRITE a code i want to conect this for automatic trading through vps .and als advanced features for this code .i attached afile please watch .and give me perfect ea
Hello, i need a good programmer; to code an EA to trade the most productive forex pairs (mainly 2 for the day, and 2 for the night+gold), the strategy is based on the use of one moving average and the rsi, thank you in advance
i want a forex robot that will read chats and enter trades on its oown. i want it to be able to use all trading strategies and partterns. good risky manegmemt, i want it to forcuse on Gold and and all major forex pairs. i want it to use stop loses and take profits as the market might change direction anytime. i want to work on both mt5 and mt4

프로젝트 정보

예산
99+ USD

고객

(3)
넣은 주문5
중재 수0