Download MetaTrader 5

Why did not assign value to these parameters?

To add comments, please log in or register
Kevin
44
Kevin  

Hi Guys,

 Why did not assign value to these parameters (double   price,sl,tp) in the functions CheckOpenLong() and CheckOpenShort? 

 

 //+------------------------------------------------------------------+
//|                                                       Expert.mqh |
//|                      Copyright ?2010, MetaQuotes Software Corp. |
//|                                        https://www.metaquotes.net |
//|                                              Revision 2010.10.08 |
//+------------------------------------------------------------------+

 Line:574-617

 //+------------------------------------------------------------------+
//| Check for long position open or limit/stop order set             |
//| INPUT:  no.                                                      |
//| OUTPUT: true-if trade operation processed, false otherwise.      |
//| REMARK: no.                                                      |
//+------------------------------------------------------------------+
bool CExpert::CheckOpenLong()
  {
   double   price,sl,tp;
   datetime expiration=TimeCurrent();
//--- check signal for long enter operations
   if(m_signal.CheckOpenLong(price,sl,tp,expiration))
     {
      if(!m_trade.SetOrderExpiration(expiration))
        {
         m_expiration=expiration;
        }
      return(OpenLong(price,sl,tp));
     }
//--- return without operations
   return(false);
  }
//+------------------------------------------------------------------+
//| Check for short position open or limit/stop order set            |
//| INPUT:  no.                                                      |
//| OUTPUT: true-if trade operation processed, false otherwise.      |
//| REMARK: no.                                                      |
//+------------------------------------------------------------------+
bool CExpert::CheckOpenShort()
  {
   double   price,sl,tp;
   datetime expiration=TimeCurrent();
//--- check signal for short enter operations
   if(m_signal.CheckOpenShort(price,sl,tp,expiration))
     {
      if(!m_trade.SetOrderExpiration(expiration))
        {
         m_expiration=expiration;
        }
      return(OpenShort(price,sl,tp));
     }
//--- return without operations
   return(false);
  }

MetaTrader 5 Trading Platform / MetaQuotes Software Corp.
  • www.metaquotes.net
MetaTrader 5 trading platform designed to arrange brokerage services in Forex, CFD, Futures, as well as equity markets
Ilyas
1205
Ilyas  
Thank you for your message. It will be fixed.
Stephen Njuki
5204
Stephen Njuki  
mql5:
Thank you for your message. It will be fixed.
I thought these parameters were assigned in the signal script of the EA?
Kevin
44
Kevin  
mql5:
Thank you for your message. It will be fixed.

 

Hi Mql5, May i know if the bug fix fixed? when can i get the updates for this?  thank you very much. 

Kevin
44
Kevin  
ssn:
I thought these parameters were assigned in the signal script of the EA?

 

yes, thank you very much, ssn. 

To add comments, please log in or register