apply EURJPY Level 1 Fix ...

This commit is contained in:
2024-08-11 20:09:13 +03:30
parent 8219f8e18e
commit 156647a3a9
3 changed files with 20563 additions and 3 deletions
+26 -1
View File
@@ -156,6 +156,9 @@ string mTag =
? ShortName
: ShortName + "_" + eaLogSuffix;
//
int forceSignalsCount = 0;
//
// Event Handlers ...
@@ -209,7 +212,8 @@ void OnDeinit(const int reason)
// REASON_CLOSE 9 Terminal closed
//
string msg = "MaxSameTimeTrades: " + ToString(eaTradeHandler.MaxSameTimeTrades());
string msg = "MaxSameTimeTrades: " + ToString(eaTradeHandler.MaxSameTimeTrades()) + "\n" +
"ForceSignalsCount: " + ToString(forceSignalsCount);
eaAlert.Alert(msg);
//
@@ -845,6 +849,23 @@ void OnSignalRecieved(
return;
}
//
// Here we Can Increase Signal Volume if
// it is not force Filtered ...
bool isForceFiltered = parser.IsFiltered(
signal,
conditions,
true //
);
if (!isForceFiltered)
{
//
// TODO:
// Implement Strong Signals Conditions
// Senarios ...
forceSignalsCount++;
}
//
// Attach Conditions Summary to Signal ...
string conditionsSummary = conditions.GenerateSummary(
@@ -870,6 +891,7 @@ void OnSignalRecieved(
}
//
// Handle StopLoss Triggered Positions ...
void OnStopLossTriggered(const XDeal &deal)
{
//
@@ -881,6 +903,7 @@ void OnStopLossTriggered(const XDeal &deal)
}
//
// Handle Take Profit Triggered Positions ...
void OnTakeProfitTriggered(const XDeal &deal)
{
//
@@ -892,6 +915,7 @@ void OnTakeProfitTriggered(const XDeal &deal)
}
//
// Handle Force Close a Position ...
void OnPositionForceClosed(
const ulong ticket,
const XPosition &position,
@@ -911,6 +935,7 @@ void OnPositionForceClosed(
}
//
// Report Account Balance ...
void ReportBalance()
{
//
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff