Skip to content

Commit

Permalink
Strategy: SetIndicator: Removes _managed argument as redundant
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Oct 30, 2021
1 parent 08a4849 commit 0cb3dfc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Strategy.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,9 @@ class Strategy : public Object {
/**
* Sets reference to indicator.
*/
void SetIndicator(IndicatorBase *_indi, int _id = 0, bool _managed = true) {
if (_managed) {
Ref<IndicatorBase> _ref = _indi;
indicators.Set(_id, _ref);
}
void SetIndicator(IndicatorBase *_indi, int _id = 0) {
Ref<IndicatorBase> _ref = _indi;
indicators.Set(_id, _ref);
}

/* Static setters */
Expand Down

0 comments on commit 0cb3dfc

Please sign in to comment.