3ma01exp_www.forex-instruments.info

Author: Ron Thompson
Profit factor:
0.39
Orders Execution
Checks for the total of open ordersIt Closes Orders by itself It automatically opens orders when conditions are reached
Indicators Used
Moving average indicator
14 Views
0 Downloads
0 Favorites
3ma01exp_www.forex-instruments.info
//+------------------------------------------------------------------+
//| 3MA Bunny Cross Expert                                           |
//+------------------------------------------------------------------+
#property copyright "Ron Thompson"
#property link      "http://www.lightpatch.com/forex"
// User Input
extern double Lots=0.1;
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//|------------------------------------------------------------------|
int init()
  {
   return(0);
  }
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   double   cMAfst=0, pMAfst=0;
   double   cMAslo=0, pMAslo=0;
   double    MA100=0;
   int    total=0;
   bool   found=false;
   int    otype=0;
   double otime=0;
   int      cnt=0;
   // Error checking
   if(Bars<100)
     {
      Print("bars less than 100");
      return(0);
     }
   if(AccountFreeMargin()<(1000*Lots))
     {
      Print("We have no money");
      return(0);
     }
   // only one order at a time/per symbol 
   // so see if our symbol has an order open
   Comment(" ");
   cMAfst=iMA(Symbol(),0,5 ,0,MODE_LWMA,PRICE_CLOSE, 1);
   pMAfst=iMA(Symbol(),0,5 ,0,MODE_LWMA,PRICE_CLOSE, 2);
   cMAslo=iMA(Symbol(),0,20,0,MODE_LWMA,PRICE_CLOSE, 1);
   pMAslo=iMA(Symbol(),0,20,0,MODE_LWMA,PRICE_CLOSE, 2);
   // rising or falling
   if ((pMAfst<=cMAslo && cMAfst>=cMAslo) || (pMAfst>=cMAslo && cMAfst<=cMAslo))
     {
      // check for existing order
      found=false;
      otype=-1;
      total=OrdersTotal();
      for(cnt=0;cnt<OrdersTotal();cnt++)
        {
         OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
         if(OrderSymbol()==Symbol())
           {
            if(OrderOpenTime()>Time[3])
              {
               found=true;
               otype=OrderType();
               break;
              }
           }
        }
     }
   if (found==true)
     {
      if (pMAfst<=cMAslo && cMAfst>=cMAslo && otype==1)  //exist sell
        {
         OrderClose(OrderTicket(),Lots,Bid,0,Red);
         Print("BUY  Order started  ",Ask);
         OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,"BC Buy ",16123,0,White);
         if(GetLastError()==0)Comment("BC_BUY  Order opened : ",Ask);
        }
      if (pMAfst>=cMAslo && cMAfst<=cMAslo && otype==0)  // exist buy
        {
         OrderClose(OrderTicket(),Lots,Ask,0,White);
         Print("SELL Order started  ",Bid);
         OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0,"BC Sell",16321,0,Red);
         if(GetLastError()==0)Comment("BC_SELL Order opened : ",Bid );
        }
     }
   else // not found, so create
     {
      if (pMAfst<=cMAslo && cMAfst>=cMAslo)  //rising
        {
         Print("BUY  Order started  ",Ask);
         OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,"BC Buy ",16123,0,White);
         if(GetLastError()==0)Comment("BC_BUY  Order opened : ",Ask);
        }
      if (pMAfst>=cMAslo && cMAfst<=cMAslo)  //falling
        {
         Print("SELL Order started  ",Bid);
         OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0,"BC Sell",16321,0,Red);
         if(GetLastError()==0)Comment("BC_SELL Order opened : ",Bid );
        }
     }
   return(0);
  }
//+------------------------------------------------------------------+

Profitability Reports

