Hello! Anybody can help me code this EA, Please!

 

I have this EA. This EA open only one trade at once. I want to open multiple trade at once from multiple currency charts whenever MA crossover. But this EA only open one trade and neglect other signals.

Highly appreciate your kind help!

//+------------------------------------------------------------------+
//|                                                         MA50.mq4 |
//|                        Copyright 2018, MetaQuotes Software Corp. |
//|                                             https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2018, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict

input double Lots     = 0.02;
input double Profit   = 50;
input double Stop     = 20;
input double Trail    = 15;
//input double Trigger  = 10;
input int Slippage = 4;
//input int MaxTrade = 20;
//input bool AddTrade = true;
//input double Martingale = 1;
input int emaPrd = 9;
input int sigPrd = 100;
//input int MAperiodExt = 5;

   datetime T;
   double pips=0;
   int multi, od;
//+------------------------------------------------------------------+
//| Start Function                                                   |
//+------------------------------------------------------------------+
int start()
   {
   int ticket;
   bool tt=OrdersTotal();
   double myPoint;
   double ema1, ema2, sig1, sig2, trend;
   
   ema1 = iMA(NULL, 0, emaPrd, 0, MODE_EMA, PRICE_CLOSE, 1);
   ema2 = iMA(NULL, 0, emaPrd, 0, MODE_EMA, PRICE_CLOSE, 2);
   sig1 = iMA(NULL, 0, sigPrd, 0, MODE_EMA, PRICE_CLOSE, 1);
   sig2 = iMA(NULL, 0, sigPrd, 0, MODE_EMA, PRICE_CLOSE, 2);
   trend = iMA(NULL, 0, 800, 0, MODE_EMA, PRICE_CLOSE, 1);
      
   //--- check for chart data
   if(Bars<100 || IsTradeAllowed()==false)
      return(0);
   
   if (Digits < 4) myPoint = 0.01;
   else myPoint = 0.0001; 
  
//+------------------------------------------------------------------+
//| Check Conditions to Open First Order                             |
//+------------------------------------------------------------------+
   if(tt==false && T!=Time[0])
      {
      //-- Sell Condition
      if(ema2>sig2 && ema1<sig1 && Close[1]<trend)
         {
         ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,Bid+(Stop*myPoint),Bid-(Profit*myPoint),NULL,0,0,Red);
         T=Time[0];
         Print(GetLastError());
         return(0);
         }
      //-- Buy Condition
      if(ema2<sig2 && ema1>sig1 && Close[1]>trend)
         {
         ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,Bid-(Stop*myPoint),Ask+(Profit*myPoint),NULL,0,0,Blue);
         T=Time[0];
         Print(GetLastError());
         return(0);
         }
      }
//+------------------------------------------------------------------+
//| Trail Stop                                                      |
//+------------------------------------------------------------------+

   for(int i=0;i<OrdersTotal();i++)
      {
      if(Digits<4) multi=1000;
      else multi=10000;
      double sl=Trail*myPoint;
      //-- Get Order Pips
      od=(OrderSelect(i,SELECT_BY_POS));
         {
         if(OrderType()==OP_BUY && (Ask-OrderOpenPrice())>=sl && (Ask-sl)>OrderStopLoss())
            {
            ticket=OrderModify(OrderTicket(), OrderOpenPrice(), Ask-sl, OrderTakeProfit(),0,0);
            }
         if(OrderType()==OP_SELL && (OrderOpenPrice()-Bid)>=sl && (Bid+sl)<OrderStopLoss())
            {
            ticket=OrderModify(OrderTicket(), OrderOpenPrice(), Bid+sl, OrderTakeProfit(),0,0);
            }
         }
      }
   if(OrderType()==OP_BUY)
   pips=(OrderStopLoss()-OrderOpenPrice());
   if(OrderType()==OP_SELL)
   pips=(OrderOpenPrice()-OrderStopLoss());
   if(tt=0) pips=0;
   Comment("\nPips = ",NormalizeDouble((pips*multi),2));
   //Comment("High = ",hg,"\nLow = ",lw,"\nStop = ",hg+(Stop*myPoint),"\nDigits = ",Digits,"\nTicket = ",ticket);
   return(0);
   }
 
FxEmpire: I want … your kind help!
Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
          No free help
          urgent help.

Or pay someone. Top of every page is the link Freelance.
          Hiring to write script - General - MQL5 programming forum

 
FxEmpire:

I have this EA. This EA open only one trade at once. I want to open multiple trade at once from multiple currency charts whenever MA crossover. But this EA only open one trade and neglect other signals.

Highly appreciate your kind help!

attach it to multiple charts, different currency,. try it.
Reason: