This commit is contained in:
2025-09-10 17:23:52 +03:30
parent 4a8924c3f6
commit 247f50adfa
4 changed files with 197 additions and 52 deletions
+3 -11
View File
@@ -58,15 +58,7 @@ class XCXOM1EAExpert : public XCBase
bool eaAllowTrade; // Allow Trade on Signals
bool eaAllowLongs; // Allow Long Trades
bool eaAllowShorts; // Allow Short Trades
string eaSessions; // Active Sessions
ENUM_XTRADE_RESTRICTION_PERIOD eaRestrictionsPeriod; // Restrictions Period
int eaMaxAllowedTPs; // Max Allowed TP(s) in Restrictions Period
int eaMaxAllowedSLs; // Max Allowed SL(s) in Restrictions Period
int eaMaxAllowedTrades; // Max Allowed Trades in Restrictions Period
int eaMaxAllowedPositions; // Max Allowed Same Time Trades
double eaMaxAllowedSpread; // Max Allowed Spread For Trade
double eaMaxAllowedDrawdownFactor; // Max Allowed DrawDown for Trade
string eaCloseAllOpenTradesAt; // Close All Open Trades per Day At Specified Time
//
// Volume ...
@@ -375,8 +367,8 @@ class XCXOM1EAExpert : public XCBase
eaTrade = new XCTrade(
eaSlippage,
eaMagicNumber,
eaMaxAllowedSpread,
eaMaxAllowedPositions,
0,
0,
eaMaxAllowedDrawdownFactor //
);
@@ -551,7 +543,7 @@ class XCXOM1EAExpert : public XCBase
eaTradeManager.SetSymbolConfigurations(eaSymbolConfiguration);
count = eaTradeManager.FillSymbolConfigurations(symbolConfigurations);
has = IsValidSize(count);
//
// Here we Apply Symbols,Periods and Configs ...