apply EURJPY Level 1 Fix ...
This commit is contained in:
@@ -156,6 +156,9 @@ string mTag =
|
|||||||
? ShortName
|
? ShortName
|
||||||
: ShortName + "_" + eaLogSuffix;
|
: ShortName + "_" + eaLogSuffix;
|
||||||
|
|
||||||
|
//
|
||||||
|
int forceSignalsCount = 0;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Event Handlers ...
|
// Event Handlers ...
|
||||||
|
|
||||||
@@ -209,7 +212,8 @@ void OnDeinit(const int reason)
|
|||||||
// REASON_CLOSE 9 Terminal closed
|
// REASON_CLOSE 9 Terminal closed
|
||||||
|
|
||||||
//
|
//
|
||||||
string msg = "MaxSameTimeTrades: " + ToString(eaTradeHandler.MaxSameTimeTrades());
|
string msg = "MaxSameTimeTrades: " + ToString(eaTradeHandler.MaxSameTimeTrades()) + "\n" +
|
||||||
|
"ForceSignalsCount: " + ToString(forceSignalsCount);
|
||||||
eaAlert.Alert(msg);
|
eaAlert.Alert(msg);
|
||||||
|
|
||||||
//
|
//
|
||||||
@@ -845,6 +849,23 @@ void OnSignalRecieved(
|
|||||||
return;
|
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 ...
|
// Attach Conditions Summary to Signal ...
|
||||||
string conditionsSummary = conditions.GenerateSummary(
|
string conditionsSummary = conditions.GenerateSummary(
|
||||||
@@ -870,6 +891,7 @@ void OnSignalRecieved(
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
// Handle StopLoss Triggered Positions ...
|
||||||
void OnStopLossTriggered(const XDeal &deal)
|
void OnStopLossTriggered(const XDeal &deal)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@@ -881,6 +903,7 @@ void OnStopLossTriggered(const XDeal &deal)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
// Handle Take Profit Triggered Positions ...
|
||||||
void OnTakeProfitTriggered(const XDeal &deal)
|
void OnTakeProfitTriggered(const XDeal &deal)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
@@ -892,6 +915,7 @@ void OnTakeProfitTriggered(const XDeal &deal)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
// Handle Force Close a Position ...
|
||||||
void OnPositionForceClosed(
|
void OnPositionForceClosed(
|
||||||
const ulong ticket,
|
const ulong ticket,
|
||||||
const XPosition &position,
|
const XPosition &position,
|
||||||
@@ -911,6 +935,7 @@ void OnPositionForceClosed(
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
// Report Account Balance ...
|
||||||
void ReportBalance()
|
void ReportBalance()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user