Author: FORTRADER.RU
Profit factor:
0.57
Orders Execution
Checks for the total of open ordersIt automatically opens orders when conditions are reachedChecks for the total of closed ordersIt can change open orders parameters, due to possible stepping strategyIt Closes Orders by itself
Indicators Used
Bill Williams Accelerator/Decelerator oscillatorStochastic oscillator
13 Views
0 Downloads
0 Favorites
OzFx
//+------------------------------------------------------------------+
//|                                                         OzFx.mq4 |
//|                                                     FORTRADER.RU |
//|                                          http://www.FORTRADER.RU |
//+------------------------------------------------------------------+
#property copyright "FORTRADER.RU"
#property link      "http://www.FORTRADER.RU"


double AC,Stoh,ACPrev;
extern int stoploss=100;
extern int point=50;
extern int sto=5;

int stopb,bar,stops,modok;
int comment;
 string com;
int start()
  {
  
  AC=iAC(NULL, 0, 1);
  ACPrev=iAC(NULL, 0, 2);
  Stoh=iStochastic(NULL,0,sto,3,3,MODE_SMA,0,MODE_MAIN,1);
    if(OrdersTotal()<1){stopb=0;  stops=0;}
  
  
  if(Stoh>50 && AC>ACPrev && AC>0 && ACPrev<0 && stopb==0 && bar!=Bars)
  {

  comment=comment+1;
   com="aa"+comment;

  OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-stoploss*Point,Ask+point*Point,com,0,0,White);
  OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-stoploss*Point,Ask+(point*2)*Point,"",0,0,White);
  OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-stoploss*Point,Ask+(point*3)*Point,"",0,0,White);
  OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-stoploss*Point,Ask+(point*4)*Point,"",0,0,White);
  OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-stoploss*Point,0,"s",0,0,Green);
  stopb=1;
  bar=Bars;
  }
  
  
  if( Stoh<50 && AC<ACPrev && AC<0 && ACPrev>0 && stops==0 && bar!=Bars )
  {  comment=comment+1;
   com="aa"+comment;
  OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Bid+stoploss*Point,Bid-point*Point,com,0,0,Green);
  OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Bid+stoploss*Point,Bid-(point*2)*Point,"",0,45645,Green);
  OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Bid+stoploss*Point,Bid-(point*3)*Point,"",0,45645,Green);
  OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Bid+stoploss*Point,Bid-(point*4)*Point,"",0,456456,Green);
  OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Bid+stoploss*Point,0,"s",0,56456,Green);
  stops=1;
  bar=Bars;
  }
  
 modok=0;
       int i,accTotal=OrdersHistoryTotal();
       for(i=0;i<accTotal;i++)
       { 
         OrderSelect(i, SELECT_BY_POS, MODE_HISTORY);
         string ca=com+"[tp]";
         if(OrderProfit()>10 && OrderComment()==ca){modok=1;}
         
       }
          
  
   for(int cnt=0;cnt<OrdersTotal();cnt++)
     {
      OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);
        {
         if(OrderType()==OP_BUY && modok==1)  
          {
          OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,Blue);
         // OrderClose(OrderTicket(),OrderLots(),Bid,10,Violet); 
          // return(0); 
          }
          if(OrderType()==OP_SELL && modok==1)  
          {
          OrderModify(OrderTicket(),OrderOpenPrice(),OrderOpenPrice(),OrderTakeProfit(),0,Blue);
         // OrderClose(OrderTicket(),OrderLots(),Bid,10,Violet); 
          // return(0); 
          }
          if(OrderType()==OP_BUY && Stoh<50 && AC<ACPrev && AC<0 && ACPrev>0 )  
          {
          OrderClose(OrderTicket(),OrderLots(),Bid,10,Violet); 
          }
           if(OrderType()==OP_SELL  && Stoh>50 && AC>ACPrev && AC>0 && ACPrev<0 )   
          {
           OrderClose(OrderTicket(),OrderLots(),Ask,10,Violet); 
           stopb=0;
          }
         }
       }
      
   return(0);
  }

Profitability Reports

USD/JPY Jul 2025 - Sep 2025
0.66
Total Trades 1335
Won Trades 463
Lost trades 872
Win Rate 34.68 %
Expected payoff -1.48
Gross Profit 3854.14
Gross Loss -5835.08
Total Net Profit -1980.94
-100%
-50%
0%
50%
100%
USD/CHF Jul 2025 - Sep 2025
0.59
Total Trades 1260
Won Trades 408
Lost trades 852
Win Rate 32.38 %
Expected payoff -3.06
Gross Profit 5442.15
Gross Loss -9299.11
Total Net Profit -3856.96
-100%
-50%
0%
50%
100%
USD/CAD Jul 2025 - Sep 2025
0.57
Total Trades 1240
Won Trades 384
Lost trades 856
Win Rate 30.97 %
Expected payoff -1.89
Gross Profit 3089.73
Gross Loss -5431.10
Total Net Profit -2341.37
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
0.66
Total Trades 1230
Won Trades 411
Lost trades 819
Win Rate 33.41 %
Expected payoff -1.80
Gross Profit 4374.00
Gross Loss -6588.30
Total Net Profit -2214.30
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
0.77
Total Trades 1250
Won Trades 473
Lost trades 777
Win Rate 37.84 %
Expected payoff -1.32
Gross Profit 5628.80
Gross Loss -7274.60
Total Net Profit -1645.80
-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.39
Total Trades 1320
Won Trades 310
Lost trades 1010
Win Rate 23.48 %
Expected payoff -2.98
Gross Profit 2563.67
Gross Loss -6501.86
Total Net Profit -3938.19
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
0.82
Total Trades 1200
Won Trades 479
Lost trades 721
Win Rate 39.92 %
Expected payoff -1.04
Gross Profit 5567.20
Gross Loss -6809.80
Total Net Profit -1242.60
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.62
Total Trades 1320
Won Trades 458
Lost trades 862
Win Rate 34.70 %
Expected payoff -1.92
Gross Profit 4144.30
Gross Loss -6679.60
Total Net Profit -2535.30
-100%
-50%
0%
50%
100%
USD/CAD Oct 2024 - Jan 2025
0.47
Total Trades 810
Won Trades 213
Lost trades 597
Win Rate 26.30 %
Expected payoff -2.70
Gross Profit 1962.88
Gross Loss -4146.57
Total Net Profit -2183.69
-100%
-50%
0%
50%
100%

Comments