Author: David_Angelic Enegy
Profit factor:
0.71
Orders Execution
It Closes Orders by itself Checks for the total of open ordersIt automatically opens orders when conditions are reached
Indicators Used
Movement directional index
8 Views
0 Downloads
0 Favorites
AE_ADX
//+------------------------------------------------------------------+
//|                                                       AE_ADX.mq4 |
//|                                              David_Angelic Enegy |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "David_Angelic Enegy"
#property link      ""
extern int       magic = 2; 
extern int       StopLoss = 2000;
extern int       TakeProfit = 2000;
extern double    Lot = 0.1;
//----------------------------
extern int       ADX=1;
extern int       ADX_period=14;
extern double    Line=30;


extern bool      razvorot=true;




//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
   
           //---------------------------------razvorot----------------------------------------------
  OrderSelect(SELECT_BY_POS,MODE_TRADES);
  int Order_mode=OrderType();
  if(razvorot==true)
  {
   
  if( iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_PLUSDI,1)<iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MINUSDI,1)||iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MAIN,1)<iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MAIN,2)&& Order_mode==OP_BUY)
  {
    OrderSelect(SELECT_BY_POS,MODE_TRADES); 
  if (Order_mode==OP_BUY) { OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),3,Blue); }
  }
  
  if(iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_PLUSDI,1)>iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MINUSDI,1)||iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MAIN,1)<iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MAIN,2)&& Order_mode==OP_SELL)//
  {
    OrderSelect(SELECT_BY_POS,MODE_TRADES); 
    if (Order_mode==OP_SELL) { OrderClose(OrderTicket(),OrderLots(),OrderClosePrice(),3,Red); }
  }
  }
  //--------------------------------------------------------------
   //-------------------------------îòêðûòèå ïîçèöèé-----------------------------------------------------------
   OrderSelect(SELECT_BY_POS,MODE_TRADES); 

   int Total=OrdersTotal(); 

   if(Total<1)
   {
   if(iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_PLUSDI,1)>iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MINUSDI,1)&&iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MAIN,1)>Line&&iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MAIN,1)>iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MAIN,2)) 
   {
   
   OrderSend(Symbol(),OP_BUY,Lot,Ask,3,Ask-StopLoss*Point,Ask+TakeProfit*Point,"òåñò",magic,Green);

    }
    
      if(iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_PLUSDI,1)<iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MINUSDI,1)&&iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MAIN,1)>Line&&iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MAIN,1)>iADX(NULL,0,ADX_period,PRICE_CLOSE,MODE_MAIN,2))
    {
   OrderSend(Symbol(),OP_SELL,Lot,Bid,3,Bid+StopLoss*Point,Bid-TakeProfit*Point,"òåñò",magic,Green);
   
    }
  }

//----

//----
   return(0);
  }
//+------------------------------------------------------------------+

Profitability Reports

USD/JPY Jul 2025 - Sep 2025
0.81
Total Trades 106
Won Trades 34
Lost trades 72
Win Rate 32.08 %
Expected payoff -1.42
Gross Profit 635.08
Gross Loss -785.77
Total Net Profit -150.69
-100%
-50%
0%
50%
100%
USD/CHF Jul 2025 - Sep 2025
0.61
Total Trades 83
Won Trades 22
Lost trades 61
Win Rate 26.51 %
Expected payoff -2.87
Gross Profit 376.78
Gross Loss -615.20
Total Net Profit -238.42
-100%
-50%
0%
50%
100%
USD/CAD Jul 2025 - Sep 2025
0.47
Total Trades 84
Won Trades 29
Lost trades 55
Win Rate 34.52 %
Expected payoff -2.82
Gross Profit 208.20
Gross Loss -445.37
Total Net Profit -237.17
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
0.66
Total Trades 83
Won Trades 19
Lost trades 64
Win Rate 22.89 %
Expected payoff -1.84
Gross Profit 290.80
Gross Loss -443.70
Total Net Profit -152.90
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
0.45
Total Trades 107
Won Trades 26
Lost trades 81
Win Rate 24.30 %
Expected payoff -4.47
Gross Profit 387.90
Gross Loss -866.00
Total Net Profit -478.10
-100%
-50%
0%
50%
100%
GBP/CAD Jul 2025 - Sep 2025
0.48
Total Trades 92
Won Trades 25
Lost trades 67
Win Rate 27.17 %
Expected payoff -3.91
Gross Profit 333.07
Gross Loss -692.75
Total Net Profit -359.68
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
0.62
Total Trades 94
Won Trades 32
Lost trades 62
Win Rate 34.04 %
Expected payoff -2.93
Gross Profit 450.71
Gross Loss -726.38
Total Net Profit -275.67
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
0.99
Total Trades 568
Won Trades 264
Lost trades 304
Win Rate 46.48 %
Expected payoff -0.65
Gross Profit 48350.90
Gross Loss -48718.70
Total Net Profit -367.80
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.69
Total Trades 81
Won Trades 25
Lost trades 56
Win Rate 30.86 %
Expected payoff -1.32
Gross Profit 233.80
Gross Loss -341.00
Total Net Profit -107.20
-100%
-50%
0%
50%
100%
USD/JPY Jan 2025 - Jul 2025
1.06
Total Trades 197
Won Trades 80
Lost trades 117
Win Rate 40.61 %
Expected payoff 0.56
Gross Profit 1818.90
Gross Loss -1708.53
Total Net Profit 110.37
-100%
-50%
0%
50%
100%

Comments