Skip to content

Commit

Permalink
EA: Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Nov 7, 2021
1 parent a46ce0d commit 63f4e97
Showing 1 changed file with 0 additions and 33 deletions.
33 changes: 0 additions & 33 deletions EA.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@ class EA {
Trade _trade(_tparams, _cparams);
trade.Set(_Symbol, _trade);
logger.Link(_trade.GetLogger());
// trade.GetByKey(_Symbol).GetLogger().Error("Test");
// logger.Flush();
// Loads existing trades by magic number.
}

/**
Expand Down Expand Up @@ -226,31 +223,6 @@ class EA {
}
}

/**
* Sets an strategy parameter value for all strategies.
*/
/* @fixme
template <typename T>
void Set(ENUM_TRADE_PARAM _param, T _value, ENUM_TIMEFRAMES _tf) {
for (DictStructIterator<long, Ref<Strategy>> iter = strats.Begin(); iter.IsValid(); ++iter) {
Strategy *_strat = iter.Value().Ptr();
_strat.Set<T>(_param, _value);
}
}
*/

/**
* Sets an strategy parameter value for the given timeframe.
*/
/* @fixme
template <typename T>
void Set(ENUM_TRADE_PARAM _param, T _value) {
for (DictStructIterator<long, Ref<Strategy>> iter = strats.Begin(); iter.IsValid(); ++iter) {
Set(_param, _value);
}
}
*/

/* Processing methods */

/**
Expand Down Expand Up @@ -1059,11 +1031,6 @@ class EA {
*/
DictStruct<long, Ref<Strategy>> *GetStrategies() { return GetPointer(strats); }

/**
* Gets EA params.
*/
EAParams GetParams() { return eparams; }

/**
* Gets EA state.
*/
Expand Down

0 comments on commit 63f4e97

Please sign in to comment.