Download MetaTrader 5

Saadscalper

To add comments, please log in or register
Hans-Joachim Morbach
52
Hans-Joachim Morbach  
Hello

Assigns any of you know where I can find the Magic Number in MT4. I wanted not been found. Because that would be the same as EA Saadscalper. I wish you a nice weekend.

best regards
Joachim
Mohammad Soubra
27443
Mohammad Soubra  
Hans-Joachim Morbach:
Hello

Assigns any of you know where I can find the Magic Number in MT4. I wanted not been found. Because that would be the same as EA Saadscalper. I wish you a nice weekend.

best regards
Joachim

if you mean how to find the magic number in coding:

you may find it in the following function 

int  OrderSend( 
   string   symbol,              // symbol 
   int      cmd,                 // operation 
   double   volume,              // volume 
   double   price,               // price 
   int      slippage,            // slippage 
   double   stoploss,            // stop loss 
   double   takeprofit,          // take profit 
   string   comment=NULL,        // comment 
   int      magic=0,             // magic number 
   datetime expiration=0,        // pending order expiration 
   color    arrow_color=clrNONE  // color 
   );
Drazen Penic
2579
Drazen Penic  

Magic number can be set only through OrderSend() function when you create a market or pending order.

After that, you can only read a magic number from the order. 

Here is a script that will list magic numbers for all active orders:

 

#property version   "1.00"
#property strict

//+------------------------------------------------------------------+
//| script program start function                                    |
//+------------------------------------------------------------------+
int start()
  {
    //----
    for(int i=0; i<OrdersTotal(); i++) // For market and pending orders
    {
      if((OrderSelect(i,SELECT_BY_POS)==true))           
      {
         Print( "Order : ", OrderTicket(), ", ",  OrderSymbol(), ", MagicNum= ", OrderMagicNumber());
      }
    }
   //----
   return(0);
  }
Adnan Iqbal
67826
Adnan Iqbal  
Hans-Joachim Morbach:
Hello

Assigns any of you know where I can find the Magic Number in MT4. I wanted not been found. Because that would be the same as EA Saadscalper. I wish you a nice weekend.

best regards
Joachim

Hello Joachim,

Did you find the magic number? It is in input setting of SAADScalper with same image that I shared with you? If still not found I can send you step by step procedure in personal message

To add comments, please log in or register