Cant close pending orders by time. - page 2

 
I know.... Ha.

I was asking this, because it was not mentioned anywhere in this post, and expect this to be not wanted behaviour.

My intention was to mark this clearly.


 
William Roeder #:
You should be able to read your code out loud and have it make sense. Thus, I would rewrite your test to if(duration >= 30 x)


Yes, that's what I would recommend as well.