ane coba bro!
jadi setiap equety bertambah 50% (bisa diatur) maka lot akan bertambah sebesar start_lot
perhitungannya sejak balance di attack ke cart
jadi setiap equety bertambah 50% (bisa diatur) maka lot akan bertambah sebesar start_lot
perhitungannya sejak balance di attack ke cart
//+------------------------------------------------------------------+
//| Compoundinf Lots.mq4 |
//| Copyright 2012, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2012, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
extern double Compound_persen=50; //setiap sebesar Compound_persen maka lot extern double start_lot=0.1;// akan bertamabh sebesar star_lot double bal;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+ int init()
{ //----
bal=AccountBalance(); //----
return(0);
} //+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+ int deinit()
{ //----
//----
return(0);
} //+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+ int start()
{ //----
double dlot,com;
com=Compound_persen*bal/100;// ini lot compound presen balance
dlot=start_lot +(start_lot*MathFloor((AccountEquity()-bal)/com));// ini hitungan lotnya
//----
return(0);
} //+------------------------------------------------------------------+
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2012, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
extern double Compound_persen=50; //setiap sebesar Compound_persen maka lot extern double start_lot=0.1;// akan bertamabh sebesar star_lot double bal;
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+ int init()
{ //----
bal=AccountBalance(); //----
return(0);
} //+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+ int deinit()
{ //----
//----
return(0);
} //+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+ int start()
{ //----
double dlot,com;
com=Compound_persen*bal/100;// ini lot compound presen balance
dlot=start_lot +(start_lot*MathFloor((AccountEquity()-bal)/com));// ini hitungan lotnya
//----
return(0);
} //+------------------------------------------------------------------+
No comments:
Post a Comment