diff --git a/Classes/x-saherelm.x121.xtrade.handler.class.mq5 b/Classes/x-saherelm.x121.xtrade.handler.class.mq5 index baff8d3d..9972b7ca 100644 Binary files a/Classes/x-saherelm.x121.xtrade.handler.class.mq5 and b/Classes/x-saherelm.x121.xtrade.handler.class.mq5 differ diff --git a/Experts/x-saherelm.x121.ea.mq5 b/Experts/x-saherelm.x121.ea.mq5 index f27ce7c5..f0d345df 100644 --- a/Experts/x-saherelm.x121.ea.mq5 +++ b/Experts/x-saherelm.x121.ea.mq5 @@ -144,6 +144,7 @@ input group "In Drawdown Positions Protecting"; // Protect ... input group "Protect"; input bool eaAllowProtect = true; // Allow Proptecting +input int eaProtectionDelay = 60; // Delay Between two Protection in Secconds input bool eaProtectOnConditions = true; // Do Protection only when Conditions happens input bool eaAllowDirectionProtct = false; // Allow also Directional Protect input double eaProtectionStartDistance = 50; // Protection Start Drawdown in Profit @@ -637,6 +638,7 @@ bool InitialEA() // // Protect ... eaTradeHandler.AllowProtect(eaAllowProtect); + eaTradeHandler.ProtectionDelay(eaProtectionDelay); eaTradeHandler.ProtectOnConditions(eaProtectOnConditions); eaTradeHandler.AllowDirectionProtct(eaAllowDirectionProtct); eaTradeHandler.ProtectionStartDistance(eaProtectionStartDistance); diff --git a/MQL5.code-workspace b/MQL5.code-workspace index 3282973b..aecf3431 100644 --- a/MQL5.code-workspace +++ b/MQL5.code-workspace @@ -9,6 +9,9 @@ "c:\\Users\\SaherElm\\AppData\\Roaming\\MetaQuotes\\Terminal\\D0E8209F77C8CF37AD8BF550E51FF075\\MQL5\\Include\\Include", "c:\\Users\\SaherElm\\AppData\\Roaming\\MetaQuotes\\Terminal\\D0E8209F77C8CF37AD8BF550E51FF075\\MQL5\\Include" ], - "C_Cpp.clang_format_style": "{ BasedOnStyle: Microsoft, UseTab: Never, IndentWidth: 4, TabWidth: 4, ColumnLimit: 0}" + "C_Cpp.clang_format_style": "{ BasedOnStyle: Microsoft, UseTab: Never, IndentWidth: 4, TabWidth: 4, ColumnLimit: 0}", + "files.associations": { + "*.mq5": "cpp" + } } }