Skip to content

Commit

Permalink
IndicatorData: Adds Set()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Oct 11, 2024
1 parent efa612e commit 03bf8a8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions IndicatorData.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,16 @@ class IndicatorData : public IndicatorBase {
return _price;
}

/* Setters */

/**
* Sets the value for IndicatorDataParams struct.
*/
template <typename T>
void Set(STRUCT_ENUM_IDATA_PARAM _param, T _value) {
idparams.Set<T>(_param, _value);
}

/* State methods */

/**
Expand Down

0 comments on commit 03bf8a8

Please sign in to comment.