SimpleTrade

Author: Copyright � 2008 Gryb Alexander
Profit factor:
0.30
Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reachedIt Closes Orders by itself
7 Views
0 Downloads
0 Favorites
SimpleTrade
//+------------------------------------------------------------------+
//|                                                    neroTrade.mq4 |
//|                                  Copyright © 2008 Gryb Alexander |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2008 Gryb Alexander"
#property link      ""

extern int stop = 120;
extern double lots = 1;

int slippage = 3;

datetime curTime;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
if((Time[0]!=curTime))
{   
   curTime=Time[0];
   
   if(OrdersTotal()==0)
   {
     if(Open[0]>Open[3])  OrderSend(Symbol(),OP_BUY,lots,Ask,slippage,Ask-stop*Point,0);    
     if(Open[0]<=Open[3])   OrderSend(Symbol(),OP_SELL,lots,Bid,slippage,Bid+stop*Point,0); 
   }
   else
   {
     OrderSelect(0,SELECT_BY_POS);
     if(OrderType()==OP_BUY)
       OrderClose(OrderTicket(),OrderLots(),Bid,3);
     if(OrderType()==OP_SELL)
       OrderClose(OrderTicket(),OrderLots(),Ask,3);
     if(Open[0]>Open[3])  OrderSend(Symbol(),OP_BUY,lots,Ask,slippage,Ask-stop*Point,0);    
     if(Open[0]<=Open[3])   OrderSend(Symbol(),OP_SELL,lots,Bid,slippage,Bid+stop*Point,0); 

   }
}

//----
   return(0);
  }
//+------------------------------------------------------------------+

Profitability Reports

USD/CAD Jul 2025 - Sep 2025
0.41
Total Trades 724
Won Trades 242
Lost trades 482
Win Rate 33.43 %
Expected payoff -13.47
Gross Profit 6727.98
Gross Loss -16482.69
Total Net Profit -9754.71
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
0.36
Total Trades 548
Won Trades 172
Lost trades 376
Win Rate 31.39 %
Expected payoff -17.93
Gross Profit 5463.00
Gross Loss -15289.00
Total Net Profit -9826.00
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
0.65
Total Trades 809
Won Trades 329
Lost trades 480
Win Rate 40.67 %
Expected payoff -11.90
Gross Profit 17797.00
Gross Loss -27423.00
Total Net Profit -9626.00
-100%
-50%
0%
50%
100%
GBP/CAD Jul 2025 - Sep 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/AUD Jul 2025 - Sep 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%
EUR/USD Jul 2025 - Sep 2025
0.46
Total Trades 489
Won Trades 185
Lost trades 304
Win Rate 37.83 %
Expected payoff -19.79
Gross Profit 8241.00
Gross Loss -17917.00
Total Net Profit -9676.00
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.39
Total Trades 570
Won Trades 204
Lost trades 366
Win Rate 35.79 %
Expected payoff -16.76
Gross Profit 6015.00
Gross Loss -15566.00
Total Net Profit -9551.00
-100%
-50%
0%
50%
100%
USD/CAD Oct 2024 - Jan 2025
0.16
Total Trades 305
Won Trades 62
Lost trades 243
Win Rate 20.33 %
Expected payoff -31.97
Gross Profit 1867.84
Gross Loss -11618.20
Total Net Profit -9750.36
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.18
Total Trades 243
Won Trades 50
Lost trades 193
Win Rate 20.58 %
Expected payoff -40.47
Gross Profit 2214.00
Gross Loss -12047.00
Total Net Profit -9833.00
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.71
Total Trades 783
Won Trades 308
Lost trades 475
Win Rate 39.34 %
Expected payoff -12.29
Gross Profit 23745.00
Gross Loss -33371.00
Total Net Profit -9626.00
-100%
-50%
0%
50%
100%

Comments