2 Clean
nique_372 редактировал(а) эту страницу 2026-04-19 11:21:55 -05:00

Utils Tab: Clean

From this sub-tab you can clean files inside the base folder configured in the General tab, using inclusion and exclusion patterns defined in a JSON file.


Parameters

  • JSON config file: JSON file that defines which files will be deleted and which will be kept. Use the Browse button to select it, or the ? button to load a default template with the correct structure.

The file format is as follows:

{
    "incluyed": [
        "*.png",
        "*.csv"
    ],
    "excluyed": [
        "*_median_iqr.csv",
        "*.onnx",
        "idx.txt"
    ]
}
  • incluyed: File patterns that will be deleted.
  • excluyed: File patterns that will be kept even if they match an incluyed pattern.

In the example above, all .png and .csv files will be deleted, except scaling files (*_median_iqr.csv), ONNX models (*.onnx) and the index file (idx.txt).

Simple patterns such as *, ? and ^ are supported. For more information on available patterns see: https://forge.mql5.io/nique_372/MQLArticles/src/branch/main/Utils/StrMatch/README.md


Buttons

  • Browse: Opens the file selector to choose the clean configuration JSON.
  • ?: Automatically loads a default template with the correct structure.
  • Clean: Runs the clean operation on the base folder. The button changes to Cleaning... while the operation is in progress.

Make sure you have configured the base folder in the General tab before running the clean.