From 9a02fd5299928baeefc911197502d6168147624c Mon Sep 17 00:00:00 2001 From: kenorb Date: Sun, 21 May 2023 00:30:15 +0100 Subject: [PATCH] Indicator: Minor performance improvements --- Indicator.mqh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Indicator.mqh b/Indicator.mqh index 4c50bc457..9b42320b9 100644 --- a/Indicator.mqh +++ b/Indicator.mqh @@ -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(STRUCT_ENUM(IndicatorDataParams, IDATA_PARAM_MAX_MODES)); _entry.Resize(_max_modes); - _entry.timestamp = GetBarTime(_ishift); + _entry.timestamp = _bar_time; #ifndef __MQL4__ if (IndicatorBase::Get(STRUCT_ENUM(IndicatorState, INDICATOR_STATE_PROP_IS_CHANGED))) { // Resets the handle on any parameter changes.