Forum

How to select orders by symbol and by direction(buy/long/flat) in a concrete symbol

Hello Folks, I am pretty new to MT4 EA programming so I would liek to ask you some little support. My attempt is to can select the already opened orders in MT4, by symbol, and then by direction (buy/long/flat). May you show me please an example of structuring the code, in order that it may return

MQL5 - EA - define value which returns amount of seconds Local time

Hello Folks, I would like to ask you some tips for a MQL5 variable (for EA), which must return the amount of seconds elapsed from the beginning of the minute of the specified time. It is essentially what TimeSeconds() is in mql4... could you please help me to define somethign equivalent in MQL5