apply EURJPY Level 1 Fix ...
This commit is contained in:
@@ -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()
|
||||
{
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user