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 ...
*
+43 -3
View File
@@ -108,7 +108,7 @@ struct XCAPivot
// Constructor ...
XCAPivot()
{
Clean();
Default();
}
//
@@ -135,6 +135,27 @@ struct XCAPivot
ZeroMemory(this);
}
/**
* Default ...
*/
void Default()
{
//
value = 0;
to = NULL;
reserve = 0;
from = NULL;
symbol = NULL;
period = NULL;
type = XCA_NONE;
//
Clean(values);
//
ZeroMemory(this);
}
/**
* Validate ...
*
@@ -482,7 +503,7 @@ struct XCAPVPivot
// Constructor ...
XCAPVPivot()
{
Clean();
Default();
}
//
@@ -500,6 +521,15 @@ struct XCAPVPivot
ZeroMemory(this);
}
//
void Default()
{
//
value = 0;
Clean(pivots);
dir = X_DIRECTION_NONE;
}
//
bool IsValid()
{
@@ -601,7 +631,7 @@ struct XCAPVTick
//
XCAPVTick()
{
Clean();
Default();
}
//
@@ -618,6 +648,16 @@ struct XCAPVTick
ZeroMemory(this);
}
//
void Default()
{
//
pivot.Clean();
//
ZeroMemory(zone);
}
//
bool IsValid()
{