AO_CCi_Pivot.1

Author: Copyright � 2006, Shahin Monsef & David Stanley
Profit factor:
0.72
Price Data Components
Series array that contains close prices for each barSeries array that contains the highest prices of each barSeries array that contains the lowest prices of each bar
Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reachedIt Closes Orders by itself
Indicators Used
Commodity channel index
7 Views
0 Downloads
0 Favorites
AO_CCi_Pivot.1
/*-----------------------------+
|			       |
| Shared by www.Aptrafx.com    |
|			       |
+------------------------------*/

#property copyright "Copyright © 2006, Shahin Monsef & David Stanley"
#property link               "shahinonsef@hotmail.com xxdavidxsxx@yahoo.com"
//-----input parameters

extern double Lots=1;
extern double TrailingStop=35;
//+-------------------------------------+
int start()
{
int slip=3;
int TrailingStop=35;

double ao  =iAO (NULL,0,0);
double ao1 =iAO (NULL,0,1);

double cci =iCCI(NULL,0,55,PRICE_CLOSE,0);
double cci1=iCCI(NULL,0,55,PRICE_CLOSE,1);

double   PrevPrice=0, PrevHigh=0, PrevLow=0, Pivot=0, Price=0;
PrevPrice = iClose(NULL,PERIOD_D1,1);
PrevHigh  = iHigh(NULL,PERIOD_D1,1);
PrevLow   = iLow(NULL,PERIOD_D1,1);
Pivot = (PrevHigh + PrevLow + PrevPrice)/3;
Price = iClose(NULL,PERIOD_H1,1);

if(OrdersTotal()==0){
  if( ao>0 && cci>=0 && Ask>Pivot && (ao1<0 || cci1<=0 || Price<Pivot)) 
   OrderSend(Symbol(),OP_BUY ,.1,Ask,5,0,0,"",0,0,Green);
       
        
         
  if( ao<0 && cci<=0 && Ask<Pivot && (ao1>0 || cci1>=0 || Price>Pivot)) 
  OrderSend(Symbol(),OP_SELL,.1,Bid,5,0,0,"",0,0,Blue);
        
}else{
  for(int i=0;i<OrdersTotal();i++){
    if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break;
    if(OrderSymbol()!=Symbol()) continue;
    if(OrderType()==OP_BUY )
      if(ao<0 && cci<=0 && Ask<Pivot && (ao1>0 || cci1>=0 || Price>Pivot)) OrderClose(OrderTicket(),OrderLots(),Bid,4,Green);
    if(OrderType()==OP_SELL)
      if(ao>0 && cci>=0 && Ask>Pivot && (ao1<0 || cci1<=0 || Price<Pivot)) OrderClose(OrderTicket(),OrderLots(),Ask,4,Blue);
  }
}
}

Profitability Reports

USD/JPY Jul 2025 - Sep 2025
0.98
Total Trades 85
Won Trades 26
Lost trades 59
Win Rate 30.59 %
Expected payoff -0.29
Gross Profit 986.65
Gross Loss -1011.11
Total Net Profit -24.46
-100%
-50%
0%
50%
100%
USD/CHF Jul 2025 - Sep 2025
1.02
Total Trades 76
Won Trades 23
Lost trades 53
Win Rate 30.26 %
Expected payoff 0.17
Gross Profit 818.74
Gross Loss -805.76
Total Net Profit 12.98
-100%
-50%
0%
50%
100%
USD/CAD Jul 2025 - Sep 2025
0.87
Total Trades 83
Won Trades 20
Lost trades 63
Win Rate 24.10 %
Expected payoff -1.06
Gross Profit 584.42
Gross Loss -672.44
Total Net Profit -88.02
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
1.12
Total Trades 76
Won Trades 22
Lost trades 54
Win Rate 28.95 %
Expected payoff 0.97
Gross Profit 704.50
Gross Loss -630.50
Total Net Profit 74.00
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
0.93
Total Trades 83
Won Trades 23
Lost trades 60
Win Rate 27.71 %
Expected payoff -1.06
Gross Profit 1207.90
Gross Loss -1296.00
Total Net Profit -88.10
-100%
-50%
0%
50%
100%
GBP/CAD Jul 2025 - Sep 2025
0.92
Total Trades 50
Won Trades 14
Lost trades 36
Win Rate 28.00 %
Expected payoff -1.44
Gross Profit 820.01
Gross Loss -892.24
Total Net Profit -72.23
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
0.62
Total Trades 86
Won Trades 21
Lost trades 65
Win Rate 24.42 %
Expected payoff -5.83
Gross Profit 803.79
Gross Loss -1304.88
Total Net Profit -501.09
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
0.00
Total Trades 8
Won Trades 2
Lost trades 6
Win Rate 25.00 %
Expected payoff -13192.89
Gross Profit 32.80
Gross Loss -105575.90
Total Net Profit -105543.10
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.93
Total Trades 90
Won Trades 26
Lost trades 64
Win Rate 28.89 %
Expected payoff -0.63
Gross Profit 705.90
Gross Loss -762.90
Total Net Profit -57.00
-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%

Comments