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

MQL4 Sripts Integración

Tarea técnica

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! 

Han respondido

1
Desarrollador 1
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
2
Desarrollador 2
Evaluación
(24)
Proyectos
55
40%
Arbitraje
1
0% / 0%
Caducado
11
20%
Libre
Solicitudes similares
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

Información sobre el proyecto

Presupuesto
10 - 30 USD
IVA (19%): 1.9 - 5.7 USD
Total: 11.9 - 35.7 USD
Para el ejecutor
9 - 27 USD