View Single Post
  #3 (permalink)  
Old 03-21-2007, 09:42 PM
Willis11of12's Avatar
Willis11of12 Willis11of12 is offline
Senior Member
 
Join Date: Dec 2005
Posts: 105
Willis11of12 is on a distinguished road
Use this:

First put this up at the top:

int DayOfLastTrade;

Then where you are sending your order in, put this around it:

if (TimeDayOfYear(TimeCurrent())!=DayOfLastTrade)
{
ticket=OrderSend(....
DayOfLastTrade=(TimeDayOfYear(TimeCurrent());
}

That should only allow it to make one trade per day. Hope that is what you wanted.
Reply With Quote