Download MetaTrader 5

Calculating pending order expiration : Datetime vs Timer

To add comments, please log in or register
Diane Minshew
358
Diane Minshew  

Would if be better to use datetime and calculate the future date of expiration or count using a timer to delete the pending order?

Alain Verleyen
Moderator
33629
Alain Verleyen  
wehsnim:

Would if be better to use datetime and calculate the future date of expiration or count using a timer to delete the pending order?

An expiration date is more reliable as it's executed on server side.
To add comments, please log in or register