Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal


TCP socket - library for MetaTrader 4

| English Español Português 日本語 Deutsch

votes: 6
2010.07.05 14:06
2014.04.21 14:54
socket.mqh (4.1 KB)view
WinSock.mqh (12.28 KB)view
wsockserv.mq4 (0.89 KB)view


I'm using this code for a script i have so i deleted the protocol mqh library, but it should still work. I made ryaz's winsock server example into some utility functions.

Report any bugs or improvements back please! Hope you find tcp sockets as simple as they should be = open connection, accept connection, receive connection, close connection.

Thanks :)

note that you can change the receive buffer size, the max amount of characters that we can receive, in the sockets.mqh file. Currently it is at 200 characters.

BB_Support_Up BB_Support_Up

Bollinger Bands on the current TimeFrame and from next three "Up"

MA_monika_SAR MA_monika_SAR

2 indicators(MA_Support and Para_B) in 1. TimeFrame from M1 to H4.

Channels Channels

This indicator calculates the high / low channel that price action has been moving in, for a given currency pair and a given (parameter) number of candles. This indicator, on the one hand, is interesting because it allows you to see the "road" that price

ChannelBalance ChannelBalance

This indicator is based upon the Channels indicator. It calculates, percentagewise, whether price action is towards the top or bottom of the channel.