From e0cf444d78f5896b49fd8fba3a6b208418265a9e Mon Sep 17 00:00:00 2001 From: Toh4iem9 Date: Wed, 24 Dec 2025 10:46:48 +0100 Subject: [PATCH] refactor: Fixed Enum Type Mismatch --- Include/MyIncludes/Stochastic_Adaptive_RSI_Calculator.mqh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Include/MyIncludes/Stochastic_Adaptive_RSI_Calculator.mqh b/Include/MyIncludes/Stochastic_Adaptive_RSI_Calculator.mqh index 8455ee6..97c0f54 100644 --- a/Include/MyIncludes/Stochastic_Adaptive_RSI_Calculator.mqh +++ b/Include/MyIncludes/Stochastic_Adaptive_RSI_Calculator.mqh @@ -1,6 +1,6 @@ //+------------------------------------------------------------------+ //| Stochastic_Adaptive_RSI_Calculator.mqh | -//| VERSION 3.00: Selectable ER Source for HA mode. | +//| VERSION 3.10: Fixed Enum Type Mismatch. | //| Copyright 2025, xxxxxxxx | //+------------------------------------------------------------------+ #property copyright "Copyright 2025, xxxxxxxx" @@ -79,7 +79,9 @@ bool CStochasticAdaptiveRSICalculator::Init(int rsi_p, int er_p, int min_p, int if(CheckPointer(m_rsi_calculator) == POINTER_INVALID) return false; - if(!m_rsi_calculator.Init(m_rsi_period, 1, MODE_SMA, 2.0)) + +// FIX: Use 'SMA' (from ENUM_MA_TYPE) instead of 'MODE_SMA' + if(!m_rsi_calculator.Init(m_rsi_period, 1, SMA, 2.0)) return false; if(!m_slowing_engine.Init(slow_p, slow_ma))