From 9029818d2a98ee3e188c81ef8591cdfc0093346b Mon Sep 17 00:00:00 2001 From: Hadi Khazaee Asl Date: Fri, 20 Jun 2025 23:36:07 +0330 Subject: [PATCH] last ... --- Libraries/x-saherelm.x-poi.extensions.lib.mq5 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Libraries/x-saherelm.x-poi.extensions.lib.mq5 b/Libraries/x-saherelm.x-poi.extensions.lib.mq5 index 7d974066..78ad3abb 100644 --- a/Libraries/x-saherelm.x-poi.extensions.lib.mq5 +++ b/Libraries/x-saherelm.x-poi.extensions.lib.mq5 @@ -1177,7 +1177,8 @@ void ValidateBoxes( XBoxZone &boxes[], int barIndex = 0, int barsLength = 3, - bool forceSorting = false // + bool forceSorting = false, + int maxAllowed = 0 // ) { // @@ -1237,7 +1238,7 @@ void ValidateBoxes( { // iBox.to = to; - + // AddRef( iBox, @@ -1257,7 +1258,10 @@ void ValidateBoxes( { // // Sorting ... - SortBoxes(boxes); + SortBoxes( + boxes, + maxAllowed // + ); } }