This commit is contained in:
2024-08-23 02:10:02 +03:30
parent 7ec1d6ea0a
commit a069c2dd59
38 changed files with 84 additions and 26 deletions
+33
View File
@@ -5017,6 +5017,39 @@ public:
}
}
//
void RemoveSignal(XSignal &signal)
{
//
if (!signal.IsValid())
{
return;
}
//
int signalIDX = -1;
ENUM_X_POSITION_TYPES xType = ToPositionType(signal.type);
bool hasSignal = HasItem(
signal.symbol,
signal.provider,
signal.period,
xType,
signalIDX //
);
if (!hasSignal || !IsValidIndex(signalIDX))
{
return;
}
//
// Remove Item From List ...
ArrayRemove(
mData,
signalIDX,
1 //
);
}
//
// Do all Protections ...
void HandleProtection()