View Single Post
  #111 (permalink)  
Old 07-12-2006, 02:09 PM
newdigital newdigital is online now
Administrator
 
Join Date: Sep 2005
Posts: 15,416
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
There are many kinds of MM:

Code:
if (LotsWayChoice==1)
  {
    dLot=MathCeil(AccountFreeMargin()/10000*LotsPercent)/10;
  }
Code:
if (LotsWayChoice==2)
  {
    int k=LotsDepoForOne;
    for (double i=2; i<=LotsMax; i++)
    {
      k=k+i*LotsDeltaDepo;
      if (k>AccountFreeMargin())
      {
        dLot=(i-1)/10; break;
      }
    }
  }

Code:
if (LotsWayChoice==3)
  {
    dLot=MathCeil((AccountFreeMargin()-LotsDepoForOne)/LotsDeltaDepo)/10;
  }

  if (dLot<0.1) dLot=0.1;
  return(dLot);
I took it from some library file inside my MetaTrader (author is Kimiv).
And there is the other library file with 23 kinds of MM (author is komposter).

And there is MM using in Envelope EA for example (with decrease factor).

So MM is not easy subject and MM should be adjusted to particular EA with specified deposit size and settings. If we change something (deposit size, some settings and so on) so it will be the other MM.
Not easy.
Reply With Quote