Here's my advice, for your psychological problems. You have a problem because you trade out of frustration, out of boredom, just like sometimes we eat out of frustration or boredom.
First of all, you should realize that you can do anything out of boredom/frustration, but whereas scratching your head will just make you lose your hair, trading will make you lose your money.
Deep inside, what you are probably thinking is "I need something that will make me happy, so I'll now trade and win some money", yet the problem is that it's not your drive to get rich that makes good trades, but your patience.
So if we care about not losing our money, we have to follow some rules.
My rules are these more or less:
1) Don't trade if you are distracted, on the phone, with other people or if you are frustrated.
2) Do not trade unless you've written out where you will enter and where you will exit (if you lose, or if you win).
3) some other technical analysis requirements for making trades.
You will see that once you have the requirement of writing down a strategy (thinking of a setup, entry and exit points, drawing trendlines and so on) for each trade you make, once making a trade will mean some work and hard and focused thinking, you won't use trading as a videogame or a way get distracted from your frustrations and boredom. You will treat it seriously as you should.
For me what happens is that I have two modes of trading. Regular intuitive rational calm mode and excited (cocky/angry) mode. If I come back from a vacation and haven't traded for a while I am always in regular calm intuitive mode and I make money most of the time, and only lose little when I make a mistake. But after a while, especially after winning quite a bit, I get cocky and excited. Then I start trading very lightly with almost no thinking and no waiting. I just take trades out of boredom. Then I lose 50% of what I made in calm mode. At that point the cocky excited mode turns into angry excited mode and I say "you bastards, now I want my money back". That's when I risk losing everything, often by doubling up a losing position (instead of closing it). In order not to fall into these troubles, I must follow the rule of preserving myself from trading unless I am patient, and having to write down a strategy is a guarantee (if I follow that rule) that I won't just trade lightly, out of boredom or cockiness.
Or maybe this happens with those immodest traders... like me. I have to be reminded that I am not god, by being kicked in the ass by the markets. After a few winning trades I start believing that I infallible. Anyway, those rules I mentioned are there to remind us that we failed many times, to keep us modest.