This commit is contained in:
2025-10-21 06:19:22 +03:30
parent 008ba9d05a
commit 412f7034d8
2 changed files with 83 additions and 29 deletions
+24 -4
View File
@@ -219,6 +219,14 @@ class XCBaseSignaller : public XCBase
return;
}
//
// Check Rest Until ...
has = !IsXValid(restUntil) || (IsXValid(restUntil) && cBarTime > restUntil);
if (!has)
{
return;
}
//
// Check Process Permissions ...
has = CanAnalyseMarket(cBarTime);
@@ -326,7 +334,9 @@ class XCBaseSignaller : public XCBase
{
}
//
/**
* Prepare Restrictions Update For Losing Trades ...
*/
void LoseTrade()
{
//
@@ -334,12 +344,22 @@ class XCBaseSignaller : public XCBase
loosingTrades++;
}
//
void WinTrade() {
/**
* Prepare Restrictions For Winning Trades ...
*/
void WinTrade()
{
//
if (loosingTrades > 0) {
if (loosingTrades > 0)
{
loosingTrades--;
}
//
if (restingSignals > 0)
{
restingSignals--;
}
}
//