last ....

This commit is contained in:
2025-09-10 23:03:47 +03:30
parent 487a2d23d7
commit 54ec736d3f
@@ -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 ...
*/