double price;
for (int i = 0; i < v::MaxPositions; i++)
{
price = NormalizeDouble(SymbolInfoDouble(_Symbol,SYMBOL_BID),_Digits); // Obtener el precio actual del Bid
price = price - v::distance;
// Crear una línea horizontal en el precio "price" con grosor de 0.5 y color verde
string lineName =ObjectCreate(0,"Position " + IntegerToString(i),OBJ_HLINE,0,0,price);
ObjectSetInteger(0, "Position " + IntegerToString(i), OBJPROP_COLOR, Red);
ObjectSetInteger(0, "Position " + IntegerToString(i), OBJPROP_WIDTH, 0.5);
}
G
Posts made by GreXFarrier
-
RE: how to repeat horizontal line or how to create loop for horizontal lineposted in Questions & Answers
-
RE: Anyone who knows to implement Sockets IOposted in Questions & Answers
Ok I made a nodejs socket server, when I send a message from MT5 to the server it receives it.
this is the code:
int socket = SocketCreate();
char req[];
int len = StringToCharArray("Buy", req) - 1;
SocketSend(socket, req, len);
SocketClose(socket);But I can make it receives data from the server, I try with SocketRead(), but I can't get it works
-
Anyone who knows to implement Sockets IOposted in Questions & Answers
Anyone who knows how to implement a socket connection,