Ninaeatest_www.forex-instruments.info

Author: emsjoflo
Profit factor:
0.71
Orders Execution
Checks for the total of open ordersIt Closes Orders by itself It automatically opens orders when conditions are reached
5 Views
0 Downloads
0 Favorites
Ninaeatest_www.forex-instruments.info
//+------------------------------------------------------------------+
//|                                                        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, ninapast, 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,0,1)-iCustom(NULL,0,"NINA",PeriodWATR,Kwatr,highlow,1,1);
   ninapast=iCustom(NULL,0,"NINA",PeriodWATR,Kwatr,highlow,0,2)-iCustom(NULL,0,"NINA",PeriodWATR,Kwatr,highlow,1,2);
   //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 && ninapast < 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 && ninapast > 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

GBP/CAD Jul 2025 - Sep 2025
1.03
Total Trades 38
Won Trades 8
Lost trades 30
Win Rate 21.05 %
Expected payoff 0.56
Gross Profit 798.85
Gross Loss -777.48
Total Net Profit 21.37
-100%
-50%
0%
50%
100%
GBP/AUD Jul 2025 - Sep 2025
0.67
Total Trades 44
Won Trades 12
Lost trades 32
Win Rate 27.27 %
Expected payoff -7.99
Gross Profit 729.43
Gross Loss -1080.80
Total Net Profit -351.37
-100%
-50%
0%
50%
100%
AUD/USD Jul 2025 - Sep 2025
0.71
Total Trades 43
Won Trades 16
Lost trades 27
Win Rate 37.21 %
Expected payoff -4.11
Gross Profit 442.80
Gross Loss -619.60
Total Net Profit -176.80
-100%
-50%
0%
50%
100%
NZD/USD Jan 2025 - Jul 2025
0.90
Total Trades 131
Won Trades 42
Lost trades 89
Win Rate 32.06 %
Expected payoff -1.41
Gross Profit 1758.60
Gross Loss -1943.90
Total Net Profit -185.30
-100%
-50%
0%
50%
100%
GBP/USD Jan 2025 - Jul 2025
0.86
Total Trades 126
Won Trades 36
Lost trades 90
Win Rate 28.57 %
Expected payoff -3.73
Gross Profit 2862.40
Gross Loss -3332.80
Total Net Profit -470.40
-100%
-50%
0%
50%
100%
GBP/CAD Jan 2025 - Jul 2025
0.55
Total Trades 126
Won Trades 31
Lost trades 95
Win Rate 24.60 %
Expected payoff -14.12
Gross Profit 2145.39
Gross Loss -3924.28
Total Net Profit -1778.89
-100%
-50%
0%
50%
100%
EUR/USD Jan 2025 - Jul 2025
0.01
Total Trades 38
Won Trades 15
Lost trades 23
Win Rate 39.47 %
Expected payoff -2547.44
Gross Profit 960.50
Gross Loss -97763.10
Total Net Profit -96802.60
-100%
-50%
0%
50%
100%
USD/CAD Oct 2024 - Jan 2025
1.21
Total Trades 61
Won Trades 19
Lost trades 42
Win Rate 31.15 %
Expected payoff 2.53
Gross Profit 881.61
Gross Loss -726.98
Total Net Profit 154.63
-100%
-50%
0%
50%
100%
NZD/USD Oct 2024 - Jan 2025
0.60
Total Trades 55
Won Trades 18
Lost trades 37
Win Rate 32.73 %
Expected payoff -5.63
Gross Profit 468.60
Gross Loss -778.30
Total Net Profit -309.70
-100%
-50%
0%
50%
100%
GBP/USD Oct 2024 - Jan 2025
0.62
Total Trades 70
Won Trades 20
Lost trades 50
Win Rate 28.57 %
Expected payoff -8.65
Gross Profit 978.60
Gross Loss -1583.80
Total Net Profit -605.20
-100%
-50%
0%
50%
100%

Comments