last works ...

This commit is contained in:
2024-06-05 13:55:52 +03:30
parent 4cae0267f2
commit 465ead38c9
4 changed files with 88 additions and 18 deletions
+12 -9
View File
@@ -173,6 +173,7 @@ public:
}
//
// Loop Through Descriptors for Collecting Guards ...
for (int i = 0; i < descriptorsCount; i++)
{
//
@@ -180,16 +181,18 @@ public:
//
XGuard iGuards[];
bool iHasGuard = iDescriptor.HasGuard(iGuards);
if (iHasGuard)
int iGuardsCount = iDescriptor.HasGuard(iGuards);
if (!IsValidSize(iGuardsCount))
{
//
Copy(
iGuards,
guards,
false //
);
continue;
}
//
Copy(
iGuards,
guards,
false //
);
}
//
@@ -558,7 +561,7 @@ public:
//
// Check Signaller Enable Hedge or not and Handle it if enabled ...
if (mDescriptors[i].signallers[j].AllowHedge())
if (positionsCount > 1 && mDescriptors[i].signallers[j].AllowHedge())
{
//
// Check Profits Enough for Hedge or not ...