Order opening based on remaining time
-
Note that the information obtained there at the exact moment is:
Time: 2022.04.19 12:50:34I wanted to know how to create conditions with these times.
For example:Every time a 1 minute candle opens then we can say that the information displayed will be for example:
Time: 2022.04.19 12:50:00
So I want it when there is an increment of 55 seconds like in the example below:
Time: 2022.04.19 12:50:55 a trade opens.In short, I want (5 seconds to go) for a new candle to open, to open a trade, but it has to be exactly 5 seconds.
Does anyone know how to do this demonstrating with an example?

-
-
I would read hours separate from minutes separate from seconds and just constantly check their values and then when one of the 3 is below the threshold...
-
@ontradingx said in Order opening based on remaining time:
thank you for asking that, I was trying to think of a solution for that weeks ago. You made me think of it in 2.2 seconds

-
trying to find a physical solution now, not just conceptually...I think this is going to be a MQL5 custom thing...we'll see.
-
yikes...nothing came to me other than using an indicator someone else has already built that allows you to change the times...
-
@tipsywisdom
Sorry friend, I don't understand what you mean, can you clarify?
Was it something positive or negative? -
@ontradingx sorry, no resolution currently other than to use an external indicator and there are some available.
-
I dont know how to break apart and use the portions of time code that I would need to subtract 2 time frames to generate a result.