View Single Post
  #541 (permalink)  
Old 06-06-2007, 09:42 PM
theone555 theone555 is offline
Junior Member
 
Join Date: Jul 2006
Location: Russia
Posts: 11
theone555 is on a distinguished road
Huh, i have a lot versions of V1+V2_mini5% and there a differences in code:

Variant 1:
=======
if (NormalizeDouble(((AccountEquity()-MinAccount)/AccountEquity())*100,0)>=Pct_Equity)
{
MinAccount=AccountEquity();
closeAllOrders(0);
sB=0;
closeAllOrders(1);
sS=0;
return(0);
}
=======

Variant 2:
=======
if (NormalizeDouble(((AccountEquity()-MinAccount)/AccountEquity())*100,0)>=Pct_Equity)
{
MinAccount=AccountEquity();
closeAll();
sB=0;
sS=0;
return(0);
}
=======

Why code has those differences? It influences something? Because on tester some different results.

Last edited by theone555; 06-06-2007 at 09:46 PM.
Reply With Quote