Skip to content

Commit a5646df

Browse files
author
EarnForex
authored
1.07
Fixed a critical bug in the hidden equity trailing stop (it failed to close positions when hit).
1 parent db77df9 commit a5646df

4 files changed

Lines changed: 3 additions & 2 deletions

File tree

MQL4/Experts/Account Protector/Account Protector.mq4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
//+------------------------------------------------------------------+
66
#property copyright "EarnForex.com"
77
#property link "https://www.earnforex.com/metatrader-expert-advisors/Account-Protector/"
8-
#property version "1.06"
9-
string Version = "1.06";
8+
#property version "1.07"
9+
string Version = "1.07";
1010
#property strict
1111

1212
#property description "Protects account balance by applying given actions when set conditions trigger."

MQL4/Experts/Account Protector/Account Protector.mqh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4088,6 +4088,7 @@ void CAccountProtector::EquityTrailing()
40884088
string AdditionalFunds_Asterisk = "";
40894089
if (AdditionalFunds != 0) AdditionalFunds_Asterisk = "*";
40904090
Logging("Account Protector: Equity stop-loss of " + DoubleToString(sets.doubleCurrentEquityStopLoss, 2) + " hit at " + DoubleToString(AE, 2) + AdditionalFunds_Asterisk + ". Closing all positions.");
4091+
Logging_Condition_Is_Met();
40914092
Close_All_Positions();
40924093

40934094
sets.boolEquityTrailingStop = false;
-4 Bytes
Binary file not shown.
74 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)