Close position after a specific time.
-
Greetings @roar
I kindly request your urgent assistance. I only want you to answer one question.
After a position is opened, how can I close the position immediately when:
- Either a new candle is opened (close position at the new opening candle price)
or
- After a specific time has passed (I tried using expiration, but it did not work).
Below you will find the shared project:
https://fxdreema.com/shared/ybK3zNibd
Your urgent response is much appreciated.
-
@ramimoujaes For your question one this is the simplest way to do it:

However, this will close the trade immediatley after creating it, so you will need another filter to know at what exact moment the EA is supposed to know when a new candle is open.
For your question 2 you can use this:

I forgot to add a 'clse trades' block below, sorry.