mirror of
https://github.com/softwaredevelop/mql5.git
synced 2026-08-25 02:08:04 +00:00
refactor: Fixed Enum Type Mismatch
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
//| Stochastic_Adaptive_RSI_Calculator.mqh |
|
//| Stochastic_Adaptive_RSI_Calculator.mqh |
|
||||||
//| VERSION 3.00: Selectable ER Source for HA mode. |
|
//| VERSION 3.10: Fixed Enum Type Mismatch. |
|
||||||
//| Copyright 2025, xxxxxxxx |
|
//| Copyright 2025, xxxxxxxx |
|
||||||
//+------------------------------------------------------------------+
|
//+------------------------------------------------------------------+
|
||||||
#property copyright "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)
|
if(CheckPointer(m_rsi_calculator) == POINTER_INVALID)
|
||||||
return false;
|
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;
|
return false;
|
||||||
|
|
||||||
if(!m_slowing_engine.Init(slow_p, slow_ma))
|
if(!m_slowing_engine.Init(slow_p, slow_ma))
|
||||||
|
|||||||
Reference in New Issue
Block a user