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