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/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/CAD Oct 2024 - Jan 2025
1.05
Total Trades 98
Won Trades 37
Lost trades 61
Win Rate 37.76 %
Expected payoff 0.17
Gross Profit 387.72
Gross Loss -370.61
Total Net Profit 17.11
-100%
-50%
0%
50%
100%
EUR/USD Jan 2025 - Jul 2025
1.00
Total Trades 3506
Won Trades 1713
Lost trades 1793
Win Rate 48.86 %
Expected payoff -0.14
Gross Profit 331378.40
Gross Loss -331878.80
Total Net Profit -500.40
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.99
Total Trades 90
Won Trades 0
Lost trades 0
Win Rate 0.00 %
Expected payoff -0.06
Gross Profit 753.10
Gross Loss -758.90
Total Net Profit -5.80
-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%
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%
USD/JPY Jul 2025 - Sep 2025
0.98
Total Trades 175
Won Trades 64
Lost trades 111
Win Rate 36.57 %
Expected payoff -0.11
Gross Profit 760.59
Gross Loss -779.24
Total Net Profit -18.65
-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/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%
AUD/USD Jan 2025 - Jul 2025
0.80
Total Trades 172
Won Trades 50
Lost trades 122
Win Rate 29.07 %
Expected payoff -1.23
Gross Profit 872.10
Gross Loss -1084.20
Total Net Profit -212.10
-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%
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/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%
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%
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%
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/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%
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/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%
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/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%
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%
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%
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%
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%
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/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%
NZD/USD Oct 2024 - Jan 2025
0.40
Total Trades 105
Won Trades 22
Lost trades 83
Win Rate 20.95 %
Expected payoff -4.15
Gross Profit 285.90
Gross Loss -721.50
Total Net Profit -435.60
-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%
USD/CHF Oct 2024 - Jan 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%

Comments