Forum

total order open time

Hi all, I need help creating a code, whereI want to close if my order is open for more than 7 days to include in my EA. I am trying to use OderOpenTime() function but not able to calculate till current time to get the no days difference. Please suggest some code / function where I can calculate the