My Ea does not open micro lot. It stops at 0.1 lot. Anyone knows why
- Joined Nov 2006 | Status: Member | 3,927 Posts
to trade and code, keep both simple... no call to impress....h
King of the microlot suspicions 21 replies
Money management: Capital needed per 0.07 USD per microlot 0 replies
if(lot<0.1) lot = 0.1; //--- if(lot<0.01) lot = 0.01;
DislikedMy Ea does not open micro lot. It stops at 0.1 lot. Anyone knows whyIgnored
Dislikedhey bridge.... sounds like your ea has a minimum lot size coded in..... that's common....
search the ea for 0.1, should be associated with lots.... you'll probably need to lower the minimum value......
if the ea is posted somewhere , let us know and we could tell for sure, otherwise it's just an educated guess.....h
Inserted Codeif(lot<0.1) lot = 0.1; //--- if(lot<0.01) lot = 0.01;Ignored
DislikedTry , and I say try ,to modify :
lot=NormalizeDouble(AccountFreeMarg in()*MaximumRisk/1000.0,1);
in to:
lot=NormalizeDouble(AccountFreeMarg in()*MaximumRisk/1000.0,2);
It should work , because "number of digits after decimal point " have changed from 1 (xx,y) to 2 (xx,yy).
Hope this help and sorry for my englishIgnored