Why did not assign value to these parameters?
Thank you for your message. It will be fixed.
mql5:
Thank you for your message. It will be fixed.
I thought these parameters were assigned in the signal script of the EA?
Thank you for your message. It will be fixed.
ssn:
I thought these parameters were assigned in the signal script of the EA?
I thought these parameters were assigned in the signal script of the EA?
yes, thank you very much, ssn.
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);
}