Author: Copyright � 2008, Ardiansyah
Profit factor:
0.00
Orders Execution
It automatically opens orders when conditions are reached
0 Views
0 Downloads
0 Favorites
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);
  }
//+------------------------------------------------------------------+

Profitability Reports

USD/CHF Oct 2024 - Jan 2025
0.00
Total Trades 0
Won Trades 0
Lost trades 0
Win Rate 0.0 %
Expected payoff 0.00
Gross Profit 0.00
Gross Loss 0.00
Total Net Profit 0.00
-100%
-50%
0%
50%
100%
USD/CAD Oct 2024 - Jan 2025
0.00
Total Trades 0
Won Trades 0
Lost trades 0
Win Rate 0.0 %
Expected payoff 0.00
Gross Profit 0.00
Gross Loss 0.00
Total Net Profit 0.00
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.00
Total Trades 0
Won Trades 0
Lost trades 0
Win Rate 0.0 %
Expected payoff 0.00
Gross Profit 0.00
Gross Loss 0.00
Total Net Profit 0.00
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.00
Total Trades 0
Won Trades 0
Lost trades 0
Win Rate 0.0 %
Expected payoff 0.00
Gross Profit 0.00
Gross Loss 0.00
Total Net Profit 0.00
-100%
-50%
0%
50%
100%

Comments