From 7137d25c7c04c5192e93b0d2805552167fda165b Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Fri, 9 Aug 2024 03:44:03 +0330 Subject: [PATCH] last ... --- Experts/x-saherelm.xch.strategy.ea.mq5 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Experts/x-saherelm.xch.strategy.ea.mq5 b/Experts/x-saherelm.xch.strategy.ea.mq5 index a9292b0e..b2bfa3a3 100644 --- a/Experts/x-saherelm.xch.strategy.ea.mq5 +++ b/Experts/x-saherelm.xch.strategy.ea.mq5 @@ -77,7 +77,8 @@ input double eaMaxDrawdownPercentForOpenTrades = 3; // Max Drawdown Percent for input group "Hedging"; input bool eaAllowHedging = true; // Allow Hedging Trades input int eaMinTradesForHedge = 2; // Minimum Open Trades for Hedging -input double eaMinimumProfitPerVolumeForHedging = 1.5; // Minimum Required Profit per Volume for Hedging +input double eaHedgeVolumeFactor = 0.01; // Volume Factor for Hedging +input double eaMinimumProfitPerVolumeForHedging = 1; // Minimum Required Profit per Volume for Hedging // // Risk Management > Trailling Stop ... @@ -364,7 +365,7 @@ bool InitialEA() // // Configure Hedging ... eaTradeHandler.AllowHedging(eaAllowHedging); - eaTradeHandler.HedgeVolumeFactor(eaVolume); + eaTradeHandler.HedgeVolumeFactor(eaHedgeVolumeFactor); eaTradeHandler.MinTradesForHedge(eaMinTradesForHedge); eaTradeHandler.HedgeMinProfitPerVolumeFactor(eaMinimumProfitPerVolumeForHedging);