Author: emsjoflo
Profit factor:
0.65
Orders Execution
Checks for the total of open ordersIt Closes Orders by itself It automatically opens orders when conditions are reached
9 Views
0 Downloads
0 Favorites
NinaEA
/*-----------------------------+
|			       |
| Shared by www.Aptrafx.com    |
|			       |
+------------------------------*/

//+------------------------------------------------------------------+
//|                                                        NinaEA.mq4 |
//|                                                         emsjoflo |
//|                                  automaticforex.invisionzone.com |
//+------------------------------------------------------------------+
#property copyright "emsjoflo"
#property link      "automaticforex.invisionzone.com"

//---- input parameters
extern int       PeriodWATR=10;
extern double    Kwatr=1;
extern int       highlow=0;
extern int       cbars = 1000;
extern int       from  = 0;
extern int       maP  = 50;
extern double    lots=0.1;
extern int       SMAspread=0;
extern int       StopLoss=0;
extern int       Slippage=4;
double   nina, SL=0;
int      i, buys, sells;
//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
   
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
//----
//get moving average info
nina = iCustom(NULL,0,"NINA",PeriodWATR,Kwatr,highlow,cbars,from,maP,0,1)-iCustom(NULL,0,"NINA",PeriodWATR,Kwatr,highlow,cbars,from,maP,1,1);


//check for open orders first 
if (OrdersTotal()>0)
   {
   buys=0;
   sells=0;
   for (i=0;i<OrdersTotal();i++)
      {
      OrderSelect(i,SELECT_BY_POS);
      if (OrderSymbol()==Symbol())
         {
         if (OrderType()== OP_BUY)
            {
            if (nina < 0) OrderClose(OrderTicket(),OrderLots(),Bid,Slippage,Orange);
            else buys++;
            }
         if (OrderType()== OP_SELL) 
            {
            if (nina > 0) OrderClose(OrderTicket(),OrderLots(),Ask,Slippage,Yellow);
            else sells++;
            }
         }
      }
   }
if (nina > 0 && buys == 0)
   {
   Print("Buy condition");
   if (StopLoss >1) SL=Ask-StopLoss*Point;
   OrderSend(Symbol(),OP_BUY,lots,Ask,Slippage,0/*(Ask-StopLoss*Point)*/,0,"NinaEA",123,0,Green);
   }
if (nina < 0 && sells ==0)
   {
   Print ("Sell condition");
   if (StopLoss>1) SL=Bid+StopLoss*Point;
   OrderSend(Symbol(),OP_SELL,lots,Bid,Slippage,0/*(Bid+StopLoss*Point)*/,0,"NinaEA",123,0,Red);
   }   
   
   
   
//----
   return(0);
  }
//+------------------------------------------------------------------+

Profitability Reports

USD/JPY Jul 2025 - Sep 2025
0.80
Total Trades 56
Won Trades 20
Lost trades 36
Win Rate 35.71 %
Expected payoff -3.80
Gross Profit 849.82
Gross Loss -1062.71
Total Net Profit -212.89
-100%
-50%
0%
50%
100%
USD/CHF Jul 2025 - Sep 2025
0.48
Total Trades 42
Won Trades 9
Lost trades 33
Win Rate 21.43 %
Expected payoff -11.87
Gross Profit 459.50
Gross Loss -957.86
Total Net Profit -498.36
-100%
-50%
0%
50%
100%
USD/CAD Jul 2025 - Sep 2025
0.71
Total Trades 46
Won Trades 13
Lost trades 33
Win Rate 28.26 %
Expected payoff -3.87
Gross Profit 434.32
Gross Loss -612.14
Total Net Profit -177.82
-100%
-50%
0%
50%
100%
NZD/USD Jul 2025 - Sep 2025
0.58
Total Trades 46
Won Trades 12
Lost trades 34
Win Rate 26.09 %
Expected payoff -6.17
Gross Profit 395.30
Gross Loss -679.20
Total Net Profit -283.90
-100%
-50%
0%
50%
100%
GBP/USD Jul 2025 - Sep 2025
0.82
Total Trades 44
Won Trades 11
Lost trades 33
Win Rate 25.00 %
Expected payoff -4.39
Gross Profit 882.90
Gross Loss -1075.90
Total Net Profit -193.00
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
0.72
Total Trades 45
Won Trades 13
Lost trades 32
Win Rate 28.89 %
Expected payoff -6.67
Gross Profit 779.95
Gross Loss -1079.96
Total Net Profit -300.01
-100%
-50%
0%
50%
100%
EUR/USD Jul 2025 - Sep 2025
0.00
Total Trades 10
Won Trades 1
Lost trades 9
Win Rate 10.00 %
Expected payoff -10578.01
Gross Profit 11.30
Gross Loss -105791.40
Total Net Profit -105780.10
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.63
Total Trades 44
Won Trades 15
Lost trades 29
Win Rate 34.09 %
Expected payoff -5.71
Gross Profit 426.00
Gross Loss -677.30
Total Net Profit -251.30
-100%
-50%
0%
50%
100%
USD/JPY Jan 2025 - Jul 2025
0.88
Total Trades 152
Won Trades 46
Lost trades 106
Win Rate 30.26 %
Expected payoff -2.54
Gross Profit 2933.97
Gross Loss -3320.17
Total Net Profit -386.20
-100%
-50%
0%
50%
100%
USD/CHF Jan 2025 - Jul 2025
1.07
Total Trades 122
Won Trades 39
Lost trades 83
Win Rate 31.97 %
Expected payoff 1.44
Gross Profit 2849.43
Gross Loss -2673.32
Total Net Profit 176.11
-100%
-50%
0%
50%
100%

Comments