View Single Post
  #16 (permalink)  
Old 01-20-2006, 09:11 AM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 16,815
Blog Entries: 145
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
Originally Posted by seahunter
I installed Beluck's Mandarine and Euro/US session Thursday. It traded 3 times & took 29.3 or 30 lots each time on default settings. Unfortunately all were loosers (Metatrader demo)
Has this large lot size happened to anyone else?

SH
I just looked at the code and I see the following:

Code:
//---- select lot size
if (!FixedLot)
      lot=NormalizeDouble(AccountFreeMargin()*MaximumRisk*0.001/StopLoss,1);
   else
      lot=Lots;
//---- return lot size
   if(lot<0.1) lot=0.1;
   return(lot);

It means of FixedLot=false we will have your case and this EA is using MaximumRisk for the calculation of the lot size.
If FixedLot=true the lot size will be equal to Lots (which is 0.1 by default).

So, change FixedLot to true.
Reply With Quote