USD/CHF Jul 2025 - Sep 2025
2.24
Total Trades 207
Won Trades 176
Lost trades 31
Win Rate 85.02 %
Expected payoff 0.71
Gross Profit 265.62
Gross Loss -118.46
Total Net Profit 147.16
-100%
-50%
0%
50%
100%
USD/CAD Oct 2024 - Jan 2025
1.57
Total Trades 412
Won Trades 192
Lost trades 220
Win Rate 46.60 %
Expected payoff 0.38
Gross Profit 433.75
Gross Loss -276.39
Total Net Profit 157.36
-100%
-50%
0%
50%
100%
GBP/CAD Jan 2025 - Jul 2025
1.49
Total Trades 279
Won Trades 166
Lost trades 113
Win Rate 59.50 %
Expected payoff 1.08
Gross Profit 911.73
Gross Loss -609.90
Total Net Profit 301.83
-100%
-50%
0%
50%
100%
GBP/USD Jan 2025 - Jul 2025
1.19
Total Trades 275
Won Trades 118
Lost trades 157
Win Rate 42.91 %
Expected payoff 0.70
Gross Profit 1228.60
Gross Loss -1036.60
Total Net Profit 192.00
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
1.11
Total Trades 323
Won Trades 179
Lost trades 144
Win Rate 55.42 %
Expected payoff 0.16
Gross Profit 532.80
Gross Loss -480.40
Total Net Profit 52.40
-100%
-50%
0%
50%
100%
GBP/CAD Jul 2025 - Sep 2025
0.84
Total Trades 276
Won Trades 153
Lost trades 123
Win Rate 55.43 %
Expected payoff -0.71
Gross Profit 988.24
Gross Loss -1182.96
Total Net Profit -194.72
-100%
-50%
0%
50%
100%
EUR/USD Jan 2025 - Jul 2025
0.62
Total Trades 148
Won Trades 8
Lost trades 140
Win Rate 5.41 %
Expected payoff -1.43
Gross Profit 348.40
Gross Loss -559.80
Total Net Profit -211.40
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
0.39
Total Trades 258
Won Trades 6
Lost trades 252
Win Rate 2.33 %
Expected payoff -2.18
Gross Profit 364.66
Gross Loss -926.92
Total Net Profit -562.26
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.34
Total Trades 474
Won Trades 12
Lost trades 462
Win Rate 2.53 %
Expected payoff -1.69
Gross Profit 419.90
Gross Loss -1219.80
Total Net Profit -799.90
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
0.30
Total Trades 260
Won Trades 2
Lost trades 258
Win Rate 0.77 %
Expected payoff -1.62
Gross Profit 177.70
Gross Loss -598.60
Total Net Profit -420.90
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
0.29
Total Trades 260
Won Trades 5
Lost trades 255
Win Rate 1.92 %
Expected payoff -1.83
Gross Profit 192.80
Gross Loss -669.00
Total Net Profit -476.20
-100%
-50%
0%
50%
100%
USD/CHF Jan 2025 - Jul 2025
0.28
Total Trades 198
Won Trades 8
Lost trades 190
Win Rate 4.04 %
Expected payoff -3.37
Gross Profit 261.38
Gross Loss -928.41
Total Net Profit -667.03
-100%
-50%
0%
50%
100%
GBP/AUD Jan 2025 - Jul 2025
0.20
Total Trades 256
Won Trades 1
Lost trades 255
Win Rate 0.39 %
Expected payoff -2.01
Gross Profit 127.26
Gross Loss -642.75
Total Net Profit -515.49
-100%
-50%
0%
50%
100%
USD/JPY Jul 2025 - Sep 2025
0.17
Total Trades 362
Won Trades 4
Lost trades 358
Win Rate 1.10 %
Expected payoff -2.89
Gross Profit 218.70
Gross Loss -1263.62
Total Net Profit -1044.92
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.13
Total Trades 500
Won Trades 5
Lost trades 495
Win Rate 1.00 %
Expected payoff -2.72
Gross Profit 202.30
Gross Loss -1560.40
Total Net Profit -1358.10
-100%
-50%
0%
50%
100%
USD/CHF Jul 2025 - Sep 2025
0.11
Total Trades 192
Won Trades 3
Lost trades 189
Win Rate 1.56 %
Expected payoff -2.72
Gross Profit 64.58
Gross Loss -587.43
Total Net Profit -522.85
-100%
-50%
0%
50%
100%
USD/CAD Jul 2025 - Sep 2025
0.09
Total Trades 198
Won Trades 1
Lost trades 197
Win Rate 0.51 %
Expected payoff -0.81
Gross Profit 16.56
Gross Loss -176.14
Total Net Profit -159.58
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.03
Total Trades 251
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -2.88
Gross Profit 19.80
Gross Loss -742.70
Total Net Profit -722.90
-100%
-50%
0%
50%
100%
GBP/CAD Jul 2025 - Sep 2025
0.03
Total Trades 114
Won Trades 1
Lost trades 113
Win Rate 0.88 %
Expected payoff -9.86
Gross Profit 29.64
Gross Loss -1153.22
Total Net Profit -1123.58
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
0.01
Total Trades 238
Won Trades 1
Lost trades 237
Win Rate 0.42 %
Expected payoff -4.85
Gross Profit 14.64
Gross Loss -1169.85
Total Net Profit -1155.21
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
0.01
Total Trades 500
Won Trades 2
Lost trades 498
Win Rate 0.40 %
Expected payoff -2.67
Gross Profit 6.90
Gross Loss -1340.40
Total Net Profit -1333.50
-100%
-50%
0%
50%
100%
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%
AUD/USD Jan 2025 - Jul 2025
0.00
Total Trades 407
Won Trades 1
Lost trades 406
Win Rate 0.25 %
Expected payoff -4.82
Gross Profit 1.20
Gross Loss -1962.70
Total Net Profit -1961.50
-100%
-50%
0%
50%
100%
NZD/USD Jan 2025 - Jul 2025
0.00
Total Trades 500
Won Trades 1
Lost trades 499
Win Rate 0.20 %
Expected payoff -2.65
Gross Profit 3.20
Gross Loss -1328.80
Total Net Profit -1325.60
-100%
-50%
0%
50%
100%
USD/CAD Jan 2025 - Jul 2025
0.00
Total Trades 364
Won Trades 0
Lost trades 364
Win Rate 0.00 %
Expected payoff -2.57
Gross Profit 0.00
Gross Loss -936.76
Total Net Profit -936.76
-100%
-50%
0%
50%
100%
USD/JPY Jan 2025 - Jul 2025
0.00
Total Trades 347
Won Trades 17
Lost trades 330
Win Rate 4.90 %
Expected payoff -3.92
Gross Profit 1.52
Gross Loss -1361.99
Total Net Profit -1360.47
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.00
Total Trades 460
Won Trades 0
Lost trades 460
Win Rate 0.00 %
Expected payoff -1.87
Gross Profit 0.00
Gross Loss -859.80
Total Net Profit -859.80
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
0.00
Total Trades 488
Won Trades 0
Lost trades 488
Win Rate 0.00 %
Expected payoff -3.05
Gross Profit 0.00
Gross Loss -1487.70
Total Net Profit -1487.70
-100%
-50%
0%
50%
100%
USD/JPY Jul 2025 - Sep 2025
0.00
Total Trades 381
Won Trades 0
Lost trades 381
Win Rate 0.00 %
Expected payoff -1.33
Gross Profit 0.00
Gross Loss -507.25
Total Net Profit -507.25
-100%
-50%
0%
50%
100%

Comments