add support for freezeing in drawdown positions ...
This commit is contained in:
@@ -110,7 +110,11 @@ input double eaPartialCloseVolumeInProfit = 0; // Partial Close Volume
|
||||
//
|
||||
// Protector > In Drawdown Positions Protecting ...
|
||||
input group "In Drawdown Positions Protecting";
|
||||
input bool eaAllowRecoverInDrawdowns = true; // Allow Recovery For In Drawdown Positions
|
||||
input bool eaFreezeInDrawdon = true; // Freeze In Drawdown Position by Lock it
|
||||
input double eaFreezePoint = 100; // Freezing Drawdown Point
|
||||
input double eaFreezeVolume = 2; // Freezing Volume Multiplier
|
||||
input bool eaRemoveFreezedPositionsTPSL = true; // Removes Freezed Positions TP and SL
|
||||
input bool eaAllowRecoverInDrawdowns = false; // 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
|
||||
@@ -500,6 +504,10 @@ bool InitialEA()
|
||||
|
||||
//
|
||||
// Protector > In Drawdown Positions Protecting ...
|
||||
eaTradeHandler.FreezeInDrawdon(eaFreezeInDrawdon);
|
||||
eaTradeHandler.FreezePoint(eaFreezePoint);
|
||||
eaTradeHandler.FreezeVolume(eaFreezeVolume);
|
||||
eaTradeHandler.RemoveFreezedPositionsTPSL(eaRemoveFreezedPositionsTPSL);
|
||||
eaTradeHandler.AllowRecoverInDrawdowns(eaAllowRecoverInDrawdowns);
|
||||
eaTradeHandler.RecoveryMultiplier(eaRecoveryMultiplier);
|
||||
eaTradeHandler.ApplyRecoveryLevelOnVolume(eaApplyRecoveryLevelOnVolume);
|
||||
|
||||
Reference in New Issue
Block a user