order expiration

 

I want my pending sellstop, or buystop order to expire at 3 hours of placement.

Do I need to set it as order expiration.........Please help with the code.

 
sure you gotta set it as . Use TimeLocal() or TimeCurrent() to set an expiration date with derivation from current time.
Reason: