Skip to content

Commit

Permalink
Indicator: Minor performance improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed May 20, 2023
1 parent 4abecd7 commit 9a02fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Indicator.mqh
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ class Indicator : public IndicatorData {
if (_bar_time > 0 && !_entry.IsValid() && !_entry.CheckFlag(INDI_ENTRY_FLAG_INSUFFICIENT_DATA)) {
int _max_modes = Get<int>(STRUCT_ENUM(IndicatorDataParams, IDATA_PARAM_MAX_MODES));
_entry.Resize(_max_modes);
_entry.timestamp = GetBarTime(_ishift);
_entry.timestamp = _bar_time;
#ifndef __MQL4__
if (IndicatorBase::Get<bool>(STRUCT_ENUM(IndicatorState, INDICATOR_STATE_PROP_IS_CHANGED))) {
// Resets the handle on any parameter changes.
Expand Down

0 comments on commit 9a02fd5

Please sign in to comment.