ignore zero tp sl signals and turn off long time trades closing ....

This commit is contained in:
2024-06-06 08:58:48 +03:30
parent b6323751cd
commit 928269ab99
2 changed files with 9 additions and 3 deletions
+6 -3
View File
@@ -1444,7 +1444,7 @@ struct X121ProviderDescriptor
//
for (int i = 0; i < signallersCount; i++)
{
//
//
// Check all Markets for Long Conditions ...
//
@@ -2005,7 +2005,7 @@ struct X121ProviderDescriptor
// Now Select Minimum SL ...
if (IsValidSize(ArraySize(sls)))
{
slPrice = GetMin(sls);
slPrice = GetAverage(sls);
}
//
@@ -2046,7 +2046,7 @@ struct X121ProviderDescriptor
);
if (mSL == 0 && mTP == 0)
{
Print("Zero TP/SL ...");
continue;
}
//
@@ -2074,6 +2074,9 @@ struct X121ProviderDescriptor
iSignal,
this.signals //
);
//
this.provider.SetWaitsUntilNewBar(true);
}
}