This commit is contained in:
2025-05-01 05:40:03 +03:30
parent 905413aa8c
commit ba74bca8e9
9 changed files with 310 additions and 25 deletions
+59 -2
View File
@@ -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 ...
*