Hello jesing,Thank you very much for your efforts. Please convert the following indicators to MT5;
Attached File(s)
Smart Money Concept (SMC) and ICT Indicators MT4 -MT5 44 replies
Create MT5 indicators from MT4 indicators 4 replies
Make your EA / Indicator Free of Cost MT5/MT4 15 replies
Converting Indicators from MT4 to MT5? 5 replies
Please help to convert MT4 indicators to use in MT5 platform 0 replies
DislikedCan you guarantee that the code would not be shared or used by yourself to trade? Do you use LLMs to generate the MQL code ?Ignored
Disliked{quote} WTF? Why would he needs to guarantee anything, he is helping people here..Ignored
DislikedAfter 25+ years of programming mq4/mq5 I can say AI can do any simple task not the big ones.Ignored
typedef enum
{
CONNECTION_HTTP,
CONNECTION_WEBSOCKET
} ConnectionType;
typedef struct
{
int socket_fd;
ConnectionType type;
char buf[BUFFER_SIZE];
} Connection;
Connection active_connections[MAX_CONNECTIONS] = {0};
// Base64 encoding for WebSocket handshake
char* base64_encode(const unsigned char* data, size_t input_length) {
static const char encoding_table[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n',
'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
'w', 'x', 'y', 'z', '0', '1', '2', '3',
'4', '5', '6', '7', '8', '9', '+', '/'};
size_t output_length = 4 * ((input_length + 2) / 3);
char* encoded_data = malloc(output_length + 1);
if (encoded_data == NULL) return NULL;
for (size_t i = 0, j = 0; i < input_length:wink: {
uint32_t octet_a = i < input_length ? data[i++] : 0;
uint32_t octet_b = i < input_length ? data[i++] : 0;
uint32_t octet_c = i < input_length ? data[i++] : 0;
uint32_t triple = (octet_a << 0x10) + (octet_b << 0x08) + octet_c;
encoded_data[j++] = encoding_table[(triple >> 3 * 6) & 0x3F];
encoded_data[j++] = encoding_table[(triple >> 2 * 6) & 0x3F];
encoded_data[j++] = encoding_table[(triple >> 1 * 6) & 0x3F];
encoded_data[j++] = encoding_table[(triple >> 0 * 6) & 0x3F];
}