Tarea técnica
You need to modify the code to establish a secure socket connection for the MQL5 advisor on a port other than 443. You need to use only native methods, without custom libraries and DLLs
My setup includes MT5 on Windows 11 and Node.js server on VMware Ubuntu.
Connections and operations on port 443 were successful.
However, attempting to connect to any other port results in the following error: "5274 Failed to establish a secure connection (TLS Handshake)."
The ports are unblocked and checked for availability on both Windows and Ubuntu, with the server listening on the required port. I can also see connection attempts and packets being exchanged between the advisor and the server on port 8000, as evidenced by the output of sudo tcpdump -i anyport 8000.
Below is the MQL5 code to establish a secure connection:
The certificates are also configured correctly and you can easily connect using openssl s_client -connect. If you have any additional tips or tweaks that might help, I'd appreciate it.
Thank you.
void Auth() { string jsonAuth = "{"; jsonAuth += "\"login\":" + login + ","; jsonAuth += "\"email\":\"" + Email + "\","; jsonAuth += "\"key\":\"" + SecretKey + "\","; jsonAuth += "\"platform\":\"" + "MT5" + "\""; jsonAuth += "}"; string auth = "{"; auth += "\"event\":\"v1-login\","; auth += "\"body\":" + jsonAuth; auth += "}"; int socket = SocketCreate(); if(socket!=INVALID_HANDLE) { if(SocketConnect(socket,Address,Port,5000)) { Print("Connected: ",Address,":",Port); bool hand = SocketTlsHandshake(socket, Address); Print(hand, GetLastError()); } string subject,issuer,serial,thumbprint; datetime expiration; int dataSize = StringLen(auth); uchar dataBuffer[]; ArrayResize(dataBuffer, dataSize); for (int i = 0; i < dataSize; i++) { dataBuffer[i] = (uchar)auth[i]; } SocketTlsSend(socket, dataBuffer, dataSize); } }
Han respondido
1
Evaluación
Proyectos
22
50%
Arbitraje
1
0%
/
0%
Caducado
2
9%
Trabajando
2
Evaluación
Proyectos
206
27%
Arbitraje
0
Caducado
3
1%
Libre
3
Evaluación
Proyectos
8
13%
Arbitraje
2
0%
/
100%
Caducado
1
13%
Trabaja
4
Evaluación
Proyectos
10
10%
Arbitraje
9
0%
/
78%
Caducado
1
10%
Trabaja
Solicitudes similares
A trading bot or expert advisor
30+ USD
Creating of an expert advisor or trading bot that uses a Top Down analysis (using monthly, weekly, daily, hourly, minutes ( 30, 15, 5, 1) to determine trade direction or trend direction and makes multiple trade decisions for mt4. You can use or combine accurate trend indicators
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
Need a trading bot based on Bollinger Bands and a second indicator - Simple Bot, simple strategy
30 - 60 USD
I am looking forward to automate my trading strategy where I use renko bars on Tradingview. I really want to use unirenkos too, but unfortunately I couldn't figure out how to use ninjatrader on my MacBook and Tradingview does not offer unirenkos. As far as I see from your offered services you are very familiar with ninjatrader. I wanted to ask you if you could code me an Indicator for unirenkos for Tradingview so I
I am looking forward to automate my trading strategy where I use renko bars on Tradingview. I really want to use unirenkos too, but unfortunately I couldn't figure out how to use ninjatrader on my MacBook and Tradingview does not offer unirenkos. As far as I see from your offered services you are very familiar with ninjatrader. I wanted to ask you if you could code me an Indicator for unirenkos for Tradingview so I
Hello The EA will work on particular zone choose by the user and can mark it on any TF and with some rules can open trades and mange the trade by some unique rules. the EA need to check the difference by RSI as well and with some extra rules . developer should have good attitude and good communication (englsih) with high performence and knowledge with coding EA
TREND TRACKER 2 TRADER
30+ USD
Hello, I want to create an EA that can be able to take and optimise trade bids using the trend tracker concept I have developed. The tracker will monitor 2 lines to determine the trend of the market and afterwards take bids towards the correct direction. It will also be able to use a distance between the bids for the direction of the trend and plan a reverse bid when the price of the extreme doesn’t change again. The
Gradient boosting and L2
100 - 200 USD
I am looking for a well experienced programmer to put/implement a gradient boosting algorithm and an L2 to reduce overfitting in my ea which l already have which uses indicators . If you are experienced please adhere
Hello, I'm looking for a developer for repair calendar in EA MT4/MT5 (News Filter - https://ec.forexprostools.com ) for all windows servers. Note: EA MT4/MT5 works with calendar on PC Win 10, 11 but not on all windows servers. I have the source code and will post within the comments section for review. If you are able to do this and quality. Please apply. Thanks
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
EA - SCALP MARTINGALE SPY
30+ USD
SCALP MARTINCALE SPY TIMEFRAME 1MIN CANDLE - SHORT SIDE ONLY 1-SET RISK : A IS A VARIABLE (HOW MUCH $) 2-SET ATR(3) : SET THE TIME AT WHICH THE ATR SHOULD BE TAKEN, IF SET 933AM THEN THE ATR OF THE 1MIN CANDLE AT 933AM CANDLE WILL BE USED (ROUND AT 0.25 UP OR DOWN) *USE NEW YORK TIME 3-SET MAX NUMBER OF ENTRY : B IS A VARIABLE 4-SET RSI(14) / C IS A VARIABLE, IF RSI(14) > C = ORDERS OPEN 5-IF RSI(14) > C IS TRIGGERED
Información sobre el proyecto
Presupuesto
30+ USD
IVA (19%):
5.7
USD
Total:
35.7
USD
Para el ejecutor
27
USD