You can use the average method to approximate, for example, the average amplitude of the last five trading days or the last ten trading days, and then if you do intraday trading, you can think about whether it is necessary to close the position once the commodity amplitude is close to the latest average amplitude.
This is just a reminder signal, which should be combined with its own operation mode and the current trend of the disk.