last ...
This commit is contained in:
@@ -86,7 +86,7 @@ struct XCAEAStrategyConditions
|
||||
// Constructor ...
|
||||
XCAEAStrategyConditions()
|
||||
{
|
||||
Clean();
|
||||
Default();
|
||||
}
|
||||
|
||||
//
|
||||
@@ -125,6 +125,40 @@ struct XCAEAStrategyConditions
|
||||
type = X_POSITION_TYPE_NONE;
|
||||
|
||||
//
|
||||
ZeroMemory(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Default ...
|
||||
*/
|
||||
void Default()
|
||||
{
|
||||
//
|
||||
sl = 0;
|
||||
tp = 0;
|
||||
pivot = 0;
|
||||
point = 0;
|
||||
|
||||
//
|
||||
symbol = NULL;
|
||||
period = NULL;
|
||||
provider = NULL;
|
||||
|
||||
//
|
||||
time = NULL;
|
||||
setupTime = NULL;
|
||||
triggerTime = NULL;
|
||||
|
||||
//
|
||||
Clean(targets);
|
||||
|
||||
//
|
||||
signalBox.Clean();
|
||||
conditions.Clean();
|
||||
|
||||
//
|
||||
dir = X_DIRECTION_NONE;
|
||||
type = X_POSITION_TYPE_NONE;
|
||||
}
|
||||
|
||||
//
|
||||
@@ -319,7 +353,7 @@ struct XCAEAGuard
|
||||
// Constructor ...
|
||||
XCAEAGuard()
|
||||
{
|
||||
Clean();
|
||||
Default();
|
||||
}
|
||||
|
||||
//
|
||||
@@ -352,6 +386,29 @@ struct XCAEAGuard
|
||||
ZeroMemory(this);
|
||||
}
|
||||
|
||||
/**
|
||||
* Default ...
|
||||
*/
|
||||
void Default() {
|
||||
//
|
||||
time = NULL;
|
||||
action = X_GUARD_ACTION_NONE;
|
||||
|
||||
//
|
||||
symbol = NULL;
|
||||
provider = NULL;
|
||||
|
||||
//
|
||||
ticket = 0;
|
||||
|
||||
//
|
||||
volumeMultiplier = 0;
|
||||
|
||||
//
|
||||
sl = 0;
|
||||
tp = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Validate ...
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user