Adding a new function to MT4 - sending alerts by UDP instead of email

MQL4 脚本 积分

指定

I need to have a function in MT4 to send alerts out by UDP packet instead of email.

Actual

 

new 

 

Sending text in Java. Text should be the same as the content of the email.

// String host = "192.168.1.2"; int port = 4711;

public void send(String text, String host, int port) {

try {

// Get the internet address of the specified host

InetAddress address = InetAddress.getByName(host);

byte[] message = text.getBytes();

// Initialize a datagram packet with data and address

DatagramPacket packet = new DatagramPacket(message, message.length, address, port);

// Create a datagram socket, send the packet through it, close it.

DatagramSocket dsocket = new DatagramSocket();

dsocket.send(packet);

dsocket.close();

} catch (Exception e) {

System.err.println(e);

}

 

 

Thank you! 

反馈

1
开发者 1
等级
项目
0
0%
仲裁
0
逾期
0
空闲
2
开发者 2
等级
(24)
项目
55
40%
仲裁
1
0% / 0%
逾期
11
20%
空闲
相似订单
I'm looking for a skilled developer to help build a custom trading strategy for NinjaTrader 8 (N8). The project involves developing and fine-tuning a strategy tailored to specific market conditions. Experience with NinjaScript, strategy optimization, and backtesting is highly preferred. If you're available and have expertise in N8 strategy development, please get in touch to discuss further details
I have a python script that connects MT5 to Deriv for binary trading which is having some bug. It stops executing trades after a while. I need someone to check the code and fix it. Negotiable price
I currently have a Forex trading script in .txt format that I want to be converted to a functional/working robot (in .mq4), without altering the strategy of the script. The strategy of the script is already in and shouldn't be changed unless with mutual understanding

项目信息

预算
10 - 30 USD
VAT (19%): 1.9 - 5.7 USD
总计: 11.9 - 35.7 USD
开发人员
9 - 27 USD