Alguien sabe como verificar y cerrar un trade por arriba o abajo del precio de entrada?
-
I need to close the trade if the candle closes above or below the price depending on whether it is buy or sell obviously. How to test each candle?
I will leave you an image so that you can get an idea

-
@kevdiaz Hello,
That would be to close a buy trade the way you said. But this would also mean that the buy trade was the last trade opened. If your EA has many trades then you will need some other approach.

-
@q8carpenter Gracias, Las operaciones se deberian cerrar muy rapido, por ejemplo en la imagen donde esta el ejemplo, deberia abrir operacion en la vela siguiente, es decir, en esa imagen hay 2 operaciones. la configuracion que enviaste, es para una sola operacion cierto??
-
In my example, the trades will close but no new trade will open. Did you want a trade to open as soon as the other closes?
-
No, simplemente debe cerrar la operacion Abierta, la apertura de operacion si ya la tengo completa.