Yea I see.
if(ClosedBySL) NextOrder = OrderCloseTime()+3600;
How can I round UP "OrderCloseTime()" to the nearest hour in the example above?
There are many different ways, here is one:
#define HOUR 3600
datetime ClosedAt = OrderCloseTime();
NextOrder = ClosedAt - (ClosedAt % HOUR) + HOUR;
To add comments, please log in or register