last works on protection ...

This commit is contained in:
2024-09-27 21:15:25 +03:30
parent 95ebf9b321
commit 5efc46ac47
3 changed files with 6 additions and 1 deletions
+2
View File
@@ -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);