is there a way to call the time of the trade in order history?

 
for example. i want the program to search history and if there is no trade withing the last 6 hours then run the script.
help please?
 
research all OrderXXXX(...) function in help file.
 
i did. i mean how would i actually tell it to look for the last 6 hours? i would do timecurrent() - 6 hours. but it doesnt understand what 6 hours means. it has to be something that makes sense to the program.
 
TimeCurrent() is in seconds; 6 * 60 * 60 ( = 21600 ) is 6 hours in seconds; so the actual condition would be like
( TimeCurrent() - OrderOpenTime() < 21600 )
 
cool dude! thank you very much!
Reason: