apply some change to categorized Signal Results Based on Profits or Loss ...

This commit is contained in:
2024-06-12 11:57:37 +03:30
parent af3f646051
commit 834090a2be
3 changed files with 65 additions and 1 deletions
+60
View File
@@ -1868,6 +1868,44 @@ struct X121SignalGenerator
return result;
}
//
// Filter Long Conditions ...
bool FilterLongConditions(
X121SetupConditions &conditions, // Conditions
int pusher, // Pushers
string provider // Provider
)
{
//
bool result = false;
//
// TODO Filter ...
result = true;
//
return result;
}
//
// Filter Short Conditions ...
bool FilterShortConditions(
X121SetupConditions &conditions, // Conditions
int pusher, // Pushers
string provider // Provider
)
{
//
bool result = false;
//
// TODO Filter ...
result = true;
//
return result;
}
//
// Check Conditions for Generating Possible Signals ...
bool HasSignal(
@@ -1911,6 +1949,17 @@ struct X121SignalGenerator
pusher,
provider //
);
//
if (hasLong)
{
//
hasLong = FilterLongConditions(
conditions,
pusher,
provider //
);
}
}
//
@@ -1923,6 +1972,17 @@ struct X121SignalGenerator
pusher,
provider //
);
//
if (hasShort)
{
//
hasShort = FilterShortConditions(
conditions,
pusher,
provider //
);
}
}
//
+4
View File
@@ -255,6 +255,10 @@ struct XSignalInfo
//
symbol + "\\" +
ToString(signal.type) + "\\" +
(profit >= 0
? "Profit"
: "Loss") +
"\\" +
provider + "_" +
ToString(ticket) + "_" +
ToString(period) + "_" +