From daa13c0301f493fde92e288dcac30455e0500254 Mon Sep 17 00:00:00 2001 From: AlbertoAmadorBelchistim Date: Sat, 19 Sep 2026 21:54:44 +0200 Subject: [PATCH] refactor(ClusterSearch): remove unused _pocPrice/_pocVolume fields The fields were written in CalculateBarFull but never read. The Transparency property is left unchanged so that existing templates and workspaces keep loading exactly as before. --- Technical/ClusterSearch.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Technical/ClusterSearch.cs b/Technical/ClusterSearch.cs index 25d7c9c7..a5925ff4 100644 --- a/Technical/ClusterSearch.cs +++ b/Technical/ClusterSearch.cs @@ -62,8 +62,6 @@ public partial class ClusterSearch : Indicator private bool _onlyOneSelectionPerBar; private Filter _pipsFromHigh = new() { Value = 100000000 }; private Filter _pipsFromLow = new() { Value = 100000000 }; - private decimal _pocPrice; - private decimal _pocVolume; private PriceLocation _priceLocation = PriceLocation.Any; private int _priceRange = 1; private bool _showPriceSelection = true; @@ -425,9 +423,6 @@ private void CalculateBarFull(int bar) var candle = GetCandle(bar); _lastSeriesBar.Clear(); - _pocPrice = 0; - _pocVolume = 0; - _lastBarFormationValid = CheckBarFormation(candle); if (!_lastBarFormationValid) @@ -462,9 +457,6 @@ private void CalculateBarFull(int bar) if (pocInfo is null || pocInfo.Volume is 0) return; - _pocPrice = pocInfo.Price; - _pocVolume = pocInfo.Volume; - var inRange = false; foreach (var range in ranges)