From 18d139c94ac2c3c4014fe4aa8b9a555ce2433eac Mon Sep 17 00:00:00 2001 From: Toh4iem9 Date: Wed, 29 Oct 2025 16:44:55 +0100 Subject: [PATCH] refactor: SOURCE_PRICE --- Include/MyIncludes/Ehlers_Bands_Calculator.mqh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Include/MyIncludes/Ehlers_Bands_Calculator.mqh b/Include/MyIncludes/Ehlers_Bands_Calculator.mqh index 9bbb507..62bf752 100644 --- a/Include/MyIncludes/Ehlers_Bands_Calculator.mqh +++ b/Include/MyIncludes/Ehlers_Bands_Calculator.mqh @@ -45,14 +45,14 @@ bool CEhlersBandsCalculator::Init(int period, double multiplier, ENUM_SMOOTHER_T m_period = (period < 2) ? 2 : period; m_multiplier = multiplier; -// Instantiate the correct smoother type here if not already done (for HA) if(CheckPointer(m_calc_center) == POINTER_INVALID) m_calc_center = new CEhlersSmootherCalculator(); if(CheckPointer(m_calc_center) == POINTER_INVALID) return false; - return(m_calc_center.Init(m_period, smoother_type)); +// CORRECTED: Pass the required SOURCE_PRICE to the smoother's Init method. + return(m_calc_center.Init(m_period, smoother_type, SOURCE_PRICE)); } //+------------------------------------------------------------------+