Author: David_Angelic Enegy
Profit factor:
0.68
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/CAD Jul 2025 - Sep 2025
0.57
Total Trades 150
Won Trades 54
Lost trades 96
Win Rate 36.00 %
Expected payoff -1.51
Gross Profit 298.75
Gross Loss -524.65
Total Net Profit -225.90
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
0.58
Total Trades 154
Won Trades 44
Lost trades 110
Win Rate 28.57 %
Expected payoff -1.71
Gross Profit 357.20
Gross Loss -620.20
Total Net Profit -263.00
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
0.61
Total Trades 165
Won Trades 40
Lost trades 125
Win Rate 24.24 %
Expected payoff -2.71
Gross Profit 700.40
Gross Loss -1147.10
Total Net Profit -446.70
-100%
-50%
0%
50%
100%
GBP/CAD Jul 2025 - Sep 2025
0.20
Total Trades 153
Won Trades 22
Lost trades 131
Win Rate 14.38 %
Expected payoff -8.82
Gross Profit 336.71
Gross Loss -1685.86
Total Net Profit -1349.15
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
0.45
Total Trades 183
Won Trades 43
Lost trades 140
Win Rate 23.50 %
Expected payoff -3.55
Gross Profit 531.75
Gross Loss -1181.71
Total Net Profit -649.96
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
0.99
Total Trades 827
Won Trades 381
Lost trades 446
Win Rate 46.07 %
Expected payoff -0.47
Gross Profit 66388.90
Gross Loss -66774.80
Total Net Profit -385.90
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.62
Total Trades 158
Won Trades 45
Lost trades 113
Win Rate 28.48 %
Expected payoff -1.33
Gross Profit 341.60
Gross Loss -551.30
Total Net Profit -209.70
-100%
-50%
0%
50%
100%
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%

Comments