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) + "_" +
|
||||
|
||||
@@ -43,7 +43,7 @@ string x121EASymbols = "EURUSDb"; // Symbols
|
||||
// Signals ...
|
||||
bool x121EAAllowLong = true; // Allow Long Trades
|
||||
bool x121EAAllowShort = true; // Allow Short Trades
|
||||
int x121EAReuiredSignalVerifications = 4; // Required Verifications for Signals
|
||||
int x121EAReuiredSignalVerifications = 3; // Required Verifications for Signals
|
||||
|
||||
//
|
||||
// Risk Management ...
|
||||
|
||||
Reference in New Issue
Block a user