This commit is contained in:
2024-08-09 03:44:03 +03:30
parent 4e96e7bc4b
commit 7137d25c7c
+3 -2
View File
@@ -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);