polymath:
Hi guys,
I'm just wondering if there is a function to get the position opening time here in MQL5? I've read the various trade functions and the data structures but can't seem to locate this function. I'm intending to close a position based on a fixed time after being opened if the takeprofit and stoploss hasn't been triggered yet. Thanks in advance!
PositionGetInteger(POSITION_TIME). Returns a datetime type.
For more info on position properties, click a green link in your post.
177
Hi guys,
I'm just wondering if there is a function to get the position opening time here in MQL5? I've read the various trade functions and the data structures but can't seem to locate this function. I'm intending to close a position based on a fixed time after being opened if the takeprofit and stoploss hasn't been triggered yet. Thanks in advance!