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
+3
View File
@@ -80,6 +80,9 @@ struct XSignalBox
ob.Clean();
fvg.Clean();
sharp.Clean();
//
ZeroMemory(this);
}
/**
+46 -1
View File
@@ -347,6 +347,9 @@ struct XRR
//
Clean(tps);
//
ZeroMemory(this);
}
//
@@ -1119,6 +1122,7 @@ struct XSignal
//
// Traget ...
double targets[]; // Force Risk Free On Targets ...
bool isTargetApplied; // Target Applied ...
int appliedTargetIDX; // Last Applied Target Index ...
bool ignoreEAVolume; // Ignore EA Volume ...
@@ -1131,7 +1135,7 @@ struct XSignal
// Constructor ...
XSignal()
{
Clean();
Default();
}
//
@@ -1683,6 +1687,7 @@ struct XSignal
Clean(targets);
appliedTargetIDX = -1;
ignoreEAVolume = false;
isTargetApplied = false;
//
trailSL = false;
@@ -1702,6 +1707,46 @@ struct XSignal
ZeroMemory(this);
}
//
// Default Values ...
void Default() {
//
entry = 0;
volume = 0;
pushers = 0;
positionId = 0;
//
time = NULL;
type = NULL;
mode = NULL;
symbol = NULL;
period = NULL;
comment = NULL;
provider = NULL;
conditions = NULL;
//
Clean(targets);
appliedTargetIDX = -1;
ignoreEAVolume = false;
isTargetApplied = false;
//
trailSL = false;
riskFreeOnBreakEven = false;
//
fullTPLevel = 0;
tpLevelForBreakEven = 0;
partialCloseOnTPLevel = 0;
partialCloseMultiplier = 0;
trailSLStartOnReachTPLevel = 0;
//
Clean(supports);
}
//
// Validate ...
bool IsValid()