Minutes before market closing
-
Hello fxDreema. All right? As you can imagine, I am currently preparing to operate in the future market.
I need to know with what I do to close all positions 5 minutes before the daily market closes. I researched and discovered the exact function for this, which is SymbolInfoSessionTrade - https://www.mql5.com/pt/docs/marketinformation/symbolinfosessiontrade.
I also know that in Marketing Properties, in Symbol Trade Time (for Futures) says about the initial day until the contract expires, but I need to close every day 5 minutes before the daily close.
-
This option applies for all symbols actually. It's interesting function, I will take a look at it. But why they decided to use "from" and "to" that way... If the function itself was made in a way to return the value you want, it would be easier to use it directly.
If you are hurry, you can create your own function that uses this one, but returns the amount of minutes until the end of the session... if you know MQL4 a little bit

-
I still do not know MQL4.
Wonder! I'll be waiting for this new feature. It will be very useful to me and I will be updating all my AEs.