Author: David_Angelic Enegy
Profit factor:
0.74
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

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%
USD/CHF Jan 2025 - Jul 2025
0.90
Total Trades 187
Won Trades 56
Lost trades 131
Win Rate 29.95 %
Expected payoff -0.93
Gross Profit 1551.42
Gross Loss -1725.07
Total Net Profit -173.65
-100%
-50%
0%
50%
100%
USD/CAD Jan 2025 - Jul 2025
0.79
Total Trades 188
Won Trades 64
Lost trades 124
Win Rate 34.04 %
Expected payoff -1.29
Gross Profit 897.51
Gross Loss -1140.04
Total Net Profit -242.53
-100%
-50%
0%
50%
100%
NZD/USD Jan 2025 - Jul 2025
0.63
Total Trades 192
Won Trades 49
Lost trades 143
Win Rate 25.52 %
Expected payoff -2.82
Gross Profit 913.80
Gross Loss -1454.90
Total Net Profit -541.10
-100%
-50%
0%
50%
100%
GBP/USD Jan 2025 - Jul 2025
0.75
Total Trades 176
Won Trades 52
Lost trades 124
Win Rate 29.55 %
Expected payoff -3.14
Gross Profit 1615.00
Gross Loss -2167.70
Total Net Profit -552.70
-100%
-50%
0%
50%
100%
GBP/CAD Jan 2025 - Jul 2025
0.78
Total Trades 165
Won Trades 48
Lost trades 117
Win Rate 29.09 %
Expected payoff -2.03
Gross Profit 1202.81
Gross Loss -1537.60
Total Net Profit -334.79
-100%
-50%
0%
50%
100%
GBP/AUD Jan 2025 - Jul 2025
0.58
Total Trades 194
Won Trades 65
Lost trades 129
Win Rate 33.51 %
Expected payoff -5.18
Gross Profit 1413.91
Gross Loss -2418.26
Total Net Profit -1004.35
-100%
-50%
0%
50%
100%

Comments