FXAnt 1.3_eurjpy_h1

Author: Copyright � 2006, Renato P. dos Santos
Profit factor:
0.36
Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reached
Indicators Used
Stochastic oscillator
13 Views
0 Downloads
0 Favorites
FXAnt 1.3_eurjpy_h1
//+------------------------------------------------------------------+
//|                                                        FXAnt.mq4 |
//|                           Copyright © 2006, Renato P. dos Santos |
//|                                            http://www.reniza.com |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2006, Renato P. dos Santos"
#property link      "http://www.reniza.com"

extern int MaxTrades=2;
extern double lots=1;
extern int stoploss=80,takeprofit=70;
extern bool UseHourTrade = False;
extern int  FromHourTrade = 8;
extern int  ToHourTrade = 18;
extern bool UseStoFilter=true;
extern int StoTF=240,K=5,D=3,SL=3,Confirm=1;

extern bool UseBothLinesMode=false;


int ID=983786;

void deinit() {
   Comment("");
}

int orderscnt(){
int cnt=0;
   for(int i =0;i<OrdersTotal();i++){
      if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)){
         if(OrderSymbol()==Symbol() && ID==OrderMagicNumber()){
            cnt++;
         }
      }
   }
   return(cnt);
}

double sto(int type,int period){
   double 
   sto1 = iStochastic(NULL,StoTF,K,D,SL,MODE_SMA,0,MODE_MAIN,period),
   sto2 = iStochastic(NULL,StoTF,K,D,SL,MODE_SMA,0,MODE_SIGNAL,period);
   if(type==1)return(sto1);
   if(type==2)return(sto2);
}
   

int start()
  {
  if (UseHourTrade){
   if(!(Hour()>=FromHourTrade&&Hour()<=ToHourTrade)){
   Comment("Non-Trading Hours!");
   return(0);
   }
   }
  int x=Confirm;
  double sl,tp;
   
   
   if (Period() < 30) {Comment("change to M30 or higher pls"); return(0); }
   if (MathMod(Minute(),Period()) >= 0.5*Period()) return(0);

   if ((High[0]-Low[0])>10*Point && Open[0]<(High[0]+Low[0])/2 && Ask < Open[0]){
      if(orderscnt()<MaxTrades && (!UseStoFilter || sto(1,x)>sto(2,x)) && (!UseBothLinesMode || sto(1,x)>80 && sto(2,x)>80) ){
         if(stoploss==0){sl=0;}else{sl=Bid-stoploss*Point;}
         if(takeprofit==0){tp=0;}else{tp=Bid+takeprofit*Point;}
         OrderSend(Symbol(),OP_BUY,lots,Ask,2,sl,tp,"FXAnt",ID,0,Blue); 
      }
   }
   if ((High[0]-Low[0])>10*Point && Open[0]>(High[0]+Low[0])/2 && Bid > Open[0]){
      if(orderscnt()<MaxTrades && (!UseStoFilter || sto(1,x)<sto(2,x)) && (!UseBothLinesMode || sto(1,x)<20 && sto(2,x)<20) ){
         if(stoploss==0){sl=0;}else{sl=Ask+stoploss*Point;}
         if(takeprofit==0){tp=0;}else{tp=Ask-takeprofit*Point;}
         OrderSend(Symbol(),OP_SELL,lots,Bid,2,sl,tp,"FXAnt",ID,0,Red); 
      }
   }
   return(0);
}

Profitability Reports

USD/JPY Jul 2025 - Sep 2025
0.28
Total Trades 303
Won Trades 103
Lost trades 200
Win Rate 33.99 %
Expected payoff -31.36
Gross Profit 3755.21
Gross Loss -13256.43
Total Net Profit -9501.22
-100%
-50%
0%
50%
100%
USD/CHF Jul 2025 - Sep 2025
0.27
Total Trades 152
Won Trades 58
Lost trades 94
Win Rate 38.16 %
Expected payoff -59.23
Gross Profit 3281.96
Gross Loss -12284.26
Total Net Profit -9002.30
-100%
-50%
0%
50%
100%
USD/CAD Jul 2025 - Sep 2025
0.31
Total Trades 305
Won Trades 116
Lost trades 189
Win Rate 38.03 %
Expected payoff -31.15
Gross Profit 4245.10
Gross Loss -13745.65
Total Net Profit -9500.55
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
0.40
Total Trades 291
Won Trades 123
Lost trades 168
Win Rate 42.27 %
Expected payoff -33.16
Gross Profit 6519.00
Gross Loss -16170.00
Total Net Profit -9651.00
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
0.38
Total Trades 260
Won Trades 101
Lost trades 159
Win Rate 38.85 %
Expected payoff -35.58
Gross Profit 5656.00
Gross Loss -14907.00
Total Net Profit -9251.00
-100%
-50%
0%
50%
100%
GBP/CAD Jul 2025 - Sep 2025
0.00
Total Trades 86
Won Trades 0
Lost trades 86
Win Rate 0.00 %
Expected payoff -112.12
Gross Profit 0.00
Gross Loss -9642.37
Total Net Profit -9642.37
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
0.18
Total Trades 260
Won Trades 121
Lost trades 139
Win Rate 46.54 %
Expected payoff -35.59
Gross Profit 1970.93
Gross Loss -11225.38
Total Net Profit -9254.45
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
0.38
Total Trades 264
Won Trades 102
Lost trades 162
Win Rate 38.64 %
Expected payoff -35.44
Gross Profit 5712.00
Gross Loss -15067.00
Total Net Profit -9355.00
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.41
Total Trades 291
Won Trades 118
Lost trades 173
Win Rate 40.55 %
Expected payoff -33.00
Gross Profit 6608.00
Gross Loss -16210.00
Total Net Profit -9602.00
-100%
-50%
0%
50%
100%
USD/CAD Oct 2024 - Jan 2025
0.41
Total Trades 403
Won Trades 183
Lost trades 220
Win Rate 45.41 %
Expected payoff -23.57
Gross Profit 6485.84
Gross Loss -15986.50
Total Net Profit -9500.66
-100%
-50%
0%
50%
100%

Comments