last works ...
This commit is contained in:
@@ -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 ...
|
||||
|
||||
Reference in New Issue
Block a user