Download MetaTrader 5

Ideas on MM

To add comments, please log in or register
cris224
17
cris224  

Hello,

I am looking for some ideas for improving the Money Management part of my EA.

Here is the printout of my tester results from 1/1/2009 to present with 1.4 spread. And the MM section.

Maybe smoothing out the risk equity curve, or some sort of steps in risk equity. The idea is to reduce the drawdowns after a win. My EA has twice as many losses as wins, small losses. But after a big win, the ammount of pips being traded increases dramatically, so the small losses take out the bigger win.




double LotsOptimized()
{
  dLots=Lots;
   MinLots = MarketInfo(Symbol(), MODE_MINLOT);
   MaxLots = MarketInfo(Symbol(), MODE_MAXLOT);
   LotStep = MarketInfo(Symbol(), MODE_LOTSTEP);
      double StopLossPoint = 50;
      double RiskEquity = AccountEquity() * (PctToRisk/100);
      double eRiskEquity = AccountEquity() * (MaxPctToRisk/100);
      double PipValue = MarketInfo(Symbol(), MODE_TICKVALUE) * (pointvalue / MarketInfo(Symbol(), MODE_TICKSIZE));
      double eLots = eRiskEquity / (StopLossPoint * PipValue);
  if(MM){dLots = RiskEquity / (StopLossPoint * PipValue);}
  if(eLots < dLots){dLots = eLots;}  
  if (dLots < MinLots){dLots = MinLots;}
  dLots = MinLots + NormalizeDouble(((dLots - MinLots) / LotStep),0) * LotStep;
  if (dLots > MaxLots){dLots = MaxLots;}              
  dLots = MinLots + NormalizeDouble(((dLots - MinLots) / LotStep),0) * LotStep;  
  if (dLots < MinLots){dLots = MinLots;}                      
  return (dLots);
}
whroeder1
17093
whroeder1  
cris224: so the small losses take out the bigger win.
You can't control when the win will occur. The only thing you can control is lot size. Reduce your risk.
To add comments, please log in or register