This commit is contained in:
2024-09-27 19:12:44 +03:30
parent ebd2e20f4a
commit 95ebf9b321
2 changed files with 115 additions and 10 deletions
+17
View File
@@ -140,6 +140,15 @@ input group "In Drawdown Positions Protecting";
// input bool eaDoSupportOnConditions = true; // Do Support on Conditions
// input int eaDelayBetweenTwoSupport = 60; // Delay Between To Support in Second
//
// Protect ...
input group "Protect";
input bool eaAllowProtect = true; // Allow Proptecting
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
input double eaProtectionVolumeMultiplier = 2; // Protection Volume Multiplier
//
// Partial Close (In Drawdown) ...
input group "Partial Close";
@@ -625,6 +634,14 @@ bool InitialEA()
// eaTradeHandler.DoSupportOnConditions(eaDoSupportOnConditions);
// eaTradeHandler.DelayBetweenTwoSupport(eaDelayBetweenTwoSupport);
//
// Protect ...
eaTradeHandler.AllowProtect(eaAllowProtect);
eaTradeHandler.ProtectOnConditions(eaProtectOnConditions);
eaTradeHandler.AllowDirectionProtct(eaAllowDirectionProtct);
eaTradeHandler.ProtectionStartDistance(eaProtectionStartDistance);
eaTradeHandler.ProtectionVolumeMultiplier(eaProtectionVolumeMultiplier);
//
// Partial Close (In Profit) ...
eaTradeHandler.PartialCloseInDrawdownDistance(eaPartialCloseInDrawdownDistance);