Competition

Author: Copyright � 2006, Peradze Gulik.
Profit factor:
0.30
Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reached
1 Views
0 Downloads
0 Favorites
Competition
#property copyright "Copyright © 2006, Peradze Gulik."
extern int     Bars_Open_Level = 50;
int            MaxOrders = 3,LastBars = 0,Last_Oper;
double         Min_Open_Low,Max_Open_High;
int init()
{
 Last_Oper = CurTime() - 60;
 return(0);
}
int deinit()
{
 return(0);
}
int start()
{
 int Tmp,Lots = 0;
 if(Bars < 100) return(0);
 if(LastBars != Bars)
 {
  LastBars = Bars;
  Min_Open_Low = 0;
  Max_Open_High = 0;
  for(Tmp = 0;Tmp < Bars_Open_Level;Tmp++)
  {
   if(Max_Open_High < High[Tmp] || Max_Open_High == 0) Max_Open_High = High[Tmp];
   if(Min_Open_Low > Low[Tmp] || Min_Open_Low == 0) Min_Open_Low = Low[Tmp];
  }
 }
 if(OrdersTotal() < MaxOrders && Last_Oper + 60 <= CurTime())
 {
  if(AccountFreeMargin() > 2500) Lots = 2;
  else if(AccountFreeMargin() > 1500) Lots = 1;
  if(Close[0] > Max_Open_High && Lots != 0)
  {
   OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Ask + 50 * Point,Bid - 20 * Point,"",0,0,Red);
   Last_Oper = CurTime();
  }
  if(Close[0] < Min_Open_Low && Lots != 0)
  {
   OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid - 50 * Point,Ask + 20 * Point,"",0,0,Green);
   Last_Oper = CurTime();
  }
 }
 return(0);
}

Profitability Reports

USD/CAD Oct 2024 - Jan 2025
0.43
Total Trades 451
Won Trades 272
Lost trades 179
Win Rate 60.31 %
Expected payoff -18.89
Gross Profit 6553.35
Gross Loss -15072.53
Total Net Profit -8519.18
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.28
Total Trades 168
Won Trades 90
Lost trades 78
Win Rate 53.57 %
Expected payoff -50.95
Gross Profit 3340.00
Gross Loss -11900.00
Total Net Profit -8560.00
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.20
Total Trades 163
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -52.39
Gross Profit 2100.00
Gross Loss -10640.00
Total Net Profit -8540.00
-100%
-50%
0%
50%
100%

Comments