last ....
This commit is contained in:
@@ -856,6 +856,34 @@ class XCTradeManager : public XCBase
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check Allow Trade or not ..
|
||||
*
|
||||
* @param type: ENUM_POSITIO_TYPE
|
||||
*
|
||||
* @return ( bool )
|
||||
*/
|
||||
bool AllowTrade(ENUM_POSITIO_TYPE type)
|
||||
{
|
||||
//
|
||||
bool result = false;
|
||||
|
||||
//
|
||||
result = allowTrade;
|
||||
if (!result)
|
||||
{
|
||||
return result;
|
||||
}
|
||||
|
||||
//
|
||||
result =
|
||||
(IsLong(type) && allowLongs) ||
|
||||
(IsShort(typ) && allowShorts);
|
||||
|
||||
//
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle All Exists Symbol Configurations Restrictions ...
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user