diff --git a/Classes/x-saherelm.x121.setup.xea.mq5 b/Classes/x-saherelm.x121.setup.xea.mq5 index af63347d..c4508ba0 100644 --- a/Classes/x-saherelm.x121.setup.xea.mq5 +++ b/Classes/x-saherelm.x121.setup.xea.mq5 @@ -3373,25 +3373,6 @@ public: mAllowSymbolHedgeOnForce = value; } - // - double ForceCloseOnEuityDiff() - { - return mForceCloseOnEuityDiff; - } - - // - void ForceCloseOnEuityDiff(double value) - { - // - if (value < 0) - { - value = 0; - } - - // - mForceCloseOnEuityDiff = value; - } - // double MinFreeMargingForHandleForce() { @@ -4490,7 +4471,6 @@ private: double mMaxDrawdownForce; // Force Handling State on Drawdown for Guard bool mAllowSymbolHedgeOnForce; // Allow Symbol Hedging on Force States double mMinFreeMargingForHandleForce; // Min Free Margin for Force States - double mForceCloseOnEuityDiff; // Force Close On Equity Differential // XTradeHandler *mTradeHandler; // Handle all Event which related to Signals and Positions diff --git a/Experts/x-saherelm.x121.ea.mq5 b/Experts/x-saherelm.x121.ea.mq5 index 5fadb9c7..28f2a762 100644 --- a/Experts/x-saherelm.x121.ea.mq5 +++ b/Experts/x-saherelm.x121.ea.mq5 @@ -111,11 +111,10 @@ input double x121EAMaxAllowedRecoveryVolume = 0.08; // Max Allowed Recovery Sign // input group "Hedging"; input int x121EARestingAfterHedge = 3000; // Resting Seconds After Hedge -input double x121EAForceCloseProfit = 15; // Close All Positions Regardless of Policies when Profit Reached +input double x121EAForceCloseProfit = 5; // Close All Positions Regardless of Policies when Profit Reached input double x121EAMaxDrawdownForce = 5; // Max Drawdown Force State for Handling Guards input int x121EAMaxPositionsForce = 10; // Max Number of Positions Force State for Handling Guards input double x121EAMinFreeMargingForHandleForce = 800; // Min Free Margin for Force States -input double x121EAForceCloseOnEuityDiff = 15; // Force Close On Equity Differential input bool x121EAAllowSymbolHedgeOnForce = false; // Allow Symbol Hedging on Force States input double x121EAMinRequiredProfitPerTrade = 0.2; // Minimum Required Profit for Hedging input double x121EAMinRequiredProfitPerVolumeFactor = 0.01; // Minimum Required Profit for Hedging Per Volume @@ -383,9 +382,8 @@ bool InitialEA() x121EA.MaxDrawdownForce(x121EAMaxDrawdownForce); x121EA.MaxPositionsForce(x121EAMaxPositionsForce); x121EA.AllowSymbolHedgeOnForce(x121EAAllowSymbolHedgeOnForce); - x121EA.ForceCloseOnEuityDiff(x121EAMinFreeMargingForHandleForce); - x121EA.MinFreeMargingForHandleForce(x121EAForceCloseOnEuityDiff); x121EA.MinRequiredProfitPerTrade(x121EAMinRequiredProfitPerTrade); + x121EA.MinFreeMargingForHandleForce(x121EAMinFreeMargingForHandleForce); x121EA.MinRequiredProfitPerVolumeFactor(x121EAMinRequiredProfitPerVolumeFactor); //