From 9d96a76cfbdf512cfd310f2c32af6d085d1263e4 Mon Sep 17 00:00:00 2001 From: Toh4iem9 Date: Tue, 30 Jun 2026 07:57:28 +0200 Subject: [PATCH] refactor: Fixed indicator decimal digits rounding bug to restore Data Window visibility --- .../Authors/Ehlers/2_Oscillators/Cyber_Cycle_Pro.mq5 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Indicators/MyIndicators/Authors/Ehlers/2_Oscillators/Cyber_Cycle_Pro.mq5 b/Indicators/MyIndicators/Authors/Ehlers/2_Oscillators/Cyber_Cycle_Pro.mq5 index bdbf59a..e5acec9 100644 --- a/Indicators/MyIndicators/Authors/Ehlers/2_Oscillators/Cyber_Cycle_Pro.mq5 +++ b/Indicators/MyIndicators/Authors/Ehlers/2_Oscillators/Cyber_Cycle_Pro.mq5 @@ -3,7 +3,7 @@ //| Copyright 2026, xxxxxxxx| //+------------------------------------------------------------------+ #property copyright "Copyright 2026, xxxxxxxx" -#property version "3.20" // Refactored to map Signal MA calculations elegantly via standard close-buffer mapping +#property version "3.21" // Fixed indicator decimal digits rounding bug to restore Data Window visibility #property description "John Ehlers' Cyber Cycle indicator for identifying market cycles." #property description "Features O(1) calculation and flexible Signal Line options including VWMA." @@ -77,7 +77,9 @@ int OnInit() PlotIndexSetInteger(0, PLOT_DRAW_BEGIN, 7); PlotIndexSetInteger(1, PLOT_DRAW_BEGIN, 9); - IndicatorSetInteger(INDICATOR_DIGITS, 2); + +//--- FIXED: Set dynamic decimal digits to match symbol precision instead of hardcoded 2 + IndicatorSetInteger(INDICATOR_DIGITS, _Digits); return(INIT_SUCCEEDED); }