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

MQL4 Scripts Intégration

Spécifications

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! 

Répondu

1
Développeur 1
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
2
Développeur 2
Évaluation
(24)
Projets
55
40%
Arbitrage
1
0% / 0%
En retard
11
20%
Gratuit
Commandes similaires
I’m looking for someone experienced with Think or Swim to create a backtesting script for an in-the-money Iron Condor strategy using options on the SPX. The strategy involves setting up 10 contracts of an Iron Condor with a 10-point spread width and a net credit requirement of $11 per contract. The goal is to backtest the performance over the last three years, focusing on trades where the SPX closes outside a
I currently have a license code that connects to my web server, and I add the account number, client name, and expiration date. I’d like something more automated. Currently I allow clients 10 licenses, but adding for them on my side can get exhausting. I’d like a better solution for myself and clients

Informations sur le projet

Budget
10 - 30 USD
TVA (19%): 1.9 - 5.7 USD
Total: 11.9 - 35.7 USD
Pour le développeur
9 - 27 USD