diff --git a/Scripts/MyScripts/Close_Charts_By_Symbol.mq5 b/Scripts/MyScripts/Close_Charts_By_Symbol.mq5 index 80d92c8..c4a7451 100644 --- a/Scripts/MyScripts/Close_Charts_By_Symbol.mq5 +++ b/Scripts/MyScripts/Close_Charts_By_Symbol.mq5 @@ -42,10 +42,7 @@ void OnStart() long curr_chart = ChartFirst(); int closed_count = 0; -// We need to collect IDs first, because closing a chart while iterating might break ChartNext logic -// actually ChartNext takes the previous ID. If we close it, the ID is invalid. -// So we must collect all IDs first. - +// Collect IDs first long chart_ids[]; int total_charts = 0; @@ -61,7 +58,6 @@ void OnStart() for(int i=0; i