AdvMM - Advanced Money Management

MQL4 Esperti Integrazione

Lavoro terminato

Tempo di esecuzione 1 giorno
Feedback del dipendente
Great customer. Specifications were very clear. Communication was quick and concise.
Feedback del cliente
1st Class, Top of the Line, EA Scientist! Extremely efficient, patient, & humble. Excellent communicator & educator. Above & beyond my expectations. Definitely happy & satisfied.

Specifiche

The Code Attached is part of an Expert Advisor code for Money Management, aka Position Sizing.


double AdvancedMM()
{
 int i;
 double AdvancedMMLots = 0;
 bool profit1=false;
 int SystemHistoryOrders=0;
  for( i=0;i<OrdersHistoryTotal();i++)
  {  OrderSelect(i,SELECT_BY_POS ,MODE_HISTORY);
     if (OrderMagicNumber()==MagicNumber) SystemHistoryOrders++;
  }
 bool profit2=false;
 int LO=0;
 if(SystemHistoryOrders<2) return(Lots);
 for( i=OrdersHistoryTotal()-1;i>=0;i--)
  {
     if(OrderSelect(i,SELECT_BY_POS ,MODE_HISTORY))
     if (OrderMagicNumber()==MagicNumber) 
     {
        if(OrderProfit()>=0 && profit1) return(Lots);
        if( LO==0)
        {  if(OrderProfit()>=0) profit1=true;
           if(OrderProfit()<0)  return(OrderLots());
           LO=1;
        }
        if(OrderProfit()>=0 && profit2) return(AdvancedMMLots);
        if(OrderProfit()>=0) profit2=true;
        if(OrderProfit()<0 ) 
        {   profit1=false;
            profit2=false;
            AdvancedMMLots+=OrderLots();
        }
     }
  }
 return(AdvancedMMLots);
}


The code needs to be altered to cater to more conservative traders that are not well capitalized and to also cater to traders that have brokers that have limits on position/order size.

As the EAs trade throughout the week, balances & equity are extremely volatile.  Depending on how the markets move, the EAs will either net the trader 100% profit or a 50% loss.


I will attach 2 of my EAs to see if it can be fixed or coded better.


Thank You for the Help.


Con risposta

1
Sviluppatore 1
Valutazioni
(365)
Progetti
507
40%
Arbitraggio
159
17% / 74%
In ritardo
99
20%
Caricato
2
Sviluppatore 2
Valutazioni
Progetti
0
0%
Arbitraggio
1
0% / 100%
In ritardo
0
Gratuito
3
Sviluppatore 3
Valutazioni
(10)
Progetti
20
15%
Arbitraggio
3
0% / 67%
In ritardo
10
50%
Gratuito
Pubblicati: 2 codici

Informazioni sul progetto

Budget