In the MoonBot terminal, this can be done in the Filters / Price/Position tab of the strategy settings using the TotalLoss parameter, in which you must enter a positive number for the total loss, and the strategy will stop working when the total loss exceeds this value. A loss-making session is calculated according to the general settings in the Settings – Autostart tab for a specified time across the entire report.
To ensure that this parameter is checked by the strategy, set IgnoreFilters = NO on the general Filters tab, and set IgnorePrice = NO on the Filters / Price/Position tab. A green vertical bar should be visible to the left of the Filters / Price/Position tab, indicating that this tab and the parameters in it are not being ignored.