20 pip xauusd loss, how do i recover from it?

Took a 0.1 lot XAU/USD trade today and it resulted in a 20 pip loss, whish is alot by my standards. I am feeling kind of a deflated ego because i actually thought i was a better trader than this. Now how do i move forward, whats the path to recover and regaining my confidence? Thanks

Register your loss in your trading journal, take a step back and study why you lost. Come back after some days but reduce your lot size this time (maybe 0.01). Use a 1:1 risk to reward ratio to lock in small profits till you get your confidence back then you can go for bigger lot sizes and higher rr ratio trades.