View Single Post
  #5 (permalink)  
Old 01-15-2007, 08:51 PM
Nicholishen's Avatar
Nicholishen Nicholishen is offline
Senior Member
 
Join Date: Dec 2005
Posts: 531
Nicholishen is on a distinguished road
You could try something like this:

PHP Code:
bool drawdown(double maxdrawdownpercent)
{
   if(
AccountEquity() < AccountBalance() - (AccountBalance() * maxdrawdownpercent))
   {
      return(
true);
   }
   return(
false);

__________________
"Anyone who has never made a mistake has never tried anything new." -Albert Einstein
Reply With Quote