Ard_Buy





//+------------------------------------------------------------------+
//|                                                      Ard_Buy.mq4 |
//|                                     Copyright © 2008, ARDIANSYAH |
//|                                               ardfx.blogspot.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2008, Ardiansyah"
#property link      "ardfx.blogspot.com"
#property show_inputs
extern int pembagi = 2;

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
//----
   int ticket;
   int err;
   double Margin;
   Margin = AccountFreeMargin( ) ;
   double Hasil;
   double Lots ;
   Hasil = Margin/pembagi/1000;
   Lots = MathFloor(Hasil);
   while(true)
   {
   ticket = OrderSend(Symbol(),OP_BUY,Lots,Ask,0,Ask - 1,0,NULL,0,0,White); 
   if(ticket<0)
       {
        err=GetLastError();
        Print("OrderSend failed with error ",err);
        
        if (err == 135) 
        {
         RefreshRates();
         break;
         }
        }
     else 
     {
     Print("Hasil =", Hasil);
     return(0); 
     }  
      }
   return(0);
  }
//+------------------------------------------------------------------+



Sample





Analysis



Market Information Used:



Indicator Curves created:


Indicators Used:



Custom Indicators Used:

Order Management characteristics:
It automatically opens orders when conditions are reached

Other Features:


BackTest : EURUSD on H1

From 2010-04-01 to 2010-04-30 Profit Factor:0.00 Total Net Profit:0.00

BackTest : EURUSD on H1

From 2010-05-01 to 2010-05-31 Profit Factor:0.00 Total Net Profit:0.00

BackTest : EURUSD on H1

From 2010-06-01 to 2010-06-30 Profit Factor:0.00 Total Net Profit:0.00

Request Backtest for Ard_Buy


From : (yyyy/mm/dd) To: (yyyy/mm/dd)

Pair: Period: