time limit an expert

 
Hello,

I'm using 100 pips a day EA on demo account and was wondering if it was possible to give it a time limit.
So that if the trade is open longer than 10 minutes the expert will close it automatically.
I have tried to realize this, but failed^^
Can someone help me get this function in the EA?
I'll attach the version I'm using.

Thanks very much!
Files:
 

very quick hack. given my bat aver, is probly not wat u want but maybe is?

easy to comment out code if not or gives u ideas 4 wat really want etc.

untested as code not set for sub-pip brokers...

Best

Files:
Reason: