last works ...
must Fix Refactoring X_POSITION_TYPE side affects ...
This commit is contained in:
@@ -1813,12 +1813,12 @@ public:
|
||||
//
|
||||
// Close Specified Positions ...
|
||||
int Close(
|
||||
string comment = NULL, // Close Position By Specific Comment
|
||||
string symbol = NULL, // Trading Symbol
|
||||
string provider = NULL, // Signal Provider
|
||||
ENUM_TIMEFRAMES period = NULL, // Trading Period
|
||||
ENUM_POSITION_TYPE type = NULL, // Long (Buy) or Short (Sell)
|
||||
bool filterByMagic = true // Get Only Self Open Positions
|
||||
string comment = NULL, // Close Position By Specific Comment
|
||||
string symbol = NULL, // Trading Symbol
|
||||
string provider = NULL, // Signal Provider
|
||||
ENUM_TIMEFRAMES period = NULL, // Trading Period
|
||||
ENUM_X_POSITION_TYPE type = NULL, // Long (Buy) or Short (Sell)
|
||||
bool filterByMagic = true // Get Only Self Open Positions
|
||||
)
|
||||
{
|
||||
//
|
||||
@@ -1990,11 +1990,11 @@ public:
|
||||
//
|
||||
// Calculate Positions Profit ...
|
||||
double Profit(
|
||||
string symbol = NULL, // Trading Symbol
|
||||
string provider = NULL, // Signal Provider
|
||||
ENUM_TIMEFRAMES period = NULL, // Trading Period
|
||||
ENUM_POSITION_TYPE type = NULL, // Long (Buy) or Short (Sell)
|
||||
bool filterByMagic = true // Get Only Self Open Positions
|
||||
string symbol = NULL, // Trading Symbol
|
||||
string provider = NULL, // Signal Provider
|
||||
ENUM_TIMEFRAMES period = NULL, // Trading Period
|
||||
ENUM_X_POSITION_TYPE type = NULL, // Long (Buy) or Short (Sell)
|
||||
bool filterByMagic = true // Get Only Self Open Positions
|
||||
)
|
||||
{
|
||||
//
|
||||
@@ -2054,13 +2054,13 @@ public:
|
||||
//
|
||||
// Retrieve Positions ...
|
||||
int GetPositions(
|
||||
XPosition &result[], // Hold's Result
|
||||
string symbol = NULL, // Trading Symbol
|
||||
string provider = NULL, // Signal Provider
|
||||
ENUM_TIMEFRAMES period = NULL, // Trading Period
|
||||
ENUM_POSITION_TYPE type = NULL, // Long (Buy) or Short (Sell)
|
||||
bool filterByMagic = true, // Get Only Self Open Positions
|
||||
bool forceClean = true // Clean Result Array
|
||||
XPosition &result[], // Hold's Result
|
||||
string symbol = NULL, // Trading Symbol
|
||||
string provider = NULL, // Signal Provider
|
||||
ENUM_TIMEFRAMES period = NULL, // Trading Period
|
||||
ENUM_X_POSITION_TYPE type = NULL, // Long (Buy) or Short (Sell)
|
||||
bool filterByMagic = true, // Get Only Self Open Positions
|
||||
bool forceClean = true // Clean Result Array
|
||||
)
|
||||
{
|
||||
//
|
||||
@@ -2149,7 +2149,7 @@ public:
|
||||
symbol,
|
||||
provider,
|
||||
period,
|
||||
POSITION_TYPE_BUY,
|
||||
X_POSITION_TYPE_LONG,
|
||||
filterByMagic,
|
||||
forceClean //
|
||||
);
|
||||
@@ -2161,7 +2161,7 @@ public:
|
||||
symbol,
|
||||
provider,
|
||||
period,
|
||||
POSITION_TYPE_SELL,
|
||||
X_POSITION_TYPE_SHORT,
|
||||
filterByMagic,
|
||||
forceClean //
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user