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 9ebf9ff commit 2ea38f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Stg_Meta_RSI.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Stg_Meta_RSI : public Strategy {
_strat.Ptr().Set<long>(STRAT_PARAM_ID, Get<long>(STRAT_PARAM_ID));
_strat.Ptr().Set<ENUM_TIMEFRAMES>(STRAT_PARAM_TF, _tf);
_strat.Ptr().Set<int>(STRAT_PARAM_TYPE, _sid);
_strat.Ptr().OnInit();
_strat.Ptr().Init();
if (_index >= 0) {
strats.Set(_index, _strat);
} else {
Expand Down

0 comments on commit 2ea38f3

Please sign in to comment.