Hello FXEgyptian!,
I have attached a code which will exit an open position after 10 minutes. There are many ways to do this - but this is quick and easy.
Tested - working ok!
The picture shows the time calc I use for 10min - the rest of the logic is in the attached file =)
The setting for the calculation is SUM
Let me know if you have any questions?
DoC