Forex
Google

Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2006, 05:38 PM
Alex.Piech.FinGeR's Avatar
Alex.Piech.FinGeR Alex.Piech.FinGeR is offline
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 305
Alex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud of
proportionate money managment for EA's

i posting here

Fractionally-proportional Money Managment for EA's


--

Last edited by Alex.Piech.FinGeR : 02-28-2006 at 05:41 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2006, 05:40 PM
codersguru's Avatar
codersguru codersguru is offline
Senior Member
 
Join Date: Oct 2005
Posts: 987
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Thumbs up Money Management!

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.1lotMM Lots;
      if (
lotMM 1.0lotMM MathCeil(lotMM);
      if  (
lotMM 100lotMM 100;
      return (
lotMM);

Then:

PHP Code:
if(MM==trueLots LotSize(); //Adjust the lot size 
It' not bad at all !
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2006, 01:20 PM
Alex.Piech.FinGeR's Avatar
Alex.Piech.FinGeR Alex.Piech.FinGeR is offline
Senior Member
 
Join Date: Oct 2005
Location: Germany
Posts: 305
Alex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud ofAlex.Piech.FinGeR has much to be proud of

proportionate money managment for Metatrader EA's


PHP Code:

double LotSize
()
{
  
int Lotsaccretion         250// account accretion  
int LotsMarginForOne   100// margin for one trade
int LotsMax                1000// max. number of lots

int k=LotsMarginForOne;

    for (
double i=2i<=LotsMaxi++)
    {
      
k=k+i*Lotsaccretion ;
      if (
k>AccountFreeMargin())
      {
        
Lots=(i-1)/10; break;
      }
    }

  
if (
Lots<0.1Lots=0.1;

return(
Lots);


--

Last edited by Alex.Piech.FinGeR : 03-01-2006 at 01:23 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
EA's are money losing equity seives for lamerz. Zeplin Fx Expert Advisors - Metatrader 4 11 10-18-2006 07:22 PM
Money managment function Kalenzo Metatrader 4 8 03-10-2006 01:11 AM
MT3 EA's forexpipmaster Metatrader 3 1 11-23-2005 07:15 AM


All times are GMT. The time now is 11:17 PM.