Quote:
|
Originally Posted by Alex.Piech.FinGeR
i posting here
proportionate Money Managment for EA's
--
|
I used an idea of yours:
PHP Code:
//--- Bassed on Alex idea! More ideas are coming
double LotSize()
{
double lotMM = MathCeil(AccountFreeMargin() * Risk / 10000) / 10;
if (lotMM < 0.1) lotMM = Lots;
if (lotMM > 1.0) lotMM = MathCeil(lotMM);
if (lotMM > 100) lotMM = 100;
return (lotMM);
}
Then:
PHP Code:
if(MM==true) Lots = LotSize(); //Adjust the lot size
It' not bad at all

!