This commit is contained in:
2024-09-20 18:17:31 +03:30
parent 46f8009ca5
commit ba1c5a73b7
2 changed files with 67 additions and 10 deletions
+2
View File
@@ -112,6 +112,7 @@ input double eaPartialCloseVolumeInProfit = 0; // Partial Close Volume
input group "In Drawdown Positions Protecting";
input bool eaAllowRecoverInDrawdowns = true; // Allow Recovery For In Drawdown Positions
input double eaRecoveryMultiplier = 1; // Recovery Volume Multiplier
input bool eaApplyRecoveryLevelOnVolume = true; // Apply Recovery Level on Volume Calculation
input int eaRecoveryDelayInMinute = 1; // Delay Between Two Recovery in Minutes
input double eaRecoveryDistanceInPoint = 30; // Distance Between Two Recovery in Point
input double eaPartialCloseOnSpecificPointOfDrawdown = 0; // Partial Close Position on Specific Points of Drawdown
@@ -501,6 +502,7 @@ bool InitialEA()
// Protector > In Drawdown Positions Protecting ...
eaTradeHandler.AllowRecoverInDrawdowns(eaAllowRecoverInDrawdowns);
eaTradeHandler.RecoveryMultiplier(eaRecoveryMultiplier);
eaTradeHandler.ApplyRecoveryLevelOnVolume(eaApplyRecoveryLevelOnVolume);
eaTradeHandler.RecoveryDelayInMinute(eaRecoveryDelayInMinute);
eaTradeHandler.RecoveryDistanceInPoint(eaRecoveryDistanceInPoint);
eaTradeHandler.PartialCloseOnSpecificPointOfDrawdown(eaPartialCloseOnSpecificPointOfDrawdown);