Thread: Martingale EA
View Single Post
  #309 (permalink)  
Old 01-31-2008, 02:12 AM
wolfe's Avatar
wolfe wolfe is offline
Senior Member
 
Join Date: Jan 2006
Posts: 816
wolfe is on a distinguished road
Quote:
Originally Posted by allinvain View Post
dammit, sorry for the double posts..for some reason I could not see the new posts I was making even though I was logged in. I am fairly new to this forum, so are there any bugs or quirks that I should be aware of?
Thanks for testing allinvain.

I just posted v1_5 less than 24hrs ago. I'm not sure of any potential bugs in it yet, as I haven't been able to thoroughly test it yet. The money management feature is a new process in coding for me. I studied three different EA's to try to learn and replicate the feature. I'm not entirely confident that this feature works as desired yet. So, as of right now I don't exactly know why your lot size jumped the way it did. With lot increment set to 0, you should be fine, that is not the problem.

Maybe someone could look at the MM chunk of code, and determine if it was coded properly.

PHP Code:
if (Money_Management==true)
{
 
Start_Lot_Size NormalizeDouble(MathFloor(AccountFreeMargin()*Risk_Percent/100)/100,1);
   if (
Start_Lot_Size Max_Lots)
     
Start_Lot_Size Max_Lots;
   if (
Start_Lot_Size Min_Lots)
     return(
0);

Reply With Quote