The habit of shifting losses may be many types, too, bro, for example there are those who like to slide while floating loss but there are also those who like to slide when floating profit.
It's not good enough to slide SL when floating loss but knowing that the action is not good is actually right and means you have the desire to change into a better trader. Moreover, you also complete an analysis that SL sliding occurs because there is a desire to always win, so I'm sure you can certainly develop into a better trader.