zzz001works

Author: Ron Thompson
Profit factor:
0.46
Orders Execution
Checks for the total of open ordersIt Closes Orders by itself It automatically opens orders when conditions are reached
Indicators Used
Commodity channel index
2 Views
0 Downloads
0 Favorites
zzz001works
/*-----------------------------+
|			       |
| Shared by www.Aptrafx.com    |
|			       |
+------------------------------*/

//+------------------------------------------------------------------+
//| 1MA Expert                               |
//+------------------------------------------------------------------+
#property copyright "Ron Thompson"
#property link      "http://www.lightpatch.com/forex"

// User Input
extern double Lots = 0.1;

// Global scope
double barmove0 = 0;
double barmove1 = 0;



//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//|------------------------------------------------------------------|

int init()
  {
   return(0);
  }


//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
   return(0);
  }


//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+

int start()
  {

   bool     rising=false;
   bool    falling=false;
   bool      cross=false;
   
   double cCI0;
   double cCI1;
   
   int      cnt=0;

   // Error checking
   if(AccountFreeMargin()<(1000*Lots))        {Print("-----NO MONEY"); return(0);}
   if(Bars<100)                               {Print("-----NO BARS "); return(0);}
   if(barmove0==Open[0] && barmove1==Open[1]) {                        return(0);}

   // bars moved, update current position
   barmove0=Open[0];
   barmove1=Open[1];

   cCI0=iCCI(Symbol(),0,30,PRICE_OPEN,0);
   cCI1=iCCI(Symbol(),0,30,PRICE_OPEN,1);

   if (cCI1<0 && cCI0>0) { rising=true; cross=true;}
   if (cCI1>0 && cCI0<0) {falling=true; cross=true;}
   
   if (cross)
     {
      // Does the Symbol() have an open order
      for(cnt=0;cnt<OrdersTotal();cnt++)
        {
         OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
         if(OrderSymbol()==Symbol())
           {
            if (OrderType()==0) {OrderClose(OrderTicket(),Lots,Bid,3,White);}
            if (OrderType()==1) {OrderClose(OrderTicket(),Lots,Ask,3,Red);}
           }
        }
     }
   

   if (rising)  OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,"ZZZ100",11123,0,White);
   if (falling) OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0,"ZZZ100",11321,0,Red);
   
   
   return(0);
  }

Profitability Reports

GBP/CAD Jul 2025 - Sep 2025
0.21
Total Trades 292
Won Trades 30
Lost trades 262
Win Rate 10.27 %
Expected payoff -11.50
Gross Profit 908.83
Gross Loss -4266.93
Total Net Profit -3358.10
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
0.30
Total Trades 276
Won Trades 35
Lost trades 241
Win Rate 12.68 %
Expected payoff -9.83
Gross Profit 1165.60
Gross Loss -3878.31
Total Net Profit -2712.71
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
0.00
Total Trades 29
Won Trades 7
Lost trades 22
Win Rate 24.14 %
Expected payoff -3636.09
Gross Profit 80.00
Gross Loss -105526.60
Total Net Profit -105446.60
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.54
Total Trades 321
Won Trades 56
Lost trades 265
Win Rate 17.45 %
Expected payoff -2.55
Gross Profit 974.70
Gross Loss -1791.80
Total Net Profit -817.10
-100%
-50%
0%
50%
100%
USD/CAD Oct 2024 - Jan 2025
0.83
Total Trades 122
Won Trades 29
Lost trades 93
Win Rate 23.77 %
Expected payoff -1.11
Gross Profit 681.36
Gross Loss -817.38
Total Net Profit -136.02
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.47
Total Trades 142
Won Trades 25
Lost trades 117
Win Rate 17.61 %
Expected payoff -9.11
Gross Profit 1127.50
Gross Loss -2420.80
Total Net Profit -1293.30
-100%
-50%
0%
50%
100%
GBP/CAD Oct 2024 - Jan 2025
0.71
Total Trades 139
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -4.02
Gross Profit 1336.64
Gross Loss -1895.82
Total Net Profit -559.18
-100%
-50%
0%
50%
100%
AUD/USD Oct 2024 - Jan 2025
0.61
Total Trades 146
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -3.13
Gross Profit 721.20
Gross Loss -1177.60
Total Net Profit -456.40
-100%
-50%
0%
50%
100%

Comments