This commit is contained in:
2025-09-17 23:40:07 +03:30
parent 177d115de6
commit 4c9fe89fad
8 changed files with 208 additions and 70 deletions
+10 -2
View File
@@ -2919,6 +2919,7 @@ struct XSymbolTradeConfig
int trades; // All Trades
int losses; // All Loosing Trades
int profits; // All Winning Trades
string name; // Provider Name
string symbol; // Trading Symbol
int managedSLs; // Managed SL(s)
int managedTPs; // Managed TP(s)
@@ -2953,6 +2954,7 @@ struct XSymbolTradeConfig
void Clean()
{
//
name = NULL;
symbol = NULL;
period = NULL;
SpecifiedClean(sessions);
@@ -3003,6 +3005,7 @@ struct XSymbolTradeConfig
* @return ( bool )
*/
bool Init(
string _name,
string _symbol = NULL,
ENUM_TIMEFRAMES _period = NULL,
string _sessionsDescriptor = NULL,
@@ -3020,6 +3023,7 @@ struct XSymbolTradeConfig
_period = NormalizePeriod(_period);
//
name = name;
symbol = _symbol;
period = _period;
maxAllowedSpread = _maxAllowedSpread;
@@ -3052,6 +3056,7 @@ struct XSymbolTradeConfig
// Validate ...
result = IsValid() &&
dest.IsValid() &&
name == dest.name &&
symbol == dest.symbol &&
period == dest.period;
@@ -3067,8 +3072,10 @@ struct XSymbolTradeConfig
bool result = false;
//
result = IsSpecifiedValid(symbol) &&
IsSpecifiedValid(period);
result =
IsSpecifiedValid(name) &&
IsSpecifiedValid(symbol) &&
IsSpecifiedValid(period);
//
return result;
@@ -3765,6 +3772,7 @@ typedef void (*TOnSignal)(XSignal &signal);
//
typedef bool (*TCanAnalyse)(
string name,
string _symbol,
ENUM_TIMEFRAMES _period,
datetime _time //