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;
|
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 ...
|
// Check Conditions for Generating Possible Signals ...
|
||||||
bool HasSignal(
|
bool HasSignal(
|
||||||
@@ -1911,6 +1949,17 @@ struct X121SignalGenerator
|
|||||||
pusher,
|
pusher,
|
||||||
provider //
|
provider //
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//
|
||||||
|
if (hasLong)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
hasLong = FilterLongConditions(
|
||||||
|
conditions,
|
||||||
|
pusher,
|
||||||
|
provider //
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -1923,6 +1972,17 @@ struct X121SignalGenerator
|
|||||||
pusher,
|
pusher,
|
||||||
provider //
|
provider //
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//
|
||||||
|
if (hasShort)
|
||||||
|
{
|
||||||
|
//
|
||||||
|
hasShort = FilterShortConditions(
|
||||||
|
conditions,
|
||||||
|
pusher,
|
||||||
|
provider //
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -255,6 +255,10 @@ struct XSignalInfo
|
|||||||
//
|
//
|
||||||
symbol + "\\" +
|
symbol + "\\" +
|
||||||
ToString(signal.type) + "\\" +
|
ToString(signal.type) + "\\" +
|
||||||
|
(profit >= 0
|
||||||
|
? "Profit"
|
||||||
|
: "Loss") +
|
||||||
|
"\\" +
|
||||||
provider + "_" +
|
provider + "_" +
|
||||||
ToString(ticket) + "_" +
|
ToString(ticket) + "_" +
|
||||||
ToString(period) + "_" +
|
ToString(period) + "_" +
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ string x121EASymbols = "EURUSDb"; // Symbols
|
|||||||
// Signals ...
|
// Signals ...
|
||||||
bool x121EAAllowLong = true; // Allow Long Trades
|
bool x121EAAllowLong = true; // Allow Long Trades
|
||||||
bool x121EAAllowShort = true; // Allow Short Trades
|
bool x121EAAllowShort = true; // Allow Short Trades
|
||||||
int x121EAReuiredSignalVerifications = 4; // Required Verifications for Signals
|
int x121EAReuiredSignalVerifications = 3; // Required Verifications for Signals
|
||||||
|
|
||||||
//
|
//
|
||||||
// Risk Management ...
|
// Risk Management ...
|
||||||
|
|||||||
Reference in New Issue
Block a user