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);
}