From 34a5629a4cebb3fce8f40d9147c429fbd28afed8 Mon Sep 17 00:00:00 2001 From: Toh4iem9 Date: Sun, 19 Oct 2025 14:27:47 +0200 Subject: [PATCH] refactor: Added optional FIR comparison line --- Include/MyIncludes/Laguerre_Engine.mqh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Include/MyIncludes/Laguerre_Engine.mqh b/Include/MyIncludes/Laguerre_Engine.mqh index d797f12..401358d 100644 --- a/Include/MyIncludes/Laguerre_Engine.mqh +++ b/Include/MyIncludes/Laguerre_Engine.mqh @@ -27,8 +27,20 @@ public: bool Init(double gamma); void CalculateFilter(int rates_total, ENUM_APPLIED_PRICE price_type, const double &open[], const double &high[], const double &low[], const double &close[], double &L0_buffer[], double &L1_buffer[], double &L2_buffer[], double &L3_buffer[], double &filt_buffer[]); + // --- NEW: Public getter to safely access the prepared price data --- + void GetPriceBuffer(double &dest_array[]); }; +//+------------------------------------------------------------------+ +//| CLaguerreEngine: Public getter for the internal price buffer. | +//+------------------------------------------------------------------+ +void CLaguerreEngine::GetPriceBuffer(double &dest_array[]) + { + int size = ArraySize(m_price); + ArrayResize(dest_array, size); + ArrayCopy(dest_array, m_price, 0, 0, size); + } + //+------------------------------------------------------------------+ //| CLaguerreEngine: Initialization | //+------------------------------------------------------------------+