Thread: How to code?
View Single Post
  #345 (permalink)  
Old 09-10-2007, 10:20 PM
ralph.ronnquist's Avatar
ralph.ronnquist ralph.ronnquist is offline
Senior Member
 
Join Date: Oct 2006
Posts: 281
ralph.ronnquist is on a distinguished road
You might put this code after the "BuyOrders++;" line:
PHP Code:
if ( TimeCurrent() - OrderOpenTime() >= 86400 MaxTradePeriodInDays )
    
Order SIGNAL_CLOSEBUY
and similar for the sell orders.

Doesn't do weekends well, though.
Reply With Quote