From 1264d71377c305ea2ebd275e830abdd74a501b4a Mon Sep 17 00:00:00 2001 From: Toh4iem9 Date: Wed, 29 Oct 2025 21:53:33 +0100 Subject: [PATCH] refactor: PreparePriceSeries --- .../Ehlers_Smoother_Lab_Calculator.mqh | 48 +++++++++++++++++-- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/Include/MyIncludes/Ehlers_Smoother_Lab_Calculator.mqh b/Include/MyIncludes/Ehlers_Smoother_Lab_Calculator.mqh index 86da33f..95854bd 100644 --- a/Include/MyIncludes/Ehlers_Smoother_Lab_Calculator.mqh +++ b/Include/MyIncludes/Ehlers_Smoother_Lab_Calculator.mqh @@ -197,9 +197,29 @@ bool CSmootherLabCalculator::PreparePriceSeries(int rates_total, ENUM_APPLIED_PR case PRICE_CLOSE: ArrayCopy(m_price, close, 0, 0, rates_total); break; - default: - ArrayCopy(m_price, close, 0, 0, rates_total); + case PRICE_OPEN: + ArrayCopy(m_price, open, 0, 0, rates_total); break; + case PRICE_HIGH: + ArrayCopy(m_price, high, 0, 0, rates_total); + break; + case PRICE_LOW: + ArrayCopy(m_price, low, 0, 0, rates_total); + break; + case PRICE_MEDIAN: + for(int i=0; i