Skip to content

Commit

Permalink
To initialized Strategy we now call Init() instead of OnInit(). Init(…
Browse files Browse the repository at this point in the history
…) checks if strategy isn't already initialized.
  • Loading branch information
nseam committed Sep 11, 2024
1 parent 5b16d4b commit 253a96e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EA.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ class EA {
_strat.Ptr().Set<long>(STRAT_PARAM_ID, _magic_no);
_strat.Ptr().Set<ENUM_TIMEFRAMES>(STRAT_PARAM_TF, _tf);
_strat.Ptr().Set<int>(STRAT_PARAM_TYPE, _type);
_strat.Ptr().OnInit();
_strat.Ptr().Init();
if (!strats.KeyExists(_magic_no)) {
_result &= strats.Set(_magic_no, _strat);
} else {
Expand Down

0 comments on commit 253a96e

Please sign in to comment.