:
Strategy settings
Use the parameter on the Filters tab of the MaxPosition strategy settings, in which field set the position threshold, above which all Buy orders will be cancelled (with CheckAfterBuy enabled), and new ones will not be placed.