Thread
:
How to code?
View Single Post
#
345
(
permalink
)
09-10-2007, 10:20 PM
ralph.ronnquist
Senior Member
Join Date: Oct 2006
Posts: 281
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.
ralph.ronnquist
View Public Profile
Find all posts by ralph.ronnquist