MAGIC NUMBER EA

Experts

Specification

Dear Sir,
I need help. I wish to set an EA that looks up transaction on my list of trasaction and checks if the transaction is amongst the market and pending orders , the opens if it is not else do nothing about it. So I am using the Magic Number as the common field. I have written an EA and compiled it. but the EA is not working. Find below the EA.No transactions are opened even though I have no pending nor market orders. What can be the problem. Please help.
//+------------------------------------------------------------------+
//|                                                   First Part.mq4 |
//|                                                       Fon Ngando |
//|                                                                  |
//+------------------------------------------------------------------+
#property copyright "Fon Ngando"
#property link      ""

//+------------------------------------------------------------------+
//| expert initialization function                                   |
//+------------------------------------------------------------------+
int init()
  {
//----
  
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert deinitialization function                                 |
//+------------------------------------------------------------------+
int deinit()
  {
//----
  
//----
   return(0);
  }
//+------------------------------------------------------------------+
//| expert start function                                            |
//+------------------------------------------------------------------+
int start()
  {
   int i=0;
   int j,e,F,G;
   double P,SL,TP,N,V,MN,C;
   double Transaction_Array[][];
   Transaction_Array[11][9]=
{         
0    ,    75.50    ,    75.00    ,    105.00    ,        ,    2    ,    0    ,    0    ,        ,
0    ,    75.50    ,    75.00    ,    75.60    ,        ,    1.33    ,    0    ,    1    ,        ,
0    ,    75.50    ,    75.00    ,    75.70    ,        ,    1.06    ,    0    ,    2    ,        ,
0    ,    75.50    ,    75.00    ,    75.80    ,        ,    0.8    ,    0    ,    3    ,        ,
0    ,    75.50    ,    75.00    ,    75.90    ,        ,    0.53    ,    0    ,    4    ,        ,
0    ,    75.50    ,    75.00    ,    76.00    ,        ,    0.28    ,    0    ,    5    ,        ,
0    ,    75.50    ,    75.00    ,    76.10    ,        ,    0.2    ,    0    ,    6    ,        ,
0    ,    75.50    ,    75.00    ,    76.20    ,        ,    0.2    ,    0    ,    7    ,        ,
0    ,    75.50    ,    75.00    ,    76.30    ,        ,    0.2    ,    0    ,    8    ,        ,
0    ,    75.50    ,    75.00    ,    76.40    ,        ,    0.2    ,    0    ,    9    ,        ,
0    ,    75.50    ,    75.00    ,    76.50    ,        ,    0.2    ,    0    ,    10    ,        ,


};
  
  
 for(i=0; i<11; i++) // For market and pending orders
  {
           
   N=Transaction_Array[i][7];    // Determine magicnumber
                                // of transaction on my list
   for (e=0;e<OrdersTotal();e++)
    {
     if((OrderSelect(e,SELECT_BY_POS)==true)
     &&(OrderMagicNumber()==N))// look up Magic Number.
        {}                   //Magic Number found so trans already opened
          else
        {   P=Transaction_Array[i][1];     // Order open price
            SL=Transaction_Array[i][2];     // SL price
            TP=Transaction_Array[i][3];   // TP price
            N=Transaction_Array[i][7];       // Order number
            V=Transaction_Array[i][5];      // Amount of lots
            j=Transaction_Array[i][6];   // Ordertype 0=buy, 1=sell
            C=Transaction_Array[i][9];
                   
                   
                   
                     
                 
             if(P==Ask&&j==0)               
               {
                OrderSend(Symbol(),OP_BUY,V,P,1,SL,TP,C,i);
                return (OrderSend(Symbol(),OP_BUY,V,P,1,SL,TP,C,i));
               }
             if(P<Ask&&j==0)
               {
                OrderSend(Symbol(),OP_BUYLIMIT,V,P,1,SL,TP,C,i);
                return (OrderSend(Symbol(),OP_BUYLIMIT,V,P,1,SL,TP,C,i));
               }
              if(P>Ask&&j==0)
                 {
                  OrderSend(Symbol(),OP_BUYSTOP,V,P,1,SL,TP,C,i);
                  return (OrderSend(Symbol(),OP_BUYSTOP,V,P,1,SL,TP,C,i));
                 }                 
              if(P==Bid&&j==1)
                 {
                  OrderSend(Symbol(),OP_SELL,V,P,1,SL,TP,C,i);
                  return (OrderSend(Symbol(),OP_SELL,V,P,1,SL,TP,C,i));
                 }
              if(P<Bid&&j==1)
                 {
                  OrderSend(Symbol(),OP_SELLSTOP,V,P,1,SL,TP,C,i);
                  return (OrderSend(Symbol(),OP_SELLSTOP,V,P,1,SL,TP,C,i));
                 }
              if(P>Bid&&j==1)
                 {
                  OrderSend(Symbol(),OP_SELLLIMIT,V,P,1,SL,TP,C,i);
                  return (OrderSend(Symbol(),OP_SELLLIMIT,V,P,1,SL,TP,C,i));
                 }
                        
                
        }
    }
  }
//----
  
//----
 
  }
//+------------------------------------------------------------------+

Responded

1
Developer 1
Rating
(71)
Projects
254
53%
Arbitration
16
50% / 38%
Overdue
83
33%
Free
2
Developer 2
Rating
(3)
Projects
3
33%
Arbitration
1
0% / 100%
Overdue
0
Free
3
Developer 3
Rating
(550)
Projects
827
73%
Arbitration
15
53% / 13%
Overdue
193
23%
Free
4
Developer 4
Rating
(273)
Projects
395
63%
Arbitration
70
53% / 26%
Overdue
198
50%
Free
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
Similar orders
Hi developers, would like an EA developed that I can use for backtesting and possibly as a Trading Robot if I have enough confidence in it. Here are the rules: EA is for forex, indicies, commodities etc. 5 minute timeframe (can add more timeframes depending on development cost) Price at 9pm is "noted" Then the price at the following 7am is "noted". Once a candle closes above/below the 7am price in the direction of
QuantumTrader 30 - 200 USD
Request for development of machine learning robots for MetaTrader 5 (MT5) **Description**: Willing to develop experience in programming trading robots using MQL5 language and can learn machine learning on MetaTrader 5 (MT5) platform. The robot should be able to implement a multidisciplinary strategy on a set of technical indicators and multiple rules. I need to develop the robots so that they can work in an
The goal is to develop a system that mirrors trade actions (Buy/Sell) from a CTrader demo account on Cronos Markets to multiple prop firm accounts on TradeLocker, ensuring accurate replication of trades while adjusting risk proportionally. I was wondering if you could help me with copy trading an EA’s action on Cronos markets (uses CTrader) into a prop firm account that I bought with TooOne Trader (uses TradeLocker
I ask for my requirements as follows for a developer who knows how to connect accounts for those who are successful, that is copy trade VPS, so I ask that this order be very effective and very high standards in the work that will give fruit especially
Hello, i have this EA (Blessing) attached and whenever i enter Multiplier: 1.5 Starting Lot: 1 on the config it opens a position of 1 Lot, next 2 lot, next 3 lot, next 5 lot but i need to have it open: 1 lot, 1,5 lot, 2.25 lot, 3.38 lot and so on. You need to modify the EA so it opens the correct values. Please test it with the set i have attached and let me know if you can do it. The ffcal is an indicator and need
Hey Greeting Am in need of Tradingview Developer that can combine existing Tradingview indicator to develop a strategy based on my conditions The Source code of those Indicator is available with me. Kindly bid and let proceed with the project Thanks
I have an EA I use today, called Perceptrader AI, I have used this for 1 year. It uses ChatGPT and Bard (Google AI) to find good trading opportunities. This EA has not had a single loss as long as I have been using it. It could be exciting to build an AI function into my new existing EA as well, possibly a feature that independently optimizes its settings as the market changes. This could perhaps be a long-term task
I am not a professional developer and I am trying to make an EA based on published examples, my personal additions, my limited general programming knowledge (html, php, databases, but not MQL5) and the help of the AI Assistant built into the MQL5 Meta Editor. I have made several small EAs and none of them work, although the code has no errors apparently and the examples I based them on all work. I have tested it in
I want a profitable MT4/MT5 with a proven results and test results. Demo and strategy is also an advantage if available. kindly message me if it you have one. The source codes will be demanded when will finally reach a compromise
Dear developer, I want a working code to close open and pending orders on IG.com through python. when applying send me a sample video of the code closing orders on IG.com should be delivered within 2 days (please let me know) Serious coders please

Project information

Budget
100- USD
Deadline
to 10 day(s)