//+------------------------------------------------------------------+
//| 숏 포지션 오픈 또는 리밋/스탑 주문 설정을 확인합니다 |
//| INPUT: no. |
//| OUTPUT: 거래 작업이 진행된다면 true, 그렇지 않으면 false. |
//| 비고: no. |
//+------------------------------------------------------------------+
bool CExpert::CheckOpenShort()
{
double price=EMPTY_VALUE;
double sl=0.0;
double tp=0.0;
datetime expiration=TimeCurrent();
//--- 숏 입력 작업을 위한 시그널을 확인합니다
if(m_signal.CheckOpenShort(price,sl,tp,expiration))
{
if(!m_trade.SetOrderExpiration(expiration))
{
m_expiration=expiration;
}
return(OpenShort(price,sl,tp));
}
//--- 작업 없이 반환합니다
return(false);
}
|