hedge_Ron_v00

Profit factor:
0.53
Price Data Components
Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reached
7 Views
0 Downloads
0 Favorites
hedge_Ron_v00
/*-----------------------------+
|			       |
| Shared by www.Aptrafx.com    |
|			       |
+------------------------------*/

//+------------------------------------+
//| Back Test Tester                   |
//+------------------------------------+
//

// generic user input
extern double Lots=0.1;
extern int TP=100;
extern int SL=50;

datetime bartime=0;


int start()
  {

   double p=Point();
   int      cnt=0;
   int      OrdersPerSymbol=0;

   double  I1=0;
   double  I2=0;
   
   bool IPOS, INEG;

   // Error checking & bar movement
   if(AccountFreeMargin()<(1000*Lots))        {Print("-----NO MONEY"); return(0);}
   if(Bars<100)                               {Print("-----NO BARS "); return(0);}
   if(Time[0]!=bartime)                       {bartime=Time[0];}

   OrdersPerSymbol=0;
   for(cnt=OrdersTotal();cnt>=0;cnt--)
     {
      OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
      if( OrderSymbol()==Symbol() )
        {
         OrdersPerSymbol++;
        }
     }

   // place new orders based on direction
   // only of no orders open
   if(OrdersPerSymbol==0)
     {
      OrderSend(Symbol(),OP_BUY, Lots,Ask,2,Ask-(SL*p),Bid+(TP*p),"BUY  "+CurTime(),0,0,White);
      OrderSend(Symbol(),OP_SELL,Lots,Bid,2,Bid+(SL*p),Ask-(TP*p),"SELL "+CurTime(),0,0,Red);
     } 

   return(0);
  } // start()




Profitability Reports

USD/CAD Jul 2025 - Sep 2025
0.64
Total Trades 2760
Won Trades 766
Lost trades 1994
Win Rate 27.75 %
Expected payoff -0.93
Gross Profit 4674.79
Gross Loss -7249.43
Total Net Profit -2574.64
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
0.58
Total Trades 1946
Won Trades 502
Lost trades 1444
Win Rate 25.80 %
Expected payoff -1.57
Gross Profit 4158.60
Gross Loss -7220.00
Total Net Profit -3061.40
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
0.72
Total Trades 4896
Won Trades 1451
Lost trades 3445
Win Rate 29.64 %
Expected payoff -0.97
Gross Profit 12475.10
Gross Loss -17225.00
Total Net Profit -4749.90
-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.12
Total Trades 3870
Won Trades 394
Lost trades 3476
Win Rate 10.18 %
Expected payoff -2.56
Gross Profit 1410.33
Gross Loss -11310.75
Total Net Profit -9900.42
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
1.19
Total Trades 11852
Won Trades 4959
Lost trades 6893
Win Rate 41.84 %
Expected payoff 0.56
Gross Profit 41155.10
Gross Loss -34465.00
Total Net Profit 6690.10
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.65
Total Trades 1904
Won Trades 523
Lost trades 1381
Win Rate 27.47 %
Expected payoff -1.26
Gross Profit 4497.80
Gross Loss -6897.80
Total Net Profit -2400.00
-100%
-50%
0%
50%
100%
USD/CAD Oct 2024 - Jan 2025
0.54
Total Trades 4952
Won Trades 1245
Lost trades 3707
Win Rate 25.14 %
Expected payoff -1.23
Gross Profit 7077.94
Gross Loss -13177.65
Total Net Profit -6099.71
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.58
Total Trades 2662
Won Trades 681
Lost trades 1981
Win Rate 25.58 %
Expected payoff -1.57
Gross Profit 5716.20
Gross Loss -9905.00
Total Net Profit -4188.80
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.21
Total Trades 2920
Won Trades 412
Lost trades 2508
Win Rate 14.11 %
Expected payoff -3.39
Gross Profit 2636.80
Gross Loss -12540.00
Total Net Profit -9903.20
-100%
-50%
0%
50%
100%

Comments