Profit factor:
0.66
Orders Execution
Checks for the total of open ordersIt Closes Orders by itself It can change open orders parameters, due to possible stepping strategyIt automatically opens orders when conditions are reached
Miscellaneous
It plays sound alerts
6 Views
0 Downloads
0 Favorites
PROphet
//+------------------------------------------------------------------+
//|                                                      PROphet.mq4 |
//|                                                        PraVedNiK |
//|                                                  taa-34@mail.ru  |        
//+------------------------------------------------------------------+
#property link      "taa-34@mail.ru"
//--------------------------------------------------------------------
 extern bool  daBUY=true;  extern int       x1=9,x2=29,x3=94,x4=125,slb=68; 
//---------------------------------------------------------------------------
  extern bool  daSELL=true; extern int    y1=61,y2=100,y3=117,y4=31,sls=72;       

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
      //-----ÐÓËÜ íà M5_EURUSD------
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
//--------------------------------------------------------------------
   static int  prevtime = 0;    int ticket=0;   double lot=0.1;
//-----------------------------------------------------------------
int start(){    if (Time[0] == prevtime) return(0);    prevtime = Time[0];

    if (! IsTradeAllowed()) { prevtime = Time[1]; MathSrand(TimeCurrent());Sleep(30000 + MathRand());}
//-------------------------------------------------------------------------------------------------

 int total = OrdersTotal(); if(daBUY)BBB(total );if( daSELL)SSS(total ); return(0); } //--end_start--
//-------------------------------------------------------------------------------------------
void BBB(int tot) {  int sprb = MarketInfo(Symbol(), MODE_SPREAD)+2*slb;  int h=Hour();
      
                          
          for (int i = 0; i < tot; i++) { OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
  
      if (OrderSymbol() == Symbol() && OrderMagicNumber() == 74) {//--------------------
      
      if(OrderType()==OP_BUY && h>18)OrderClose(OrderTicket(),OrderLots(),Bid,3);
      
    //----------------------------------------------------------------------------------
    
         if(Bid >(OrderStopLoss() + sprb * Point)  && OrderType()==OP_BUY)
     {   if(!OrderModify(OrderTicket(), OrderOpenPrice(),Bid-slb*Point,0,0,Blue))
                           {Sleep(30000);prevtime=Time[1];}}
    //----------------------------------------------------------------------------------
    
             
                  
         return(0);
     } 
 }//-----------------------------------------------------------------------------------------
       ticket = -1;  RefreshRates();
  //-----------------------------------------------------------------------------------------
  if (Qu(x1,x2,x3,x4)>0 && h>=10 && h<=18 && IsTradeAllowed()) { 
  
      ticket=OrderSend(Symbol(),OP_BUY,lot,Ask,4,Bid-slb*Point,0,"ÄëèííÿÊ", 74, 0, Blue); 
      
                               PlaySound("bil.wav"); 
      
              if (ticket < 0) { Sleep(30000);prevtime = Time[1]; }
                     }    //-- Exit -


 return(0); } 
//-------------------------------------------------------------------------------------------
void SSS(int tot) {   int sprs = MarketInfo(Symbol(), MODE_SPREAD)+2*sls;  int h=Hour();
                          
          for (int i = 0; i < tot; i++) { OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
  
      if (OrderSymbol() == Symbol() && OrderMagicNumber() == 81) {//--------------------
      
    
      if(OrderType()==OP_SELL && h>18)OrderClose(OrderTicket(),OrderLots(),Ask,3);
      
    //----------------------------------------------------------------------------------
    
    
               if(Ask<(OrderStopLoss()-sprs * Point) && OrderType()==OP_SELL)
     {     if(!OrderModify(OrderTicket(),OrderOpenPrice(),Ask+sls*Point,0,0,Blue))
                           {Sleep(30000); prevtime=Time[1];}}
                  
         return(0);
     } 
 }//-----------------------------------------------------------------------------------------
      ticket = -1; RefreshRates();
  //-----------------------------------------------------------------------------------------
   if (Qu(y1,y2,y3,y4)>0 && h>=10 && h<=18 && IsTradeAllowed()) { 
    
      ticket = OrderSend(Symbol(),OP_SELL,lot,Bid,4,Ask+sls*Point,0,"ÊîðîÒûØ", 81, 0, Red); 
      
                          PlaySound("bil.wav"); 
      
                       if (ticket < 0) { Sleep(30000); prevtime = Time[1];}
                         }   //-- Exit -


 return(0); } 
//=====================================================================================================
     double Qu(int q1,int q2,int q3,int q4) {    return ((q1-100)*MathAbs(High[1]-Low[2])+
 (q2-100)*MathAbs(High[3]-Low[2])+(q3-100)*MathAbs(High[2]-Low[1])+(q4-100)*MathAbs(High[2]-Low[3]));}

Profitability Reports

USD/CHF Jul 2025 - Sep 2025
0.63
Total Trades 21
Won Trades 9
Lost trades 12
Win Rate 42.86 %
Expected payoff -2.25
Gross Profit 79.86
Gross Loss -127.04
Total Net Profit -47.18
-100%
-50%
0%
50%
100%
USD/CAD Jul 2025 - Sep 2025
1.00
Total Trades 14
Won Trades 5
Lost trades 9
Win Rate 35.71 %
Expected payoff -0.02
Gross Profit 58.01
Gross Loss -58.22
Total Net Profit -0.21
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
0.37
Total Trades 33
Won Trades 11
Lost trades 22
Win Rate 33.33 %
Expected payoff -3.53
Gross Profit 68.40
Gross Loss -184.80
Total Net Profit -116.40
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
1.76
Total Trades 20
Won Trades 8
Lost trades 12
Win Rate 40.00 %
Expected payoff 3.91
Gross Profit 181.30
Gross Loss -103.20
Total Net Profit 78.10
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
0.05
Total Trades 18
Won Trades 3
Lost trades 15
Win Rate 16.67 %
Expected payoff -7.57
Gross Profit 7.10
Gross Loss -143.35
Total Net Profit -136.25
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
0.33
Total Trades 28
Won Trades 6
Lost trades 22
Win Rate 21.43 %
Expected payoff -4.46
Gross Profit 61.30
Gross Loss -186.20
Total Net Profit -124.90
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.75
Total Trades 24
Won Trades 8
Lost trades 16
Win Rate 33.33 %
Expected payoff -1.27
Gross Profit 90.70
Gross Loss -121.10
Total Net Profit -30.40
-100%
-50%
0%
50%
100%
USD/CAD Oct 2024 - Jan 2025
0.78
Total Trades 13
Won Trades 4
Lost trades 9
Win Rate 30.77 %
Expected payoff -1.14
Gross Profit 51.44
Gross Loss -66.32
Total Net Profit -14.88
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.17
Total Trades 14
Won Trades 4
Lost trades 10
Win Rate 28.57 %
Expected payoff -5.99
Gross Profit 16.90
Gross Loss -100.80
Total Net Profit -83.90
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.88
Total Trades 13
Won Trades 3
Lost trades 10
Win Rate 23.08 %
Expected payoff -0.88
Gross Profit 79.80
Gross Loss -91.20
Total Net Profit -11.40
-100%
-50%
0%
50%
100%

Comments