From 8e627155112a2b4fbc4534d28746d869543092b5 Mon Sep 17 00:00:00 2001 From: Toh4iem9 Date: Mon, 29 Sep 2025 13:14:22 +0200 Subject: [PATCH] refactor: add CCI_Engine --- Indicators/MyIndicators/CCI_Oscillator_Pro.mq5 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Indicators/MyIndicators/CCI_Oscillator_Pro.mq5 b/Indicators/MyIndicators/CCI_Oscillator_Pro.mq5 index 5f76ca2..57c0064 100644 --- a/Indicators/MyIndicators/CCI_Oscillator_Pro.mq5 +++ b/Indicators/MyIndicators/CCI_Oscillator_Pro.mq5 @@ -5,7 +5,7 @@ //+------------------------------------------------------------------+ #property copyright "Copyright 2025, xxxxxxxx" #property link "" -#property version "2.00" +#property version "2.01" // Final unified architecture #property description "CCI Oscillator (Histogram of CCI vs Signal Line) with selectable" #property description "price source (Standard and Heikin Ashi)." @@ -74,7 +74,8 @@ int OnInit() } else // Standard price source selected { - g_calculator = new CCCI_OscillatorCalculator(); + //--- CORRECTED: Instantiate the concrete class, not the abstract one + g_calculator = new CCCI_OscillatorCalculator_Std(); IndicatorSetString(INDICATOR_SHORTNAME, StringFormat("CCI Osc(%d, %d)", InpCCIPeriod, InpMAPeriod)); }