I have accepted that there will be ups and downs and no day would go exactly as I planned.
Once I have made peace with this reality then most of the days I manage to stay positive.
There are days where I am not able to stay positive, but later on I realise that and try to stay away from the triggers/people which makes me more negative or be more conscious when come across those to not let it affect me that much.
And I have made peace with the fact that there would be some positive and some negative days, but as long as majority of them are positive then I am doing good.