Here is yet another block of code for a more appropriate solution:
http://www.forexfactory.com/showthread.php?t=73826. Use Rabid's code.
Paste the first (large) block of code under your
int start(), and paste the code below (a one liner) under each set of existing trading conditions (see
//trading conditions start here):
&& FoundRecentOpenedOrder(1440) == TRUEDon't forget to move your ending parentheses down from what previously was your last trading condtion in each set, to this new last trading conditon in each set.
As I understand it, this code basically says, if the day of the last order is one or more days ago, then return a value of TRUE. Otherwise (zero days ago--by process of elimination) return FALSE. Hence the usage of TRUE in the trading conditon.
Now I challenge you to mess this up!