last works on trademanager symbol configurations ...
This commit is contained in:
@@ -525,10 +525,6 @@ class XCXOM1EAExpert : public XCBase
|
||||
eaTradeManager.SaveSignals(eaSaveSignals);
|
||||
eaTradeManager.SaveRestrictions(eaSaveRestrictions);
|
||||
|
||||
//
|
||||
// Enable Force Close At ...
|
||||
eaTradeManager.SetForceCloseTradesAt(eaCloseAllOpenTradesAt);
|
||||
|
||||
//
|
||||
// Setting Trade Reports ...
|
||||
eaTradeManager
|
||||
@@ -550,37 +546,12 @@ class XCXOM1EAExpert : public XCBase
|
||||
);
|
||||
|
||||
//
|
||||
// Setting Trade Restrictions ...
|
||||
eaTradeManager
|
||||
.SetTradeRestrictions(
|
||||
eaRestrictionsPeriod,
|
||||
eaMaxAllowedTPs,
|
||||
eaMaxAllowedSLs,
|
||||
eaMaxAllowedTrades //
|
||||
);
|
||||
|
||||
//
|
||||
// Parse Symbols ...
|
||||
string symbols[];
|
||||
ENUM_TIMEFRAMES periods[];
|
||||
if (!IsSpecifiedValid(eaSymbolConfiguration))
|
||||
{
|
||||
//
|
||||
Add(
|
||||
_Symbol,
|
||||
symbols //
|
||||
);
|
||||
|
||||
//
|
||||
Add(
|
||||
_Period,
|
||||
periods //
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
}
|
||||
|
||||
// Setting Symbol Configuration ...
|
||||
XSymbolTradeConfig symbolConfigurations[];
|
||||
eaTradeManager.SetSymbolConfigurations(eaSymbolConfiguration);
|
||||
count = eaTradeManager.FillSymbolConfigurations(symbolConfigurations);
|
||||
has = IsValidSize(count);
|
||||
|
||||
//
|
||||
// Here we Apply Symbols,Periods and Configs ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user