apply some change to categorized Signal Results Based on Profits or Loss ...
This commit is contained in:
@@ -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 //
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
@@ -255,6 +255,10 @@ struct XSignalInfo
|
||||
//
|
||||
symbol + "\\" +
|
||||
ToString(signal.type) + "\\" +
|
||||
(profit >= 0
|
||||
? "Profit"
|
||||
: "Loss") +
|
||||
"\\" +
|
||||
provider + "_" +
|
||||
ToString(ticket) + "_" +
|
||||
ToString(period) + "_" +
|
||||
|
||||
Reference in New Issue
Block a user